See also the Braintree_PaymentMethodNonce response object.

note

You only need to create payment method nonces server-side when using 3D Secure. For more information please see the 3D Secure guide.

To create a payment method nonce, only the payment method token is required.

PHP
$result = Braintree_PaymentMethodNonce::create('A_PAYMENT_METHOD_TOKEN');
$nonce = $result->paymentMethodNonce->nonce;

If the payment method cannot be found, you'll receive a Braintree_Exception_NotFound exception.

Parameters
'paymentMethodToken' required, string

The token of the payment method

Still Have Questions?

If you can’t find an answer, give us a call at 877.434.2894 or contact our Support team