See also the PaymentMethodNonce response object.

note

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.

dotnet
Result<PaymentMethodNonce> result = gateway.PaymentMethodNonce.Create("A_PAYMENT_METHOD_TOKEN");
String nonce = result.Target.Nonce;

If the payment method can't be found, it will throw a NotFoundException.

Parameters
PaymentMethodToken required, string

The token of the payment method