You are here

function commerce_payflow_link_validate_result in Commerce PayPal 7.2

Determines whether or not a transaction was accepted based on the RESULT.

Parameters

$result: The RESULT value from a Payflow transaction.

Return value

Boolean indicating whether or not a transaction was accepted.

1 call to commerce_payflow_link_validate_result()
commerce_payflow_link_redirect_form_validate in modules/payflow/commerce_payflow.module
Payment method callback: redirect form return validation.

File

modules/payflow/commerce_payflow.module, line 1425
Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.

Code

function commerce_payflow_link_validate_result($result) {

  // Return TRUE for a transaction that was either accepted or has been flagged
  // for manual review by the merchant.
  if (in_array(intval($result), array(
    0,
    126,
  ))) {
    return TRUE;
  }
  return FALSE;
}