Skip to content
Developer guide

Test it in sandbox

Built-in test rails that return production-shaped payment data, and how to force every outcome.

Context and key considerations
Nothing to configure. A fresh sandbox shop has no payment methods wired yet, so these rails are surfaced by GET /api/v1/payment-methods from the very first call — you can charge against them out of the box. They only ever appear on a sk_test_ key; a production charge can never reach a test id.
1 / 4

Test rails

Charge them exactly like a real rail: pass the paymentMethodId to POST /api/v1/payments. Every charge lands pending with real payment data, and you decide the outcome.

paymentMethodIdRailCountryCurrency
sbx_speiSPEI bank transferMexicoMXN
sbx_cashOXXO Pay (cash voucher)MexicoMXN
sbx_card_mxLocal credit cardMexicoMXN
sbx_debit_mxLocal debit cardMexicoMXN
sbx_pixPIXBrazilBRL
sbx_psePSE bank transferColombiaCOP
sbx_cardCardUnited StatesUSD
Key2Pay Developer documentationAPI v1
Documentation
Dashboard