**Overview**
Create 1-way integration between Clickbank and the Nanacast API using an intermediate PHP page. Log API events to a MySQL database. Build a simple password-protected admin page to view MySQL-captured API events and search past events.
[Nanacast Outgoing API][1] (incoming API is slightly different and will be provided)
[Clickbank API][2]
**Specifics Needed:**
* When a customer completes a sale at Clickbank, I need to "**add**" the customer to the specified product/membership in Nanacast via their API.
* When a customer refunds a transaction at Clickbank, I need to "**suspend**" the customer's membership/product access at Nanacast.
* When any of the above API events occur, I need a record of the transaction and all events (name, address, product/membership ID, success/fail errors, etc) logged to a MySQL 5 database for tracking purposes.
* I need a simple, PHP password-protected "Admin Page" that lets me access the MySQL Event Log database.
* The PHP "Admin Page" should show 25 records at a time and allow me to search by keywords, names, membership/product ID's and dates.
* All variables (API keys, Clickbank secret keys, MySQL details, Admin page username/password, etc) should be placed in a single "[login to view URL]" file that is well documented.