Documentation
  1. Integrations
Documentation
  • Introduction
  • Webhook
  • Integrations
    • REST Integration
    • Nodejs
    • Wordpress
  • Create Checkout Session
    POST
  • Schemas
    • webhooks
      • Webhook | Order Created
      • Webhook | Order Abandoned
      • Webhook | Order Refunded
      • Webhook | Order Failed
    • Cart Session Request
    • Cart Session Response
  1. Integrations

REST Integration

STRABL Checkout Integration#

REST API Documentation#

This document provides the official integration guide for STRABL Hosted Checkout using REST APIs.
It covers the complete checkout lifecycle, environment configuration, API usage, redirection flow, and webhook handling.
This documentation is divided into two sections:
Merchant Guide – Business-level understanding and flow
Developer Guide – Technical implementation details

Part 1: Merchant Guide#

1. Introduction#

STRABL Hosted Checkout allows merchants to accept payments securely without handling sensitive payment information.
STRABL provides:
A hosted checkout page
Secure payment processing
OTP-based authentication
PCI-compliant infrastructure
Webhook-based payment notifications
Merchants are responsible for:
Creating checkout sessions
Redirecting customers to STRABL Checkout
Handling post-payment order fulfillment

2. Checkout Lifecycle (Merchant Perspective)#

1.
Customer initiates payment on merchant website or application
2.
Merchant backend creates a checkout session with STRABL
3.
Customer is redirected to STRABL Hosted Checkout
4.
Customer completes payment
5.
STRABL redirects customer back to merchant
6.
STRABL sends webhook events to confirm payment status
💡
Important:
Customer redirection does not confirm payment success.
Webhooks are the authoritative source of payment status.

3. Supported Environments#

3.1 Sandbox Environment#

The sandbox environment is used for development and testing.
ConfigurationValue
API Base URLhttps://sandbox.api.strabl.com
Checkout URLhttps://sandbox.checkout.strabl.io
OTP123456

3.2 Production Environment#

The production environment is used for live transactions.
ConfigurationValue
API Base URLhttps://api.strabl.com
Checkout URLhttps://checkout.strabl.io

4. Customer Redirection Flow#

Once a checkout session is created:
Customers are redirected to STRABL Checkout
Payment details are entered securely on STRABL
Customers are redirected back to the merchant website after completion
Merchants must validate payment outcomes using webhook notifications.

5. Post-Payment Notifications#

STRABL sends webhook notifications for all order and payment events, including:
Payment success
Payment failure
Checkout cancellation
Abandoned checkout
Refunds
Merchants must implement webhook endpoints to process these events reliably.

Part 2: Developer Guide#

6. Technical Flow Overview#

1.
Create a checkout session (cart)
2.
Receive a unique cartId
3.
Redirect customer to STRABL Checkout
4.
Receive webhook notifications
5.
Update internal order status

7. Create Checkout Session API#

This API is used to create a checkout session (cart) in STRABL.
A successful request returns a unique cartId which is required to redirect the customer to STRABL Checkout.

7.1 Endpoint#

POST /v2/public/api/cart/

7.2 Base URLs#

Sandbox
https://sandbox.api.strabl.com
Production
https://api.strabl.com

8. Request Object Definitions#

8.1 Store Object#

FieldTypeDescription
nameStringDisplay name of the store
urlStringStore website URL
logoStringPublicly accessible logo URL
platformUuidStringSTRABL-assigned platform UUID

8.2 Cart Object#

FieldTypeDescription
currencyStringISO currency code (e.g. USD, AED)
countryStringISO country code
itemsArrayList of cart items
merchantUrls.successUrlStringRedirect URL after successful payment
merchantUrls.failureUrlStringRedirect URL after failed or cancelled payment

8.3 Item Object#

FieldTypeDescription
titleStringItem title
descriptionStringItem description
priceNumberUnit price
skuStringMerchant SKU
quantityNumberQuantity of the item

9. Create Cart API Response#

Please checkout, how to create a checkout session for complete api

10. Redirect to STRABL Checkout#

After receiving the cartId, redirect the customer to STRABL Hosted Checkout.

10.1 Sandbox Redirect URL#

https://sandbox.checkout.strabl.io/?token={cartId}

10.2 Production Redirect URL#

https://checkout.strabl.io/?token={cartId}

10.3 Redirect Notes#

Redirection can be performed from frontend or backend
Each cartId is valid for a single checkout attempt and only valid for 45 minutes.

11. Payment Processing#

Payment is processed entirely on STRABL infrastructure
Customers enter payment details on STRABL Checkout
OTP authentication is mandatory
Sandbox OTP for testing: 123456
STRABL ensures PCI DSS compliance

12. Post-Payment Redirection#

After checkout completion:
ScenarioRedirect URL
Payment SuccessmerchantUrls.successUrl
Payment Failure / CancelmerchantUrls.failureUrl
Important:
Redirect URLs should not be used to confirm payment status.
Webhooks must be used as the final confirmation mechanism.

13. Webhook Integration#

STRABL sends webhook notifications to inform merchants of order and payment status changes.

13.1 Common Webhook Events#

EventDescription
order_createdOrder created
order_updatedPayment or order status updated
order_cancelledOrder cancelled
order_refundedPayment refunded
order_abandonedCheckout not completed

13.2 Webhook Security#

All webhook requests include the X-Client-Signature header
Merchants must validate the signature using the shared secret
Webhook endpoints must return HTTP 200 OK

13.3 Webhook Best Practices#

Process webhooks idempotently
Log webhook payloads for audit and reconciliation
Do not perform long-running operations synchronously upon receiving the webhook
Always acknowledge webhooks quickly

14. Best Practices & Recommendations#

Do not rely on frontend redirects for payment confirmation
Use HTTPS for all merchant endpoints
Handle duplicate and retry webhook events safely
Maintain proper order-to-cart mapping

15. Sandbox to Production Checklist#

Before going live:
Switch API base URL to production
Switch checkout redirect URL to production
Configure production webhook secrets
Perform end-to-end testing
Monitor initial live transactions

16. Environment Quick Reference#

CategorySandboxProduction
API Base URLhttps://sandbox.api.strabl.comhttps://api.strabl.com
Checkout URLhttps://sandbox.checkout.strabl.iohttps://checkout.strabl.io
OTP123456Live OTP

17. Support#

For integration support, contact STRABL with the following details:
Environment (Sandbox or Production)
Cart ID
Timestamp of the request
Relevant webhook payloads
Modified at 2025-12-25 09:36:35
Previous
Webhook
Next
Nodejs
Built with