-
Notifications
You must be signed in to change notification settings - Fork 66
Return_Check
Jacob McConnell edited this page Jun 10, 2014
·
3 revisions
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 Twocheckout_Return class provides a binding to validate the MD5 hash.
##Methods
##check
Use to validate the MD5 hash.
####Arguments
- array Parameters
- An array of the returned parameters.
- string secret word
- Secret Word used to validate MD5 hash (Set on Site Management page)
####Returns
Returns the result of the hash check.
####Example Usage:
$params = array();
foreach ($_REQUEST as $k => $v) {
$params[$k] = $v;
}
$passback = Twocheckout_Return::check($params, "tango");
####Example Response:
Array
(
[response_code] => Success
[response_message] => Hash Matched
)
Please feel free to contact 2Checkout directly for assistance with your integration.