See also the PaymentMethodNonce response object.

note

You should only create payment method nonces server-side when using 3D Secure or Checkout with PayPal.

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

Python
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 throw a NotFoundError exception.

Parameters
'payment_method_token' required, str

The token of the payment method