Payments with MBWay
Lemonway offers its partners the ability to accept payments through MB WAY, one of the most popular mobile payment solutions in Portugal. MB WAY allows customers to make payments directly from their smartphones using the mobile number associated with their bank account. Through Lemonway's integration, partners can easily offer MB WAY as an additional payment option on their platforms. At checkout, customers select MB WAY and provide their mobile phone number. A payment request is then sent to their MB WAY app, where they can securely review and authorise the transaction. Once the customer approves the payment, Lemonway processes the transaction and updates its status. Partners receive the payment notification and can manage the result through the integration. MB WAY provides a convenient mobile-first payment experience, helping partners cater to the preferences of Portuguese customers.
MBWay Payment Flow 🇵🇹
Portugal's leading mobile wallet uses an instant push-notification token model. The payer stays on your redirect page while verifying the transaction on their smartphone screen.
| Payment Method | Technical Code | Required countryCode | Payer Phone Format | Real-Time Settlement? | Refund Window Length |
|---|---|---|---|---|---|
| MBWay | mbway | PT (Portugal) | Mandatory (+351...) | Yes (Instant Mobile Push) | Up to 12 months |
- Your platform calls
/apm/initwithPaymentMethodset tombway. - Lemonway creates the transaction in
Pendingstatus and returns aredirectUrl. - Your platform redirects the payer to the
redirectUrl. - The payer receives a payment request in the MB WAY app and confirms it.
- Once the payment result is known, Lemonway updates the transaction and redirects the payer to your
returnUrl,cancelUrl, orerrorUrl.
The standard flow for MBWay
sequenceDiagram
actor Payer
participant Partner as Partner Platform
participant Lemonway
participant MBW as MB WAY Mobile App
Payer->>Partner: Choose MB WAY & provide Mobile Number
Partner->>Lemonway: POST /v2/moneyins/apm/init ("mbway")
Lemonway-->>Partner: Return {"id": 378956, "redirectUrl": "..."}
Partner-->>Payer: Redirect browser to redirectUrl
Lemonway->>MBW: Trigger real-time out-of-band push request to device
Payer->>MBW: Open app & input security authorization PIN
MBW-->>Lemonway: Secure real-time capture approval/decline payload
par Async Backend Handshake
Lemonway->>Partner: POST Webhook Notification (Final status payload)
and Client Browser Drop
Lemonway-->>Payer: Redirect browser seamlessly to Partner's returnUrl / errorUrl
end
Example: MBWay (countryCode must be PT)
{
"transaction": {
"reference": "ORDER-1008",
"accountId": "2h6f3dfb-4a1e-41c1-9d3c-2f9b531c3f2b",
"totalAmount": 12300,
"PaymentMethod": "multibanco",
"commissionAmount": 1200,
"comment": "Online purchase",
"autoCommission": false
},
"paymentUrls": {
"redirections": {
"returnUrl": "https://example.com/success",
"errorUrl": "https://example.com/error",
"cancelUrl": "https://example.com/cancel"
}
},
"customer": {
"firstName": "mikel",
"lastName": "baston",
"email": "[email protected]",
"countryCode": "PT"
},
"preferredLanguage": "pt",
"timeoutInMinutes": 15
}{
"id": 362521,
"redirectUrl": "https://webkit.lemonway.com/.../apm/form/{token}"
}Updated 13 minutes ago

