-
Notifications
You must be signed in to change notification settings - Fork 66
Notification_Check
Craig Christenson edited this page Oct 26, 2012
·
3 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 message method in the Twocheckout_Notification class provides a binding to validate the MD5 hash.
##Method
- check: Validates the MD5 hash.
##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:
<?php
$params = array();
foreach ($_POST as $k => $v) {
$params[$k] = $v;
}
$result = Twocheckout_Notification::check($params, 'tango', 'array');
####Example Response:
Array
(
[response_code] => Success
[response_message] => Hash Matched
)
Please feel free to contact 2Checkout directly for assistance with your integration.