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

2Checkout Documentation

Check

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