Testing Guidelines
Testing Credentials
- Full testing is required for all Custom API and SFCC Integrations, and is optional for Magento and OpenCart Integrations.
- Other integrations do not require testing and can be launched with the Live Keys.
Ensure that you’ve added snippets on the Product and Cart pages.
1. Payment Success
Testing Steps:
- Add an item to your shopping cart and proceed to checkout.
- Fill in all the required fields at checkout, and use the following email and phone numbers:
- Choose Tabby as the payment method and click “Place order.”
- Complete the payment using
OTP:8888
on Tabby HPP and redirect to the store’s success page. - Verify that the capture of the successful payment occurred - check for status
CAPTURED
on the Merchant Dashboard or Payment statusAUTHORIZED
andCLOSED
via Retrieve Payment API.
Expected Results:
- Store checkout opens.
- Tabby payment method is available on the checkout page (background pre-scoring passed successfully).
- Tabby Hosted Payment Page opens.
- The success Tabby screen appears and redirects to the
Success URL
; the store’s ‘Thank you’ page appears. - Order is captured:
- Payment Status is
CLOSED
; - captured amount is present in the
“captures”:[]
array of objects.
- Payment Status is
2. Background Pre-scoring Reject
Testing Steps:
- Add an item to your shopping cart and proceed to checkout.
- Fill in all the required fields at checkout, and use the following email and phone numbers:
- Attempt to choose Tabby as the payment method.
Expected Results:
- Store checkout opens.
- Tabby payment method is hidden or marked as unavailable with the message:
- English: Sorry, Tabby is unable to approve this purchase, please use an alternative payment method for your order.
- Arabic: نأسف، تابي غير قادرة على الموافقة على هذه العملية. الرجاء استخدام طريقة دفع أخرى.
- Tabby is hidden from the payment methods list or marked as unavailable.
3. Payment Cancellation
Testing Steps:
- Add an item to your shopping cart and proceed to checkout.
- Fill in all the required fields at checkout, and use the following email and phone numbers:
- Choose Tabby as the payment method and click “Place order.”
- Click on the ‘Back to Store’ button (Desktop) or the left corner cross button (Mobile), and confirm cancellation.
Expected Results:
- Store checkout opens.
- Tabby payment method is available on the checkout page (background pre-scoring passed successfully).
- Tabby Hosted Payment Page opens.
- Redirect to the
Cancel URL
- store checkout or cart page. Verify that the cart is not emptied, and a text message with a cancellation reason is shown:- English: You aborted the payment. Please retry or choose another payment method.
- Arabic: لقد ألغيت الدفعة. فضلاً حاول مجددًا أو اختر طريقة دفع أخرى.
4. Payment Failure
Testing Steps:
- Add an item to your shopping cart and proceed to checkout.
- Fill in all the required fields at checkout, and use the following email and phone numbers:
- Choose Tabby as the payment method and click “Place order.”
- Finish the payment using
OTP:8888
in Tabby HPP. - Confirm returning to the store by clicking the ‘Back to store’ button.
- Verify the payment status via Retrieve Payment API.
Expected Results:
- Store checkout opens.
- Tabby payment method is available on the checkout page (background pre-scoring passed successfully).
- Tabby Hosted Payment Page opens.
- The rejection screen with the message ‘We can’t approve this purchase’ appears.
- Redirect to the
Failure URL
- store checkout or cart page. Verify that the cart is not emptied, and a text message with a failure reason is shown:- English: Sorry, Tabby is unable to approve this purchase, please use an alternative payment method for your order.
- Arabic: نأسف، تابي غير قادرة على الموافقة على هذه العملية. الرجاء استخدام طريقة دفع أخرى.
- Tabby payment method is still available for selection among payment methods on Checkout.
- No order appears in the Merchant Dashboard (unsuccessful orders are not displayed in the Dashboard), Payment Status
REJECTED
.
5. Corner Case
Testing Steps:
- Add an item to your shopping cart and proceed to checkout.
- Fill in all the required fields at checkout, and use the following email and phone numbers:
- Choose Tabby as the payment method and click “Place order.”
- Finish the payment using
OTP:8888
in Tabby HPP. - Once you see the Success Tabby screen (with the tick), close the browser tab before the redirection.
- Verify that the capture of the successful payment occurred - check order status
CAPTURED
on the Merchant Dashboard or Payment status via Retrieve Payment API isCLOSED
. Ensure the order is marked successful on your side.
Expected Results:
- Store checkout opens.
- Tabby payment method is available on the checkout page (background pre-scoring passed successfully).
- Tabby Hosted Payment Page opens.
- There is no redirection to the Success page as the browser tab is closed before redirection.
- Payment Status changes to
AUTHORIZED
, then after capture is triggered, it changes toCLOSED
with a captured amount in the“captures”:[]
array of objects, triggered by the Webhook notifications or Cron Job.
Retrieve payment status returned statusAUTHORIZED
before capture andCLOSED
after capture.
If you encounter any non-captured payments (with AUTHORIZED
status on Payments API or NEW
status on Merchant Dashboard), you can initiate a Manual Capture or Cancel on the Merchant Dashboard, or Capture or Close Payment API Request.
6. Payment Refund via API
If you are not using the Tabby dashboard.
Testing Steps:
- Choose an order on your OMS and perform a refund.
- Check the order on the Tabby Merchant Dashboard and Payment status via Retrieve request.
Expected Results:
- The refund is reflected on the OMS without any API errors.
- The order has Refunded/Partially Refunded status in the Tabby Merchant Dashboard, and the Payment status is
CLOSED
with the refunded amount in therefunds”:[]
array of objects.
7. National ID Upload Scenario (Mobile Apps)
Testing Steps:
- Reproduce the Positive flow with the same phone number and email
.id.success@tabby.ai
- After entering the OTP, the ID upload form appears.
- Try to:
- upload a photo from the gallery;
- open the Camera to take a photo;
- upload ID photo from Files.
Expected Results:
- The test email
is used for background pre-scoring and session creation.id.success@tabby.ai
- ID upload form appears with no errors.
- No Webview and App issues appear, and the Tabby downpayment screen appears.
8. Tabby Checkout Focus Change (Mobile Apps)
Precondition: Tabby Checkout is opened using positive flow credentials at the OTP step.
Testing Steps:
- At the OTP step on Tabby Checkout opened in the Webview/In-App browser, minimize the app by navigating to the home screen.
- Wait a few seconds and then return to the app.
Expected Results:
- The app correctly recovers the Tabby checkout screen at the same step. No crashes or hangs of the app after the return.
- No App or Webview issues appear.