Skip to main content
This guide walks you through accepting your first payment using Pursar’s Sandbox environment. You’ll learn how to authenticate with your test API key and trigger a Mobile Money or Card payment.

Step 1: Obtain your Sandbox API Key

In your Pursar Merchant Dashboard, navigate to Developers > API Keys to copy your test Secret Key:

Step 2: Choose your Integration Path

Pursar offers two primary ways to collect payments:

Direct Mobile Money Charge

Trigger an instant USSD / STK push on the customer’s phone without redirecting them to a web page. Best for mobile apps, USSD menus, and custom checkout flows.

Hosted Checkout Sessions

Redirect customers to a secure, mobile-optimized checkout page supporting Mobile Money, Cards, and Bank Transfer with zero frontend code.

Step 3: Make your First API Request

Let’s initiate a direct Mobile Money charge for 25,000 XAF to an MTN Cameroon mobile wallet:

Expected Response

In Sandbox mode, Pursar instantly simulates the telco response and transitions the charge to requires_action (or successful):

Step 4: Listen for Webhooks

To update your database and unlock digital products when payments succeed, register a webhook listener at POST /webhook_endpoints. Pursar delivers HMAC SHA-256 signed event payloads (charge.successful, payment_intent.succeeded). Check the Webhook Verification Guide for full signature validation examples in Python, Node.js, and PHP.