Handle payment confirmation for subscription orders.Overview#
After placing an order, it's created in pending status awaiting payment. You have two options for handling payments: use Techrar Pay or integrate your own payment solution.
Payment Options#
Use Techrar's Payment Solution#
The simplest option - redirect customers to Techrar's payment page.2.
Redirect customer to payment page with parameters:{payment_url}?lang=ar&success_url=https:
3.
Customer completes payment on Techrar's secure page
4.
Receive webhook notification when payment completes
5.
Redirect customer back to your app
lang: Payment page language (ar or en)
success_url: Where to redirect after successful payment
error_url: Where to redirect if payment fails
Webhook:
You'll receive webhook notification with order status update. See Webhooks for details.
Fetch Orders#
Order Reference#
Use the reference field to sync orders between your system and Techrar:{
"reference": "YOUR_ORDER_ID_123",
...
}
Track orders across both systems
Match webhooks to your internal orders
Modified at 2026-01-14 06:40:07