تكامل PayTabs
Saudi payment gateway (mada, cards). Create hosted payment pages, query transactions by tran_ref, and issue follow-up refunds — all POSTs against /payment/request and /payment/query with the server key in the authorization header. No list/pagination APIs in scope.
Payments
- Create Payment Page — Create a hosted payment page (tran_type sale; redirect the customer to the returned redirect_url)
- Query Transaction — Query a transaction's outcome by tran_ref (server-to-server verification)
- Refund — Follow-up refund per PayTabs docs: tran_type refund + tran_ref of the original sale. The in-repo billing integration exercises sale only — verify against your merchant profile before first production use