Checkout Flow
The first part of the journey begins with the customer arriving at your checkout.
Tabby Pay in 4 installments provide your customers with the possibility to split the purchase price into interest-free payments with the downpayment and monthly repayments.
Here are the design and the steps to implement Tabby payment method:
Enable Background Pre-scoring
Create Checkout Session and redirect a customer to the Tabby Payment Page
Redirect the customer back to your store
Make sure everything is implemented correctly with a few test cases before requesting live keys.
Testing Credentials
Tabby on Checkout
Use the standard Tabby naming, Checkout snippet and Logo (the text description is optional) to present Tabby method at your checkout.
English | Arabic | |
---|---|---|
Payment Method Name | Pay in 4. No interest, no fees. | قسّمها على 4. بدون أي فوائد، أو رسوم. |
Checkout Text Description | Use any card. | استخدم أي بطاقة |
Background Pre-scoring Check
The first step to build a successful journey is a background pre-scoring check which takes place at your checkout when total amount, contact and shipping details are already known to you. Initiate background pre-scoring session by calling Checkout API. In the response you receive one of two session statuses: “created” and “rejected”.
If a customer is eligible during this checking, you will receive the following parameters and can show Tabby payment method safely:
If a customer is not eligible, you will receive the following parameters and should hide/mark unavailable Tabby payment method:
You need to hide Tabby payment option or show it with the General Rejection message or specific reason message depending on the “rejection_reason”
value:
Reason | English | Arabic |
---|---|---|
General Rejection (not_available ) | Sorry, Tabby is unable to approve this purchase. Please use an alternative payment method for your order. | نأسف، تابي غير قادرة على الموافقة على هذه العملية. الرجاء استخدام طريقة دفع أخرى. |
order_amount_too_high | This purchase is above your current spending limit with Tabby, try a smaller cart or use another payment method | قيمة الطلب تفوق الحد الأقصى المسموح به حاليًا مع تابي. يُرجى تخفيض قيمة السلة أو استخدام وسيلة دفع أخرى. |
order_amount_too_low | The purchase amount is below the minimum amount required to use Tabby, try adding more items or use another payment method | قيمة الطلب أقل من الحد الأدنى المطلوب لاستخدام خدمة تابي. يُرجى زيادة قيمة الطلب أو استخدام وسيلة دفع أخرى. |
Show the rejection message for not eligible customers or hide Tabby
Checkout Session Initiation
Call Checkout API for the second time with the full payload as soon as the approved customer clicks “Place order” and redirect this customer via “web_url” link received in the response from Checkout API. Thus the customer will land at Tabby Hosted Payment Page.
Save “payment”.“id”
from Checkout API response, it will be used to verify, capture and refund the payment on the next steps.
At Tabby Checkout your customers will be asked:
- To verify the phone number by OTP (each transaction);
- To link Apple Pay or regular card (only for new Tabby customers);
- Additional data may be asked during customer’s flow for some new customers.
If your store checkout allows to change the customer or cart details (as applying discount codes), there is a chance that updated amount or customer details may cause a rejection, so you need to show the Rejection message as on Background Pre-Scoring step.
Redirection to the Store
When customers finish Tabby session, they are redirected back to your site via one of the three merchant_urls
from the Tabby Payment Page, with the payment_id after the separator, e.g. https://your-store/success?payment_id=string:
Allowed characters in redirect URLs (“success”, “cancel”, “failure”)
- Latin letters (a-z, A-Z)
- Arabic letters (ء-ي)
- Digits (0-9)
- Special characters - \ | / : ;., + {}? & @ = # %
-
Success URL
redirection usually leads to the store “Success order” page with the order details. Payment status is“AUTHORIZED”
. You need to perform the steps described in Payment Processing. -
Cancel URL
redirection may lead back to the checkout or cart page and show the message below as customers cancel Tabby session willingly. The payment status for such abandoned sessions is“EXPIRED”
. -
Failure URL
Redirection also often leads to the checkout or cart page, but requires the additional banner/note with the General Rejection Message shown below. Payment status after this is“REJECTED”
.Reason English message Arabic message Cancellation
You aborted the payment. Please retry or choose another payment method. لقد ألغيت الدفعة. فضلاً حاول مجددًا أو اختر طريقة دفع أخرى. Failure
Sorry, Tabby is unable to approve this purchase. Please use an alternative payment method for your order نأسف، تابي غير قادرة على الموافقة على هذه العملية. الرجاء استخدام طريقة دفع أخرى.
Please, redirect your customers to “Thank you” page immediately as soon as you receive one of the redirection callback. Backend payment status verification should be performed separately from the customer’s frontend journey.
Was this page helpful?