HomeGuidesRecipesAPI ReferenceChangelog
API Reference
Guides
API Reference

2.16 Sandbox Testing

A quick guide on how to have a complete E2E test in sandbox environment

In the sandbox environment, we don't move real money around. However, we've made end to end testing relatively easy in sandbox environment using test account numbers.
You can use a success account number to get a complete status on your collection/disbursement while a failure account results in a failed status.

Test account numbers

  • success bank account number - 1111111111
  • failure account number - 0000000000
  • success mobile money account number - +{countryCode}1111111111. e.g. +2341111111111
  • failure mobile money account number - +{countryCode}0000000000. e.g. +2340000000000

Disbursement

Here's an example of what your destination object will look like for a bank disbursement request failed simulation

"destination": {  
    "accountName": "Regina Phalenge",  
    "accountNumber": "0000000000",  
    "accountType": "bank",  
    "networkId": "5f1af11b-305f-4420-8fce-65ed2725a409"  
 }

Collection

Here's an example of what your source object will look like for a momo collection request complete simulation

"source": {
  "accountNumber": "+2341111111111",
  "accountType": "momo",
  "networkId": "20823163-f55c-4fa5-8cdb-d59c5289a137"
}