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:

2

Create Checkout Session and redirect a customer to the Tabby Payment Page

3

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.

EnglishArabic
Payment Method NamePay in 4. No interest, no fees.قسّمها على 4. بدون أي فوائد، أو رسوم.
Checkout Text DescriptionUse 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:

"status": "created"

If a customer is not eligible, you will receive the following parameters and should hide/mark unavailable Tabby payment method:

"status": "rejected",
"configuration"."products"."installments"."rejection_reason": "not_available"

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:

ReasonEnglishArabic
General Rejection (not_available)Sorry, Tabby is unable to approve this purchase. Please use an alternative payment method for your order.نأسف، تابي غير قادرة على الموافقة على هذه العملية. الرجاء استخدام طريقة دفع أخرى.
order_amount_too_highThis purchase is above your current spending limit with Tabby, try a smaller cart or use another payment methodقيمة الطلب تفوق الحد الأقصى المسموح به حاليًا مع تابي. يُرجى تخفيض قيمة السلة أو استخدام وسيلة دفع أخرى.
order_amount_too_lowThe 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.

"status": "created"
"configuration"."available_products"."installments"."web_url": "string"
"payment"."id": "string"

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:

"merchant_urls": {
  "success": "https://your-store/success",
  "cancel": "https://your-store/cancel",
  "failure": "https://your-store/failure"
}

Allowed characters in redirect URLs (“success”, “cancel”, “failure”)

  1. Latin letters (a-z, A-Z)
  2. Arabic letters (ء-ي)
  3. Digits (0-9)
  4. 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”.

    ReasonEnglish messageArabic message
    CancellationYou aborted the payment. Please retry or choose another payment method.لقد ألغيت الدفعة. فضلاً حاول مجددًا أو اختر طريقة دفع أخرى.
    FailureSorry, 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.