Introduction
Learn how to integrate PayGate into your application and start accepting payments in Ghana.
PayGate Documentation
PayGate is a payment infrastructure for Ghana that enables businesses to accept Mobile Money payments, process payouts, and manage subscriptions with a single integration.
Looking to get started quickly? Check out our Quick Start Guide to create your first payment in under 5 minutes.
Key Features
- Mobile Money Payments - Accept payments from MTN Mobile Money, Telecel Cash, and AirtelTigo Money
- Subscriptions - Create recurring billing plans and manage customer subscriptions
- Payouts - Send money to any mobile money wallet or bank account in Ghana
- Webhooks - Get real-time notifications for payment events
- Developer-First - Beautiful SDKs, comprehensive docs, and sandbox environment
Quick Example
Here's a simple example of creating a payment using our Node.js SDK:
import PayGate from '@paygate/node'
const paygate = new PayGate('sk_test_...')
// Create a payment
const payment = await paygate.payments.create({
amount: 5000,
currency: 'GHS',
payment_method: 'mobile_money',
provider: 'mtn',
phone: '0241234567',
description: 'Order #1234'
})
console.log(payment.id) // pay_abc123...API Overview
The PayGate API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Base URL
| Environment | URL |
|---|---|
| Production | https://api.44.200.142.19.nip.io |
| Test Mode | https://api.44.200.142.19.nip.io (with test API keys) |
Authentication
Authenticate your API requests by including your secret API key in the Authorization header:
Authorization: Bearer sk_live_your_api_key_hereNever share your secret API keys or include them in client-side code.