Testing & Sandbox

How to safely test your SamaPay integration using our magic numbers and simulation tools.

Before you switch to production, it is crucial to test every possible payment outcome. Our sandbox environment allows you to simulate success, failures, and timeouts by using specific phone numbers.

Magic Numbers

Use these phone numbers in the customer.phone field during checkout to trigger specific scenarios.

Phone NumberExpected OutcomeScenario
2207000000SuccessStandard successful checkout
2206000001FailureInsufficient user balance
2206000002TimeoutUser didn't enter PIN in time
2206000003BlockedKYC-limited or blocked account

Simulation Flow

When you use a magic number, our backend bypasses the actual Wave/QMoney gateway and returns the simulated response immediately to your webhook URL.

Loading Flow...

Magic numbers only work in the Sandbox environment. Using these numbers in Production will attempt to charge actual accounts (if they exist).

Verification Steps

  1. Initiate: Start a checkout session via API or Dashboard.
  2. Redirect: Open the checkout_url provided in the response.
  3. Trigger: Enter one of the Magic Numbers above.
  4. Listen: Check your Webhook Logs for the incoming event.
  5. Analyze: Ensure your system handles the metadata and status fields correctly.
GH
TechHive SamaPay Docs
Last updated Mar 2026