Paid membership registration with ClickBank

ClickBank is another popular solution to sell a digital products or services. We support integration with Clickbank to accept paid membership registrations for your website.

How it works:

  • Customer visits your site and clicks on payment link to order your subscription/product.
  • Payment transaction processed by ClickBank and, if successful, customer is being sent to product delivery or 'thank-you page'.
  • Customer submits registration form implemented on 'thank-you page' to create username with your AuthPro account.
  • Your customer is now able to login to your members area with their username/password.

    To configure ClickBank and AuthPro integration, please follow the steps below.

    1. Configure ClickBank account

    All you need to configure your ClickBank account is to create payment links and define the secret key if you want to use purchase validation. To define the secret key, login to your ClickBank account, go to Account Settings -> My Site -> Advanced Tools and enter/edit your secret key.

    2. Enable/configure ClickBank support in your AuthPro account

    Login to your AuthPro account manager, go to 'Pages' -> 'Registration' page and check "Enable payment processing gateway support" box in your registration settings. Select "ClickBank" option and click "Configure" button. Put your ClickBank seller ID and contact email address, if you want to use purchase validation, enable it and enter the secret key you have defined in your ClickBank account. Click "Update" to save the changes.

    3. Generate payment links

    You may use payment link generation tool to generate payment links. If you can also generate links yourself, just pass AuthPro account username as APUN variable in link parameters string.
    Here is a sample link code:

    <a href="https://VENDOR.pay.clickbank.net/?cbitems=ITEM&APUN=AUTHPRO_USERNAME">SUBSCRIBE</a>
    

    Here's how to make it work...

  • Replace VENDOR with your ClickBank account nickname.
  • Replace ITEM with the item number of the link (product) for sale.
  • Replace AUTHPRO_USERNAME with your AuthPro account username.
  • Replace SUBSCRIBE with any promotional text or payment button image you prefer.

    4. Create product delivery URLs (aka, 'thank-you pages')

    This is the page your customers will be sent to after the successful payment ('Product delivery URL' in your ClickBank account) and it will be used to create login/password to access your member's area. Here is a sample code you should paste to your 'thank-you page':

    <form name="cb_confirm" action="https://www.authpro.com/cgi-bin/pcs/clickbank.cgi" onsubmit="return cb_go()">
    <input type="hidden" name="APUN" value="YOUR_AUTHPRO_ACCOUNT_USERNAME_HERE">
    <input type="hidden" name="item">
    <input type="hidden" name="time">
    <input type="hidden" name="seed">
    <input type="hidden" name="cbpop">
    <input type="hidden" name="cbreceipt">
    Email: <input type="email" name="email"><br>
    Login: <input type="text" name="login"><br>
    Password: <input type="password" name="password"><br>
    <input type="submit" value="Confirm">
    </form>
    <script type="text/javascript">
    function cb_go() {
      var cb_ptp=new Array(2); cb_ptp=document.location.href.split(/\?/);
      if (! cb_ptp[1]) { window.alert('No params from ClickBank!'); return false; }
      var cb_params=new Array; cb_params=cb_ptp[1].split(/&/);
      for(i=0;i<cb_params.length;i++) {
        cb_param=new Array(2); cb_param=cb_params[i].split(/=/);
        if (cb_param[0]=='item') { document.cb_confirm.item.value=cb_param[1] }
        if (cb_param[0]=='time') { document.cb_confirm.time.value=cb_param[1] }
        if (cb_param[0]=='cbpop') { document.cb_confirm.cbpop.value=cb_param[1] }
        if (cb_param[0]=='cbreceipt') { document.cb_confirm.cbreceipt.value=cb_param[1] }
      }
      if (document.cb_confirm.item.value=='') { window.alert('No item param from ClickBank!'); return false; }
      if (document.cb_confirm.time.value=='') { window.alert('No time param from ClickBank!'); return false; }
      if (document.cb_confirm.cbpop.value=='') { window.alert('No cbpop param from ClickBank!'); return false; }
      if (document.cb_confirm.cbreceipt.value=='') { window.alert('No cbreceipt param from ClickBank!'); return false; }
      if (! document.cb_confirm.email.value.match(/^[\w\-\.]+@[\w\-\.]+\.\w+$/)) { window.alert('Please enter valid email address!'); return false; }
      return true;
    }
    </script>
    

    Please note, you'll have to put your AuthPro account username on the second line of this code.
    Login and password fields are optional, you may leave them to allow your members to type their own login/password to access your members area, or just remove it and login/password will be auto-generated by the system.

    5. Finished!

    You can test it in demo mode before requesting product approval, and go 'live' when it's properly tested.

    Please contact us if you have any questions.

    All supported payment gateways list