-
Notifications
You must be signed in to change notification settings - Fork 17
Notification_Check
Jacob McConnell edited this page Jun 9, 2014
·
2 revisions
2Checkout's Instant Notification Service passes messages for each sale event such as a recurring billing success or decline to a URL you specify for each message type under the Notifcations area in your account. The check method in the Notification 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 by POST to your INS script. 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'
result = twocheckout.Notification.check(params)
####Example Response:
{
'response_code': 'SUCCESS',
'response_message': 'Hash Matched'
}
Please feel free to contact 2Checkout directly for assistance with your integration.