techrar docs
Home
Solutions
Solutions
  • eCommerce SaaS
  • Meals SaaS
  • Meals Marketplaces
API
API
  • Merchant APIs
  • Customer App APIs
  • Meals APIs
Techrar Connect
Home
Solutions
Solutions
  • eCommerce SaaS
  • Meals SaaS
  • Meals Marketplaces
API
API
  • Merchant APIs
  • Customer App APIs
  • Meals APIs
Techrar Connect
  1. Checkout & Orders Management
  • GETTING STARTED
    • Techrar's Overview
    • Welcome 👋🏻
    • Versioning
    • Rate Limiting
    • Pagination
    • Responses
    • Change Log
    • Authentication
    • Webhooks
    • Setup Online Payments
    • Do you need help?
  • SaaS Solutions
    • Reucrring Billing
    • Techrar Storefront
    • Techrar eCommerce
    • Techrar Pay
    • Techrar Logistics
    • Techrar Meals SaaS
    • Techrar Marketplaces (MaaS)
  • Modules
    • Items & Catalog Management
      • Items
      • Categories
      • Bundled Items
      • Variations & Modifiers
      • Item Discounts
      • Catalog Configuration
    • Plans Offerings
      • Plans
      • Plan Duration & Billing
      • Plan Trial & Grace Periods
      • Plan Discounts
    • Checkout & Orders Management
      • Checkout Flow
      • Carts
      • Orders
      • Invoices
      • Transactions
      • Checkout Settings
    • Subscriptions Management
      • Subscriptions & Billing Cycles
      • Recurring Purchases
    • Webhooks Events
      • Order
      • Subscription
      • Invoice
      • Customer
      • Miscellaneous
      • Recurring Purchase
    • Meals Webhooks Events
      • Order
      • Subscription
      • Complaint
  1. Checkout & Orders Management

Checkout Flow

The checkout process converts customer cart items into orders and processes payments through techrar's secure payment infrastructure.

Checkout Flow#

Key Benefits#

1.
Flexible Integration - Soft mode for price calculation, hard mode for order creation
2.
Secure Payments - Multiple payment providers with unified checkout experience
3.
Complete Automation - Automatic order creation, invoicing, and webhook notifications

Checkout Modes#

Soft checkout: Used for price calculation and validation, voucher application, and wallet redeem. It returns pricing details and available payment methods without creating an order.
Hard checkout: Used for actual order placing and completion. It creates a pending order, a payment link and optionally generates an invoice. Invoices can be generated if create_invoice was set to true.
{
    "action": "soft" | "hard",
    "create_invoice": true | false,
    ...
}

Payment URL Parameters & Callbacks#

1.
After a hard checkout, you receive a payment URL:
{
    ...
    "checkout_url": "http://api.techrar.com/order/v1/orders/checkout/728/?entity=invoice"
}
2.
Customize the checkout experience with passing these URL parameters:
lang=en: Checkout page language
success_url: Redirect after successful payment
error_url: Redirect after failed payment
http://api.techrar.com/order/v1/orders/checkout/728/?entity=invoice&lang=ar&success_url=https://example.com/success&error_url=https://example.com/success

Checkout Examples#

Quick Checkout
Quick Checkout+
eCommerce Checkout
Recurring Purchase
Bundles
This method requires you to create offerings using Items & Catalog Management.
{
  "source": "api",
  "action": "hard",
  "is_redeeming": false,
  "vouchers": [],
  "items": [
    {
      "item_id": 123,
      "qty": 1
    }
  ],
  "notes": "",
  "customer_username": "966501234567",
  "create_invoice": true # Payment link will never expire
}
Detailed Checkout Endpoint
Go to Checkout for more details

Techrar Pay#

The checkout redirects customers to techrar's secure payment page supporting:
Credit/Debit Cards - Visa, Mastercard, Mada
Digital Wallets - Apple Pay, Google Pay, STC Pay
Buy Now Pay Later - Tabby, Tamara installments
Bank Transfer - Direct bank account transfers
Available Methods
Some payment methods such as Tabby, Tamara, and Bank Transfers must be activated via the portal -> Settings -> Integrations.
CleanShot 2025-09-15 at 14.43.46.png
CleanShot 2025-09-15 at 14.19.19.png

Webhook Notifications#

After payment completion, techrar sends webhooks to notify your system:
Webhook Events. Go to Webhooks.

Checkout Custom Fields#

You may use our checkout custom fields
{
    ...
    "custom_fields": {
        "account_id": 1,
        "ref_order_id": 123
    }
}
Custom fields are automatically attached to the Order, Invoice, and Transaction for complete traceability.

Checkout Config#

For detailed customization options, see Checkout Settings
Modified at 2026-05-03 08:01:34
Previous
Checkout & Orders Management
Next
Carts
Built with