" dynamic="no"} Language Libraries | Developer Documentation | 2Checkout
Language

2Checkout Documentation

Check

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'
}