{ ... gatewayType: "MY_FATOORAH", type: "CREDIT_CARD", paymentMethodProperties: { "sessionId": "your session id" }, isSingleUsePaymentMethod: true, ... }
To execute MyFatoorah 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 session id that’s linked to the customer’s card details, so that the payment transaction can be executed.
The session id should be provided in the create Payment payload in the following way:
{ ... gatewayType: "MY_FATOORAH", type: "CREDIT_CARD", paymentMethodProperties: { "sessionId": "your session id" }, isSingleUsePaymentMethod: true, ... }
Note
|
Also see how to add a payment via the Commerce SDK. |