website logo
⌘K
🚀Getting Started
Welcome Developers
Web integration Architecture
Integration Prerequisite
🔐Authentication
📌Sandbox and Live Environment
🛠️Integration Options
POS Integration Guide
Direct API integration Guide
⚙️Plugins
🇲🇾Malaysia
🇸🇬Singapore
🛍️Marketing brand guide
🔍Logo introduction
🖥️Sitewide
👗Product & service pages
👜Checkout and cart page
🌐Website Assets
API REFERENCE
Docs powered by archbee 
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

  • Staging/SG/MY - https://k2.latitudepay.me/api/v1/
  • Production(SG) - https:// k2.octifi.com/api/v1/
  • Production(MY) - https:// k2.my.latitudepay.com/api/v1/

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

Get a cake by its ID
GET
Params
Body Parameters
id
required
String
ID of the cake to get

Step2: Manual redirection

Doing the manual redirection using javascript.

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

JS
|





Updated 21 Nov 2022
Did this page help you?
Yes
No
UP NEXT
Quickstart
Docs powered by archbee 
Create PreCheckout Token