Braintree Payment Form
Pay with Credit Card
Pay with Paypal
After Successfully payment with Credit Card OR Paypal, Server will an Get Response similar to below.
Array ( [payment_method_nonce] => e91cdbff-d914-485f-817a-51f473b18445 )
This token is known as payment nonce. You can use this nonce once and can be used to get the payment from user account.
$paymentNonce=$POST[payment_method_nonce];//this is nonce $result = Braintree_Transaction::sale([ 'amount' => '10.00', 'paymentMethodNonce' => $paymentNonce, 'options' => [ 'submitForSettlement' => True ] ]);