Direct API integration Guide
Do you intend to use our direct APIs for integration? You can absolutely do so using this guide.
If you do not intend to use the octifi-websdk.js continue.
If you are okay running some javascript on your client, you are recommended to use the SDK we provide. The SDK hides a lot of complexity and hence is the recommended way to integrate. You can use the web integration guide for an overview of how to use our octifi-websdk.js
NOTE
For REST APIs use the below as a base URL
For Redirection
- Staging/SG/MY - https://latitudepay.me/webview/checkout/${precheckoutid}/?merchant_public_key=${public_key}
- Production(SG) - https://app.octifi.com/webview/checkout/${precheckoutid}/?merchant_public_key=${public_key}
- Production(MY) - https://my.latitudepay.com/webview/checkout/${precheckoutid}/?merchant_public_key=${public_key}
Step1: GET precheckout token
check /webview/ POST: method API. In the success API response you will get a precheckout token
Step2: Manual redirection
Doing the manual redirection using javascript.
In this example we are trying manual redirect for staging(Singapore)