For Developers
One API to accept every GCC payment method. Clean docs, official SDKs, and a sandbox that mirrors production.
// Create a payment sessionconst session = await milesPay.payments.create({ amount: 15000, // in halalas (SAR 150.00) currency: 'SAR', methods: ['mada', 'stc_pay', 'apple_pay', 'tabby'], reference: 'order_abc123', redirect_url: 'https://yourstore.com/confirm', metadata: { customer_id: 'cust_xyz', order_id: 'order_abc123', },});console.log(session.checkout_url);// → https://checkout.miles-pay.com/pay/sess_...API Features
Clean, predictable REST endpoints with JSON responses. Versioned and backward-compatible.
Accept payments in SAR, AED, KWD, QAR, BHD, OMR and settle in your preferred currency.
TLS 1.3, HMAC webhook signatures, idempotency keys, and PCI-DSS Level 1 infrastructure.
Official SDKs for Node.js, Python, PHP, and Java. Community libraries for more.
Comprehensive guides, API reference, code samples, and Postman collections.
Full-featured test environment with simulated GCC payment methods. No real money.
Integration Guide
Sign up and get your API keys from the Miles Pay dashboard in minutes.
Add our SDK to your project with a single npm, pip, or composer command.
Make your first API call to create a payment session with your chosen GCC methods.
Listen for payment events via webhooks to confirm and fulfill orders.
Switch to production keys, complete compliance checks, and start accepting real payments.
SDKs & Libraries
Node.js
npm install miles-payPython
pip install miles-payPHP
composer require miles-pay/sdkJava
implementation "com.milespay:sdk"Get your API keys, explore the sandbox, and ship GCC payments to your customers. Our developer support team is available at [email protected]