API Endpoint | Purpose | Method |
---|---|---|
/api/v2/checkout | Create session and payment | POST |
/api/v2/payments/{payment.id} | Retrieve payment status | GET |
/api/v2/checkout/{id of session}/cancel | Cancel session | POST |
Key Status Codes | Description |
---|---|
CREATED | Payment initiated, waiting for completion |
AUTHORIZED | Payment approved, not yet captured |
CLOSED with “captures” object | Payment approved and captured successfully |
REJECTED | Payment declined |
EXPIRED | Session/payment expired or cancelled |
Register with Tabby and finish the application
Collect the Test API Keys and Merchant codes from Tabby Merchant Dashboard or your Account Manager
Set up the Tabby session creation from your terminal
Show a QR code on the POS screen
Set up Payment status check on your Backend. This can be done automatically by checking until the payment is completed or manually from the POS
Once the payment is complete - print the receipt for the customer
Test your Integration, contact Tabby Integrations Team in the Integration email thread to complete the testing process
After successful testing, receive the Live API keys and deploy to production
“created”
or “rejected”
:
“created”
- save the id of the session (will be required for cancellation step) and payment.id (will be required for payment status check and refund steps) received in the response:“rejected”
- show the Payment failure screen and offer the customer an alternative payment method. Please, do not proceed with any further steps with Tabby. The rejection might be related to order amount being too high, disabled branch code, or other reasons. The response payload will contain the following:“created”
you will receive the QR Code link and web_url link in the response. Use any of the links to generate and show the QR Code on the POS screen to the customer to scan.
CREATED
- the payment has not been completed yet, wait for it to change to one of the terminal statuses.AUTHORIZED
or CLOSED
- the payment is successful, mark order as successful, print a receipt.REJECTED
or EXPIRED
- the payment is not successful. Ask the customer to pay with a different payment method.CREATED
. Once canceled - the status will change to EXPIRED
.
If the payment has already been successful, attempting to cancel it will return the following error: 400 Bad Request
AUTHORIZED
or CLOSED
. Then show a success screen, print a receipt and proceed with the order.
AUTHORIZED
, CLOSED
, REJECTED
or EXPIRED
- the session cannot be cancelled.payment.id
by matched payment.order.reference_id
in your OMS.
You can also process a refund from the Tabby Merchant Dashboard.
CLOSED
with a captured amount present in the “captures”:[]
array of objects can be refunded.CAPTURED
.Receipt data template |
---|
Merchant Order / Transaction ID |
Date and Time |
Tabby logo |
Tabby Payment ID (optional) |
Merchant name (optional) |
Native Screen POS Journey
OTP:8888
on Tabby Checkout page.“created”
, and a QR code is shown successfully on the POS screen.CAPTURED
CLOSED
, captured amount is present in the “captures”:[]
array of objects.NEW
on the Merchant Dashboard or AUTHORIZED
via Retrieve Payment API call - kindly contact your Tabby Account manager or partner@tabby.ai
to update auto-capture settings.“rejected”
. Tabby payment method is not available. Another payment method should be selected on POS terminal.“created”
, and a QR code is shown successfully on the POS screen.EXPIRED
status. A new session can be created from POS terminal.OTP:8888
on Tabby Checkout page.“created”
, and a QR code is shown successfully on the POS screen.REJECTED
.Secret API Key
and merchant_code
into the appropriate Collection Variables.