Standard Checkout

You can also integrate through the standard checkout approach, which allows you to generate a link for a particular transaction. This is done by calling our initialize transaction API which generates a checkout link, your customers can click on and then make payment.

How to Integrate

When your customer clicks on the checkout button, make a call to our initialize transaction API. We authenticate this call, by a Bearer Token, passed alongside the request. To see how to get you Bearer Token, click here getting my pay4it Bearer Token. You can pass the customer details such as email during this call. Pay4it validates your request and sends back a checkout link to complete payment.

-X POST
https://seerbitapi.com/api/v2/payments
-H 'Content-Type: application/json' 
-H 'Authorization: Bearer {token}

Merchant is expected to use the redirect link returned in the response to navigate to the Pay4it checkout modal to continue the transaction.

Last updated