The ClickBank for WC integration allows your Downline Builder Plugin to automatically set referral usernames for new customers based on ClickBank affiliate transaction data. When a ClickBank order comes in via IPN (Instant Payment Notification), this integration will match the affiliate ID with users in your affiliate programs and set the appropriate referral username.
Prerequisites
Before setting up this integration, ensure you have:
- WordPress Website with admin access
- WooCommerce Plugin installed and activated
- ClickBank for WC Plugin installed and activated
- Downline Builder Plugin installed and activated
- ClickBank Vendor Account with products configured
- Affiliate Programs set up in Downline Builder Plugin
Step 1: Install Required Plugins
1.1 Install WooCommerce
- Go to Plugins > Add New in your WordPress admin
- Search for “WooCommerce”
- Install and activate the official WooCommerce plugin
1.2 Install ClickBank for WC
- Upload the ClickBank for WC plugin to your site
- Go to Plugins > Installed Plugins
- Find “ClickBank for WC” and click Activate
1.3 Verify Downline Builder Plugin
- Ensure the Downline Builder Plugin is installed and activated
- Go to Plugins > Installed Plugins to verify
Step 2: Configure ClickBank for WC Plugin
2.1 Basic ClickBank Setup
- Navigate to WooCommerce > Settings > ClickBank
- Configure your ClickBank settings:
- Vendor ID: Your ClickBank vendor nickname
- Secret Key: Your ClickBank secret key (from ClickBank account)
- IPN URL: Copy the provided IPN URL for use in ClickBank
2.2 Set Up IPN in ClickBank
- Log into your ClickBank vendor account
- Go to Account Settings > My Site
- In the Advanced Tools section, find Instant Notification
- Enter the IPN URL from your ClickBank for WC settings
- Set the notification version to 7.0 or higher
- Save your settings
2.3 Configure Products
- In WordPress, go to Products > All Products
- Edit each product you want to connect to ClickBank
- In the Product Data section, find the ClickBank tab
- Enter your ClickBank Product ID
- Configure order status settings as needed
- Save the product
Step 3: Set Up Affiliate Programs in Downline Builder
3.1 Create Affiliate Program
- Go to Downline Builder > Settings > Affiliate Programs
- Click Add New Program
- Configure your affiliate program:
- Program Name: e.g., “ClickBank”
- Click Save Program
3.2 Add Users to Affiliate Program
- Go to Users > All Users
- Edit a user who should be an affiliate
- Scroll to the Affiliate Programs section
- Find your ClickBank affiliate program
- Enter the user’s ClickBank affiliate ID in the program field
- Save the user profile
Important: The value you enter here must exactly match the affiliate ID that ClickBank sends in the IPN data.
Step 4: Enable ClickBank Integration in Downline Builder
4.1 Access Integration Settings
- Navigate to Downline Builder > Settings > Integrations
- Find the Available Integrations section
4.2 Enable ClickBank Integration
- Check the box next to “ClickBank for WooCommerce”
- The configuration section will appear below
4.3 Configure Integration Settings
- In the ClickBank for WooCommerce Configuration section:
- Affiliate Program to Check: Select the affiliate program you created (e.g., “ClickBank”)
- Click Save Integration Settings
Step 5: Test the Integration
5.1 Verify Setup
- Ensure all plugins are active and configured
- Check that your affiliate program has users with ClickBank nicknames
- Verify ClickBank IPN is configured correctly
5.2 Test Transaction Flow
- Create a test ClickBank transaction (or use ClickBank’s test IPN feature)
- Monitor the transaction in WooCommerce > Orders
- Check if the new customer has the correct referral username set
- Review logs in WooCommerce > Status > Logs for any ClickBank-related entries
5.3 Debug Common Issues
If the integration isn’t working:
- Check Plugin Status: Ensure all required plugins are active
- Verify IPN URL: Make sure ClickBank is sending IPNs to the correct URL
- Review Logs: Check WordPress error logs and WooCommerce logs
- Test Affiliate Matching: Verify the ClickBank affiliate nickname exactly matches the value in the user’s profile
How It Works
Integration Flow
- Customer Purchase: A customer purchases through a ClickBank affiliate link
- IPN Received: ClickBank sends an IPN to your ClickBank for WC plugin
- Data Capture: The Downline Builder integration captures the affiliate data
- User Lookup: The system searches for a user with the matching ClickBank affiliate nickname
- Referral Assignment: If found, the referring user’s username is set as the new customer’s referral username
- Fallback: If no match is found, the default referral username is used (if configured)
This integration automatically handles referral assignments from ClickBank transactions, streamlining your affiliate program management and ensuring accurate tracking of referrals.