Thanks for bringing this thread to my attention.
Cristian and I just spoke about this.
This WAS possible in previous versions of s2Member. However, it’s NOT possible in the current release, because s2Member now uses digitally signed URLs to help prevent fraudulent transactions, and to prevent ClickBank URLs from being modified by an end-user (e.g. to prevent someone from changing the Membership Level # in the URL on their own, or from changing other important details, like term lengths).
Current versions of s2Member absolutely require that each ClickBank Button be generated by the Shortcode of the installation site; this way the URL leading to ClickBank is digitally signed by s2Member, for future authentication after a completed purchase (e.g. the IPN handler will NOT process the IPN if the original link to ClickBank was missing it’s digital signature).
Therefore, what you’ve requested is NOT possible in the current release of s2Member v120309+. I suggest that you link Site B to your sales page at Site A, where your ClickBank Button Code will be generated by the Shortcode at Site A (i.e. your actual installation of s2Member).
Another possible alternative is to create a simple script at Site A, which generates a ClickBank Button URL, using the documented output Attribute: output="url"
; and then redirects a visitor automatically to the URL that is generated by the Shortcode at Site A. For instance, you might create a MUST USE plugin like this one.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
<?php
add_action('init', 'handle_custom_clickbank_redirections');
function handle_custom_clickbank_redirections()
{
if(!empty($_GET['clickbank'])) // A url leading to this site, with: /?clickbank=redirect
{
$clickbank_checkout = do_shortcode('[[s2Member-Pro-ClickBank-Button ... output="url" /]]');
// The Shortcode has been abbreviated here for clarity in this regard.
// You will need to generate your own full ClickBank Button Shortcode, and set output="url".
// Redirect the potential customer now to ClickBank.
wp_redirect($clickbank_checkout); exit;
}
}
?>
With this MU plugin in place. Now create a link on Site B, pointing to Site A.
Site A will silently redirect the customer to ClickBank checkout.
http://yoursite.com/?clickbank=redirect