MB WAY
MB WAY is the leading e-wallet in Portugal, with over 5 million users. The user base continues to grow steadily each quarter, and now 50% of Portuguese bank customers are using MB WAY. Learn more.
Payment method properties
Markets | PT |
Processing currencies | EUR |
Consumer currencies | EUR |
Settlement currencies | EUR |
Authentication methods | REDIRECT |
Authentication timeout | 1 hour |
Minimum payment amount | 0.01 EUR |
Maximum payment amount | 5,000.00 EUR |
Payment instrument | PASSTHROUGH_WALLET |
Recurring payments | No |
Separate captures | No |
Refund | Full - Partial - Multiple |
Refund validity | 120 days |
Disputes | Yes |
Sandbox availability | MB Way sandbox |
Make an MB WAY payment
MB WAY payments follow our standardized REDIRECT
payment flow. However, we recommend including all relevant settings for any authentication methods you support.
To create an MB WAY payment, you'll need to provide the following data at minimum when calling our /v1/payment-charges API:
Data Field | Description |
---|---|
paymentMethod | MBWAY |
amount.value | The amount to be paid in the smallest units of the currency used. |
amount.currency | EUR |
consumer.name | Full name of the consumer. |
consumer.country | The country where the consumer is shopping |
authenticationSettings: REDIRECT settings.returnUrl | Specify the URL to which the consumer should be redirected after completing the payment. |
Request
POST /v1/payment-charges
{
"paymentMethod": "MBWAY",
"amount": {
"value": 1000,
"currency": "EUR"
},
"consumer": {
"name": "John Smith",
"country": "PT"
},
"authenticationSettings": [
{
"type": "REDIRECT",
"settings": {
"returnUrl": "https://www.webshop.com/order-results-page"
}
}
]
}
Response
You'll receive our standard payment charge response (see potential responses in the API Reference)
{
"id": "charge_X0O78tadFHrZCbGhkycPk",
"status": "AUTHENTICATION_PENDING",
// ...
"authenticationMethods": [
{
"type": "REDIRECT",
"details": {
"requestUrl": "https://redirection-target.ppro.com",
"requestMethod": "GET"
}
}
]
}
Pick the desired authentication method
REDIRECT
- Redirect your consumer to the returned
$.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl
.
For example, with the value ofhttps://redirection-target.ppro.com/
using the returned$.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod
HTTP method. - The consumer will finalize the payment process on the redirected page.
Handling the payment result
REDIRECT
- Once the consumer has confirmed the payment, they are redirected to the
returnUrl
provided in the initial payment charge creation request. - After the consumer is redirected back to your site, check the payment status by making a GET /v1/payment-charges/{paymentChargeId}. Use the
Status
that you received to display the payment outcome to the consumer. - Webhooks are also sent to inform you of the payment outcome. If the shopper closes the browser and doesn't return to your website, you can rely on webhooks to receive the payment result.
Payment instrument
A PASSTHROUGH_WALLET
instrument will be created for MB WAY, with no additional data provided.
Request
GET /v1/payment-instruments/{instrument-id}
Response
{
"id": "instr_5ChenWBwW8xARvJ3GccAx",
"type": "PASSTHROUGH_WALLET"
}
Updated 10 days ago