|
I’m recently asked the AEC developer to add ClickBank payment processor to AEC component to be used in the latest Joomla. The developer almost done all the things but he doesn’t have much time to debug a simple error of the script in a short time. The error is about verification error,
so I want any AEC and ClickBank expert here to help me on fixing this ClickBank processor error.
It’s just only one php script to do.
For AEC expert you should already know that every new processor can be added to the following folder under Joomla. And the clickbank.php is already added in the attached file.
..components/com_acctexp/processors/clickbank.php
Please download the attached AEC component and looking into the clickbank.php code, I think that the problem should be about the validateNotification function in clickbank.php
ClickBank expert should know that it have 2 type of verification of payment to send back to your website. “Link Security Script” and “Instant Notification service” and their variable parameters are different.
As I see that the developer has set an array for standard parameters as follow:
$stdParams = array( 'ccustname', 'ccuststate', 'ccustcc', 'ccustemail', 'cproditem', 'cprodtitle', 'cprodtype','ctransaction','ctransaffiliate', 'ctransamount', 'ctranspaymentmethod', 'ctranspublisher', 'ctransreceipt', 'caffitid', 'cvendthru', 'ctranstime' );
And those are the parameter for “Instant Notification service”:
https://www.clickbank.com/20080219_release_summary.html#URL_PARAMS
Which is difference to the parameters use for “Link Security Script”
https://www.clickbank.com/publisher_tools.html#Publisher_Tools_7
When the first time customer has successfully paid, it will use “Link Security Script” to validate the payment. So, we will have to have clickbank.php to deal with this first; as shown in ClickBank example at:
https://www.clickbank.com/publisher_tools.html#Publisher_Tools_7
function cbValid()
{ $key='YOUR SECRET KEY'; $rcpt=$_REQUEST['cbreceipt']; $time=$_REQUEST['time']; $item=$_REQUEST['item']; $cbpop=$_REQUEST['cbpop']; $xxpop=sha1("$key|$rcpt|$time|$item”); $xxpop=strtoupper(substr($xxpop,0,8)); if ($cbpop==$xxpop) return 1; else return 0; }
Then later clickbank will also send an " Instant Notification service” again to tell every transaction made.
This is useful only for the second and later payment of the recurring payment settled.
I may not understand the ClickBank work flow quite correctly, so I want a ClickBank expert to solve the problem to have the clickbank integration works.
Clickbank info:
http://www.clickbank.com/sell_products.html
“Link Security Script”
https://www.clickbank.com/publisher_tools.html#Publisher_Tools_7
“Instant Notification service”:
https://www.clickbank.com/20080219_release_summary.html#URL_PARAMS
AEC info:
https://globalnerd.org/index.php/AEC1.html
Attachment:
|
- Post by:
fxcounts - Posted on: 12/Nov/2008 at 04:01:38
- Status: Frozen (No bidding. Waiting for action from Buyer. ) - Budget: Any budget
- Bids duration: From to 26/Nov/2008 at 04:01:38
- Time left for bidding: 0 day(s) left (out of 14)
- Job Types:
- Location: Freelancer can be from any country
|