See also the Braintree_PaymentMethodNonce response object.

note

You should only find payment method nonces server-side when using 3D Secure. For more information, see the 3D Secure guide.

You can get more information about a payment method nonce by passing the nonce string as an argument to the find method.

Unlike other calls, a find call does not consume the payment method nonce – instead, it returns the nonce string back to your server along with 3D Secure information such as liabilityShifted and liabilityShiftPossible. This can be used for server-side risk checking before creating transactions.

PHP
Copy
Copied
$paymentMethodNonce = Braintree_PaymentMethodNonce::find('nonce_string');
$info = $paymentMethodNonce->threeDSecureInfo;
if (empty($info)) {
  // This means that the nonce was not 3D Secured
  return;
}
$info->enrolled;
$info->status;
$info->liabilityShifted;
$info->liabilityShiftPossible;

If the payment method nonce can't be found, you'll receive a Braintree_Exception_NotFound exception.

Arguments
paymentMethodNonce required, string

The payment method nonce

Still have questions?

If you can’t find an answer, contact our Support team.