ClickBank IPN Integration

What is offered

We will describe in detail how you can integrate MQLLock with ClickBank.com. This description is for beginners and will cover Automatic adding clients and automatic removing refunded clients. You will still require basic php, hosting skills in order to understand this documentation.

What is IPN

IPN is Instant Payment Notification, IPN makes possible that ClickBank clients´s scripts get notified automatically upon new order has been received or someone has requested refund. With IPN its possible to automate sales and refunds and re-act almost realtime. You will not need any manual interaction anymore if you have setuped IPN Backend. Typically IPN is a script hosted on your server, you have to tell ClickBank about your URL and ClickBank will send data to this url internally. Your clients (person who has purchased the product) does not see anything, everything happens automatically in background

Requirements

You need a valid ClickBank account, if you dont have an Account, you can Signup one here. You will need api2.php file from MQLLock Downloads section. See details about api2 here. Knowledge about PHP is required to make modifications or you have someone who understands PHP basics. You will also need a hosting with Pear::Mail Enabled PHP and FTP Account to upload files.

Installation

Upload api2.php and single.php to your hosting, edit single.php with your settings (see Video). Assume your domain is ‘maindomain.com’, we recommend you to create a subfolder ‘/ipn’ and put ‘single.php’ into this folder. Your IPN Url would be ‘http://maindomain.com/ipn/single.php’. Then you will have to define a “Secret Key” (check video).

Introduction Video

Authentication

Current version of single.php is using Receipt number as authentication credential on MQLLock. Upon real sale your client gets an unique Receipt number assigned, this number is known to you and your client. If you want to use different token to authenticate, you can modify single.php accordingly.

IPN Docs

ClickBank has some IPN Documentation available here. You will need to be signed in, in order to view this page. Please login first to your account and click to this link.

Testing

ClickBank does not trigger IPN Notification by Test Sales. Test Sales are not suitable to test your IPN Scripts. We recommend you to test with 10$ products then increase the amount of your product. You will not be able to test Refunds but they should work if Sale is working.

Debugging

IPN is very important and you should not miss any errors or mistakes. Thats why we have prepared very detailed Debugging Output. You will receive from that script very detailed output as email per session. A Session is 1 IPN Transaction. We recommend you to check these logs in detail first weeks to find problems.

Future

Script here is working for many purphoses, but you might need to modify/extend this script to adapt to other needs. For this you will need to understand php and mqllock api coding. This script covers almost everything to get started for normal marketting needs. Advanced users can modify it as they need.

Outsource

If you aren´t PHP developer you can hire a freelancer to do this job, he will be able to understand everything after reviewing this page and api2 page. Also make sure this person watches introduction video to get started

Download

You can download files here

Tagged with: , , , , ,
Posted in MQLLock Updates