{ ... gatewayType: "Braintree", type: "CREDIT_CARD", paymentMethodProperties: { "nonce": "your nonce" }, isSingleUsePaymentMethod: true, ... }
To execute Braintree transactions via PaymentTransactionServices, we must first create a Payment in PaymentTransactionServices. These Payments are most commonly created during the payment stage of your checkout flow.
We expect the frontend to provide a nonce that’s linked to the customer’s card details, so that the payment transaction can be executed.
The nonce should be provided in the create Payment payload in the following way:
{ ... gatewayType: "Braintree", type: "CREDIT_CARD", paymentMethodProperties: { "nonce": "your nonce" }, isSingleUsePaymentMethod: true, ... }
Note
|
Also see how to add a payment via the Commerce SDK. |