Skip to content
Wire Ghdocs

Wire Gh Documentation

Welcome to the Wire Gh developer documentation. Everything you need to accept payments in your website or app, from your first test payment to going live.

Quick start

Accept a payment

Here is the quickest way to take a payment with the Wire Gh Pay API. It takes three steps.

Before you begin

Create a free Wire Gh account and open Wire Pay from your dashboard. Your test keys are ready at once on the API & Sandbox page.

  1. Initialize the transaction on your serverSend the customer's email and the amount in pesewas with your secret key. You get back a checkout link.
POST/transaction/initialize
curl https://api.wiregh.com/transaction/initialize \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
  "email": "customer@email.com",
  "amount": 20000
}' \
-X POST
Response
{
  "status": true,
  "message": "Authorization URL created",
  "data": {
    "authorization_url": "https://checkout.wiregh.com/5297adjn3udup2s",
    "access_code": "5297adjn3udup2s",
    "reference": "WG261109RF9825WN4C3L9K"
  }
}
  1. Send your customer to the checkoutRedirect them to authorization_url. They pick their network, enter their Mobile Money number and approve the prompt on their phone. When they finish, we send them back to your callback URL with the reference.
  2. Verify the payment, then give valueOn your server, verify the reference and check that status is success and amount is what you expected.
GET/transaction/verify/:reference
curl https://api.wiregh.com/transaction/verify/WG261109RF9825WN4C3L9K \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-X GET

Prefer to keep customers on your page? Use the popup. Want your own payment screens? Use the Charge API.

Explore