8min

Direct API integration Guide

Introduction

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.

Recommendation

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



Or using the REST APIs and doing the manual redirection

NOTE

For REST APIs use the below as a base URL

For Redirection

  • Staging/SG/MY - https://octifi.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

Get a cake by its ID
GET
Code examples
Params
Body
Curl
JSON
|
200
404
|

Step2: Manual redirection

Doing the manual redirection using javascript.

In this example we are trying manual redirect for staging(Singapore)

JS
|







Updated 13 May 2022
Did this page help?
Yes
No