Direct API integration Guide
6min
Introduction
This guide aims to assist you in incorporating our Direct APIs into your system. If you have no intention of utilising octifi-websdk.js, kindly proceed with reading the following information.
Recommendation
We recommend using our provided SDK if you're comfortable using JavaScript on your client-side, as it hides complexity and is the suggested way to integrate with our APIs. You can learn more about using it in our web integration guide.๏ปฟ
Alternatively, you can use the REST APIs and manually redirect the user in simple steps

Integration Architecture
๏ปฟ
NOTE
For REST APIs use the below URL๏ปฟ
For Redirection
Obtain a pre-checkout token by sending a POST request to the endpoint provided below, using your public key. The API response will contain the pre-checkout token.
POST
Params
Header Parameters
Authorization
required
String
Api-Key <Public-Key>
๏ปฟ
Generate a checkout token using the pre-checkout token obtained in Step 1. To obtain the checkout token, send a POST request to the endpoint provided below, using your public key. The API response will contain the checkout token.
POST
Params
Header Parameters
Authorization
required
String
Api-Key <Public-Key>
๏ปฟ
Create a charge by sending a POST request to the endpoint provided below, using your private key. The API response will contain a charge ID, which should be saved for future refunds.
POST
Params
Header Parameters
Authorization
required
String
Api-Key <Private-Key>
๏ปฟ
If you don't want to capture a charge immediately upon creating it, you can set the is_capture parameter to false in the charge create API (Step 3) . Then, you can use the charge_id to capture the charge at a later time by making another API call.
POST
Params
Header Parameters
Authrization
required
String
Api-Key <Private-Key>
๏ปฟ
๏ปฟ
Updated 10 Apr 2023
Did this page help you?
Yes
No