Sending back the payment method nonce
How to send the payment method nonce you receive from Braintree back to Commerce Layer
Last updated
How to send the payment method nonce you receive from Braintree back to Commerce Layer
Last updated
Your customer has submitted credit card information to Braintree — i.e. through its integrated into your client. Your client has received a payment method nonce in response and you need to send it back to Commerce Layer to proceed with the payment flow.
To send the payment method nonce back to Commerce Layer you have to update the Braintree payment object. To do that, send a PATCH
request to the /api/braintree_payments/:id
endpoint, setting the payment_method_nonce
attribute.
The following request updates the Braintree payment source identified by the "vdDEAsZYzR" ID with the payment method nonce received from the client:
See our documentation if you need more information on how to . See our Checkout guide for more details on how to place an order.