POS Integration Guide
POS Integration using QRCode
Are you a merchant partner looking to integrate octifi in your Application/POS terminal?
Welcome
Integrate OctiFi by integrating a dynamic qrcode within your App.
Step 1: Create a dynamic qrcode by passing a bill {} to LatitudePay api (details below). Show the qrcode on your terminal.
Step 2: Customer scans the qrcode pay using octifi App
ο»Ώ
Step 3: If you need updates on the order use the status api (details below)
- This document only covers the staging environment api's.
- The api to create the dynamic qrcode requires an authorization key.
- Include the following header:
HTTP_AUTHORIZATION: Api-Key <your public key>
Response:
- Note down the qrcode text (which is a deep link) to be shown as a Qrcode Text
2. Note down the qrcode_id which can be used next in the status api.
We provide the status API as well to check the status of the QRCode above.
Result:
Keep calling the /status api until status changes to "SUCCESS".
These are valid values for status:
- PENDING : meaning order is still pending customer payment
- SUCCESS : customer payment is complete
- FAILED : customer payment is failed.
- We recommend that you keep calling the status api with 5second delay for upto 10mins to 15mins (until customer has made the final payment).
ο»Ώ
ο»Ώ