Skip to main content

4.Test Papi in the sandbox environment

The sandbox environment is a testing space where you can explore and simulate all payment features without processing real transactions. It is designed to help developers interact with Papi, verify their integration, and ensure everything works smoothly before transitioning to the production environment.

Use the sandbox to play with Papi, test various scenarios, and get familiar with the entire payment flow, from generating payment links to handling callbacks.


Testing payment methods

Visa

Use the single test card below and vary the transaction amount to trigger each authorization outcome — the card number, expiry and CVV stay the same, only the amount changes the result. These are Cybersource amount-based triggers; the trigger value is the total amount sent for authorization, fees included.

Any outcome other than a successful authorization is reported by Papi as failed.

Card NumberExpiry DateCVVAmount (trigger · fees incl.)ScenarioFinal StatusDescription
4242 4242 4242 4242Any future dateAny 3 digits1000.00Payment AuthorizedsuccessTransaction authorized and completed successfully.
4242 4242 4242 4242Any future dateAny 3 digits4051.00Insufficient fundsfailedThe card does not have enough funds to cover the amount. The issuer declines the authorization, so Papi marks the payment as failed.
4242 4242 4242 4242Any future dateAny 3 digits4012.00Unauthorized cardfailedThe card is not authorized for this transaction. The issuer declines the authorization, so Papi marks the payment as failed.

Orange Money

Phone NumberScenarioFinal StatusDescription
0321230001SuccesssuccessTransaction completed successfully
0321230002Insufficient BalancefailedInsufficient funds in account
0321230003Invalid Phone NumberfailedPhone number format or validity issue
0321230004Account BlockedfailedAccount is blocked or restricted

MVola

Phone NumberScenarioFinal StatusDescription
0341230001SuccesssuccessTransaction completed successfully
0341230002Insufficient BalancefailedInsufficient funds in account
0341230003Invalid Phone NumberfailedPhone number format or validity issue
0341230004Account BlockedfailedAccount is blocked or restricted

Airtel

Phone NumberScenarioFinal StatusDescription
331230001SuccesssuccessTransaction completed successfully
331230002Insufficient BalancefailedInsufficient funds in account
331230003Invalid Phone NumberfailedPhone number format or validity issue
331230004Account BlockedfailedAccount is blocked or restricted

Key points to remember

  1. The sandbox environment is purely for testing purposes, so no real money is involved.
  2. Always validate your API integration thoroughly in the sandbox before switching to production.
  3. Use the phone numbers, and the test card with the trigger amounts listed above, to simulate specific scenarios (success, insufficient funds, unauthorized card, etc.).

By using the provided test credentials and simulating different payment scenarios, you can confidently prepare your system for real-world use in the production environment.