This guide explains how to test different payout scenarios in the sandbox environment using account number suffixes for Nigeria bank transfers.
When testing payouts to Nigerian bank accounts in the sandbox environment, you can simulate various scenarios by encoding the test case in the last two digits of the recipient’s account number. This allows you to comprehensively test your integration’s error handling, retry logic, and different payout states without needing real bank accounts or transactions.
When you execute a payout in the sandbox environment:
Use an account number ending in 00
to simulate a successful payout:
Expected Result: Payout completes successfully
Use an account number ending in 12
to simulate an insufficient balance scenario:
Expected Result: Payout fails with an insufficient balance error
Use an account number ending in 13
to simulate an invalid amount scenario:
Expected Result: Payout fails with an invalid amount error
Use an account number ending in 23
to simulate an account not found scenario:
Expected Result: Payout fails with an account not found error
Account numbers ending in digits 26
through 99
(not in the mapping table) will behave according to default sandbox behavior, which typically results in successful payouts:
Expected Result: Default sandbox behavior (typically successful)
Sandbox Environment Only: These test scenarios only apply to the sandbox environment. Production payouts will use real bank account numbers and process actual transactions.
Account Number Format: Use valid 10-digit Nigerian bank account numbers with the last two digits set to your desired test scenario suffix.
Consistent Testing: When checking the status of a test payout, the same test scenario will be maintained throughout the lifecycle of that transaction.
Default Behavior: Account numbers ending in digits 26
through 99
(not included in the mapping table) will follow default sandbox behavior, which typically results in successful payouts.
Error Messages: Failed payout scenarios will return appropriate error messages and status codes that match real-world error conditions.
00
) to ensure your integration works correctly.10
) to verify your idempotency handling.02
, 03
, 05
, 06
) and frequency limits (suffixes 07
, 08
, 21
, 22
).Once you’ve completed testing in the sandbox environment, contact your account manager to enable production payouts. Production transactions will use real bank account numbers and process actual funds transfers.