OPay API Documentation

Version: v1.0

Integration type: Server-to-Server Integration

The OPay server-to-server flow initializes a payment transaction and returns a payment_url. Redirect the customer to this URL so they can complete payment on the OPay checkout page.

Payment Flow

  1. Initialize an OPay payment transaction with the OPay initialize endpoint.
  2. Receive a payment_url, reference, and current transaction status in the success response.
  3. Redirect the customer to payment_url to complete payment on the OPay checkout page.
  4. After payment, OPay redirects the customer back to the callbackUrl supplied in the request body.
  5. Separately, a server-to-server webhook notification is sent to the webhook URL configured on your dashboard.

Base URL

https://backendapi.sayswitchgroup.com

Endpoint

ActionMethodEndpoint
Initialize transactionPOSThttps://backendapi.sayswitchgroup.com/api/s2s/v1/transaction/opay/initialize