MB WAY for Payment Setup API
Last updated: April 30, 2026
To accept MB WAY payments, you must:
- Create a payment setup.
- Confirm the payment.
- Redirect the customer to MB WAY.
Call the Create a payment setup endpoint.
Information
Your base URL's {prefix} value is unique to your account and environment. To learn how to retrieve your base URLs for the sandbox and production environments, see API endpoints.
post
https://{prefix}.api.checkout.com/payments/setups
1{2"amount": 1000,3"currency": "EUR",4"reference": "ORD-5023-4E89",5"customer": {6"phone": {7"country_code": "351",8"number": "912345678"9}10},11"settings": {12"success_url": "https://example.com/payments/success",13"failure_url": "https://example.com/payments/failure"14}15}
In the request body, provide the following:
| Field | Description |
|---|---|
number | The payment amount, in the minor currency unit. |
string | Three-letter ISO 4217 currency code. |
object | The customer's phone number. |
string | The country calling code for the customer's phone number. |
string | The customer's phone number. |
string | A unique reference for the payment. |
string | The URL to redirect the customer to if the payment fails. |
string | The URL to redirect the customer to if the payment is successful. |
string | The customer's full name. |
string | A description of the payment. |
1{2"id": "set_rcmepwrchqab2wsergcafvijfy",3"processing_channel_id": "pc_mbwayrv3wxetbjo2mybygeszy",4"amount": 1000,5"currency": "EUR",6"payment_type": "Regular",7"reference": "ORD-5023-4E89",8"description": "MB WAY payment",9"payment_methods": {10"mbway": {11"status": "ready",12"flags": []13}14},15"available_payment_methods": [16"mbway"17],18"settings": {19"success_url": "https://example.com/payments/success",20"failure_url": "https://example.com/payments/failure"21}22}
The response returns a payment_methods object, which contains the payment methods enabled on your account.
When all required fields are present, the payment_methods.mbway object shows a ready status.
Confirm the payment by calling the Confirm a payment setup endpoint and provide:
- The payment setup
idas the{id}path parameter. mbwayas the payment method name.
post
https://{prefix}.api.checkout.com/payments/setups/{id}/confirm/mbway
1{2"id": "pay_7ehiotldrlvujfpiyeo42i2roe",3"status": "Pending",4"reference": "ORD-5023-4E89",5"customer": {6"id": "cus_urx7wggzcpzufjjynbn7t6l5mq",7"phone": {8"country_code": "351",9"number": "912345678"10}11},12"_links": {13"self": {14"href": "https://{prefix}.api.checkout.com/payments/pay_7ehiotldrlvujfpiyeo42i2roe"15},16"redirect": {17"href": "https://example.com/mbway/redirect"18}19}20}
Redirect the customer to the _links.redirect.href URL from the response. The customer completes the payment in the MB WAY app and is then redirected back to your settings.success_url or settings.failure_url.