Closed vbezruchkin closed 11 years ago
$iaCore->get('checkout_secret') returns correct string that's configured in my 2checkout account $iaCore->get('checkout_id') - returns correct account number
logInfo method only prints debug information in the file
If the hashes are not matching, the most common cause is that you are placing a demo sale. 2Checkout intentionally breaks the hash on demo sales by using a "1" for the order number when the hash is computed. If you handle this in your app like below it should match correctly on demo sales.
if ($params['demo'] == 'Y') {
$params['order_number'] = '1';
}
Thanks Craig. Worked fine.
Greetings,
I'm working on a plugin integration for Subrion CMS. Here is what I have now:
that's used to send the form data. I'm redirected to 2checkout and it seems I pass all the needed details there.
Here is the code to process response:
I always get incorrect hash. Even when I try to validate the data manually I see I get different hashes. What could be the case? Please advise!