-
Notifications
You must be signed in to change notification settings - Fork 17
Passback_Check
Craig Christenson edited this page Oct 26, 2012
·
1 revision
2Checkout returns both the buyer and a set of sale parameters including any custom parameters to the approved URL when the sale has been completed. The check method in the Return class provides a binding to validate the MD5 hash.
##Method
###check
Use to validate the MD5 hash.
####Arguments
- dictionary Parameters
- Dictionary of sale parameters passed to your approved URL. Secret Word needs to be added to dictionary using
secret
key.
####Returns
Returns result of validating MD5 Hash.
####Example Usage:
params = web.input() # using web.py
params['secret'] = 'tango'
twocheckout.Passback.check(params)
####Example Response:
{
'response_code': 'SUCCESS',
'response_message': 'Hash Matched'
}
Please feel free to contact 2Checkout directly for assistance with your integration.