Starting with DAP v3.9, DAP now has support for ClickBank's Instant Notification Services (INS). This is very similar to Paypal's Instant Payment Notification (IPN). The ClickBank INS notification will be processed instantly in real time, and your members will receive their welcome email with their membership login info instantly after purchase.

### CB INS Setup

1. Login to your ClickBank account

2. Go to the "Account Settings" tab at the top

3. Click on "My Site" from the sub-menu at the top.

4. Under Advanced Tools, update the Instant Notification Service URL (accept the terms of service etc), and make sure the URL points to:

> ### http://YourSite.com/dap/dap-clickbank.php

Replace YourSite.com above with your actual domain name.

5. Select Version 1.0 .

6. Whatever value you put in the Secret Key field in ClickBank (see image above), put the same value (in UPPERCASE) in to your DAP Admin Dashboard on your web site, at: Setup > Config > Payment Processing > Secret Authorization Key used when interfacing with external systems

7. The Product Title in CB must match the Product Name in DAP.

That's it!

### Testing

Make a test purchase. If the integration was setup correctly, the user will be registered in DAP. You will find the user account in the DAP Users > Manage screen and you will find the completed transaction / order details on the DAP Orders page.

If the test order is listed in DAP Orders page, then CB is correctly integrated with DAP. Check the payment status in DAP Orders page.

If it says Success, but no welcome/thank-you email got sent, then make sure you set the thank-you email for that product in DAP products page.

### Troubleshooting

If no order is listed in DAP orders page for the test purchase, then CB is not integrated with DAP.

To troubleshoot, do the following:

1. Set DAP Setup > Config > Log Level to 5.
2. Empty log content under System -> Logs.
3. Run another test purchase.
4. Send us the log snippet from System -> Logs.