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ย 

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
Integration Architecture
๏ปฟ

NOTE

For REST APIs use the below 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}๏ปฟ
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
PREVIOUS
POS Integration Guide
NEXT
Quickstart
Docs powered byย archbeeย 
Step 1: GET pre-checkout token