See also the Braintree::PaymentMethodNonce response object.


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

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

Click to copy
result = Braintree::PaymentMethodNonce.create("A_PAYMENT_METHOD_TOKEN")
nonce = result.payment_method_nonce.nonce

If the payment method cannot be found, it will raise a Braintree::NotFoundError.

:payment_method_token required, String

The token of the payment method

Still have questions?

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