How a QPay payment works
QPay is a bank redirect payment method:- The customer selects QPay at checkout, and you send their Qatari national ID in the authorize request.
- Payrails creates the payment at Checkout.com and returns a redirect URL, and the customer goes to the QPay page.
- The customer confirms the payment on the QPay page.
- QPay sends the customer back to your
returnInfoURL. - Payrails receives the final result from Checkout.com and updates the payment.
Supported currencies and countries
QPay supports QAR (Qatari riyal) as its only presentment currency.Supported workflows
Before you begin
Complete these steps before you send your first QPay payment through Checkout.com:- Set up a Checkout.com integration in your workspace. Follow the Checkout.com integration setup guide if you don’t have one yet.
- Ask Checkout.com support to enable QPay on your Checkout.com account.
- In the Payrails Portal, go to Settings → Integrations, open your Checkout.com integration, select QPay under Payment methods, and save.
- Add QPay as a payment option in your workflow.
Request fields for Checkout.com
Send these fields in the authorize request, in addition to the standard authorize fields. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.Authorize a QPay payment
Call authorize a payment withqpay as the paymentMethodCode. The response includes the redirect to the QPay page.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Checkout.com handles QPay
- Payrails creates the QPay payment through the Checkout.com Payment Setup API, and sends the national ID and the order description with it.
- Payrails uses
meta.order.descriptionas the QPay description, not the merchant reference. - If Checkout.com doesn’t return a redirect for a pending QPay payment, Payrails fails the payment, because the customer can’t complete it.
- Payrails doesn’t save the QPay payment method at Checkout.com, so Save Instruments and MIT aren’t available.