Initialize Transaction
Learn how to initialize a transaction with our API
To create a payment link, start by initializing a payment with our API. You will have to complete this transaction with the link created.
There are 3 steps to ensure that you have successfully initiated and complete an transaction.
- initialize transaction
- complete transaction
- verify transaction status
To initialize a transaction, when you make a POST
request to the endpoint /v1/pay
. you will be required to pass the required request parameters listed below.
Initialize transaction
ExpiryDate must be in a valid ISO 8601 format and should not be in the past. If you do not pass a expiryDate as part of your request parameters, we automatically set a 24hrs expiration hours to all initialize transaction.
Account reference
Complete transaction
An example response body of a transaction.
When you successfully initialize a transaction, the response returned will include a data
object that contains transactionRef
and paymentUrl
. This URL will serve as a link to an external page to complete the transaction.
Handling Initialize Transaction response body
Indicates if the request was successful.
Descriptive message about the request result.
Verify transaction status
When you complete a payment, you will be redirect to the customUrl
you set when initializing a transaction. Then can then proceed to learn how to verify a transaction status here
CustomUrl is optional but recommended to improve user experience post-payment.