Supported workflows
Before you begin
Complete these steps before you send your first MB WAY 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 MB WAY on your Checkout.com account.
- In the Payrails Portal, go to Settings → Integrations, open your Checkout.com integration, select MB WAY under Payment methods, and save.
- Optional: turn on Direct under MB WAY in the same integration to use the direct flow. Leave it off to use the payment setup flow.
- Add MB WAY as a payment option in your workflow.
Choose a flow
Payrails processes MB WAY through Checkout.com in one of two flows, set by the Direct option on your integration:- Payment setup flow (default): Payrails uses the Checkout.com Payment Setup API. If Checkout.com returns a redirect to a Checkout.com-hosted page, Payrails passes it on. Otherwise, the payment stays pending until the customer approves it in the app.
- Direct flow: Payrails uses the Checkout.com payments API. The customer stays on your checkout and approves in the app, and the response includes a wait action instead of a redirect. The Payrails SDK collects the phone number through payer fields when the amount is in EUR or isn’t known yet.
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. Send the phone number either as payer fields or inmeta.customer.phone. Payrails uses the payer fields when they carry a phone number.
Authorize an MB WAY payment
Call authorize a payment withmbWay as the paymentMethodCode.
Authorize request
How Checkout.com handles MB WAY
- Payrails checks the phone number before it calls Checkout.com, and sends it to Checkout.com on the customer.
- In the direct flow, the wait action gives the client a 15-minute window to poll for the result.
- Checkout.com sends the final result as a webhook notification after the customer approves or declines in the app.
- Payrails doesn’t save the MB WAY payment method at Checkout.com, so Save Instruments and MIT aren’t available.