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
- Initialize an OPay payment transaction with the OPay initialize endpoint.
- Receive a
payment_url,reference, and current transactionstatusin the success response. - Redirect the customer to
payment_urlto complete payment on the OPay checkout page. - After payment, OPay redirects the customer back to the
callbackUrlsupplied in the request body. - Separately, a server-to-server webhook notification is sent to the webhook URL configured on your dashboard.
Base URL
https://backendapi.sayswitchgroup.comEndpoint
| Action | Method | Endpoint |
|---|---|---|
| Initialize transaction | POST | https://backendapi.sayswitchgroup.com/api/s2s/v1/transaction/opay/initialize |