How a Benefit payment works
Benefit is a bank redirect payment method:- The customer selects Benefit at checkout.
- Payrails creates the payment at Checkout.com and returns a redirect URL, and the customer goes to the Benefit page.
- The customer confirms the payment on the Benefit page. Benefit handles any one-time password on that page.
- The customer returns to your
returnInfoURL. - Payrails receives the final result from Checkout.com and updates the payment.
Supported currencies and countries
Benefit supports BHD (Bahraini dinar) as its presentment currency.Supported workflows
Before you begin
Complete these steps before you send your first Benefit 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 Benefit on your Checkout.com account.
- In the Payrails Portal, go to Settings → Integrations, open your Checkout.com integration, select Benefit under Payment methods, and save.
- Add Benefit as a payment option in your workflow.
Request fields for Checkout.com
Benefit needs no method-specific fields. Send the standard authorize fields, including thereturnInfo URLs for the redirect. Payrails also sends these fields to Checkout.com when they’re present:
Authorize a Benefit payment
Call authorize a payment withbenefit as the paymentMethodCode. The response includes the redirect to the Benefit 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 Benefit
- Payrails creates the Benefit payment through the Checkout.com Payment Setup API. Checkout.com needs no payment token for Benefit.
- Benefit rejects references that contain spaces, dashes, or underscores. Payrails strips every character that isn’t a letter or a digit from the reference before it calls Checkout.com, so
order-1234_Abecomesorder1234A. - If Checkout.com doesn’t return a redirect for a pending Benefit payment, Payrails fails the payment, because the customer can’t complete it.
- Payrails doesn’t save the Benefit payment method at Checkout.com, so Save Instruments and MIT aren’t available.