Payment Method Nonce
Payment Method Nonce: Create
See also the Payment Method Nonce response object.
To create a payment method nonce, only the payment method token is required.
- Ruby
result = gateway.payment_method_nonce.create("A_PAYMENT_METHOD_TOKEN")
nonce = result.payment_method_nonce.nonce
If the payment method can't be found, it will raise a Braintree::NotFoundError
.
Parameters
:payment_method_token
StringThe token of the payment method