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 MethodTechnical CodeRequired countryCodePayer Phone FormatReal-Time Settlement?Refund Window Length
MBWaymbwayPT (Portugal)Mandatory (+351...)Yes (Instant Mobile Push)Up to 12 months
  1. Your platform calls /apm/init with PaymentMethod set to mbway.
  2. Lemonway creates the transaction in Pending status and returns a redirectUrl.
  3. Your platform redirects the payer to the redirectUrl.
  4. The payer receives a payment request in the MB WAY app and confirms it.
  5. Once the payment result is known, Lemonway updates the transaction and redirects the payer to your returnUrl, cancelUrl, or errorUrl.

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}"
}



Did this page help you?