How to use numbers
All tests are conducted within the sandbox environment, which is specifically designed to simulate real-world payment flows without processing actual transactions. This environment allows you to safely integrate and validate your implementation of the Yabetoo API without any financial impact. To interact with the sandbox environment, you must use test API keys. These keys are distinct from your live API keys and are intended solely for development and testing purposes. When a test API key is provided during SDK or API initialization, all requests are automatically routed to the sandbox endpoint, ensuring complete isolation from the live production system. Test API keys behave similarly to live keys, allowing you to perform all core operations such as creating payment sessions, generating payment intents, confirming transactions, and receiving webhooks—within the boundaries of the sandbox.Test numbers
The following test numbers are provided for the sandbox environment. Each number simulates a mobile money user with a predefined transaction outcome.These numbers are only valid in the sandbox environment and cannot be used for
real transactions.
Successful Transactions
These numbers simulate a successful payment flow where the transaction is completed and confirmed.Failed Transactions
These numbers simulate different types of transaction failures. Use them to verify how your system responds to specific failure reasons.Expired / Timeout Scenarios
These numbers simulate delayed or unresponsive transactions. They are ideal for testing time-based logic like retries or expired payment sessions.Explanation of Failure message Values
Thefailure_message field provides additional context about the transaction outcome. Here’s a breakdown of the possible values
Each test number is associated with a predefined status (succeeded, failed, or expired) and a corresponding reason. This helps simulate various real-world failure scenarios when testing payment flows in the sandbox environment.