SafetyPay banks
Use this demo when the selected payment method requires a SafetyPay bank:
- The demo loads SafetyPay banks with
getPaymentMethodBanks()when it starts. - Select a bank from the
cashortransfergroup. - Click Deposit to call
pay()withpayment_method.type = 'safetypaycash'orpayment_method.type = 'safetypaytransfer', based on the selected bank group, and the optionalidempotency_key. - Reconcile the asynchronous result with your backend/webhooks before fulfillment.
The selected bank routing code is sent in payment_method.config.bank_ids using the SafetyPay shape { id: bank.code }.
SafetyPay banks
Use the browser CDN build directly. Good for validating the SafetyPay contract without a framework.
Last updated on