User:Kammie1223

$gateway = new Braintree_Gateway([

'accessToken' => accessTokenForRecipient,

]);

$grantResult = $gateway->paymentMethod->grant(

'the_payment_method_token',

['allowVaulting' => false, 'includeBillingPostalCode' => true]

);

$nonceToSendToRecipient = $grantResult->paymentMethodNonce->nonce;

// ...