Skip to Content
PekoPay API Integration Docs
DocumentationDeveloper GuideProduction and Sandbox Testing

Production and Sandbox Testing

Production practices

  • Keep clientSecret in backend-only secret storage.
  • Never expose credentials in frontend code.
  • Use HTTPS only.
  • Verify webhook signatures using raw body.
  • Make webhook handlers idempotent.
  • Rotate API credentials on schedule.
  • Refresh expired payment tokens using sessionTokenProvider.

Sandbox test cards

Use for sandbox testing only.

Important notes:

  • If CVV is required and not specified, use any random CVV.
  • AMEX CVV is 4 digits.
  • Expiry date can be any future date for regular sandbox tests.
  • Use invalid/expired dates only for failure testing scenarios.
Brand/TypeNumberExpiry (example)CVVCountry/CurrencyExpected Result
Amex37424545540012605/2026(any)-Success
Amex37828224631000505/2026(any)-Failure
China UnionPay625094100652859906/2026(any)CN / USDSuccess
Discover601100099130000912/2026(any)US / USDSuccess
JCB356600002000041002/2026123JP / JPYSuccess
JCB353011133330000003/2026(any)JP / JPYFailure
Mastercard542523343010990304/2026(any)-Success
Mastercard222300004841001009/2026(any)-Success
Visa426398264026929902/2026837-Success
Visa Debit Card470132221111123412/2026837-Success
Visa Debit Card434769998888777701/2026555-Failure
Last updated on