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.

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

If the payment method can't be found, you'll receive a Braintree\Exception\NotFound exception.

Parameters
'paymentMethodToken' required, string

The token of the payment method