Skip to content

MB WAY

Experience seamless transactions with MB WAY — Portugal’s most popular payment method, trusted by millions for online checkouts.

As the nation’s leading e-wallet, MB WAY serves over 5 million users — a number that continues to grow steadily every quarter.

Payment methodCategoryCountriesCurrenciesFeaturesIntegrations
MB WAYDigital WalletPortugalEURAuthorization
Capture
One-time purchase
Partial refund
Refunds
API
Payment Form
Info

Activating MB WAY is simple and accessible to anyone with a mobile phone number and a current account at a participating Portuguese bank.

 

With over 95% of banks in Portugal supporting MB WAY, it has become a widely adopted and trusted payment method across the country.

How to use MB WAY

Follow these simple steps to complete your payment:

  • Select MB WAY as your payment method at checkout.

  • Enter the mobile phone number linked to your MB WAY app.

  • You will receive a payment request on your mobile device. Select your payment card, review the payment details and amount, then enter your PIN to authorize the payment.

  • In the end, you will receive a confirmation of payment on your mobile device. Confirmation may also be visible on the merchant’s website.

How it works

Here is an overview of the key steps to integrate MB WAY:

Step 1: Create the Order
Step 2: MB WAY Payment
Step 3: Get the Payment Status
Step 1: Create the Order

Make sure you create the order request with MB WAY (“MBWY”) as the chosen payment method (transaction.paymentMethod).

Step 2: MB WAY Payment

Follow the instructions below to obtain the payment link, redirecting the customer to a secure payment page for authentication and payment authorization.

Please ensure the request includes an Authorization Header with the transactionSignature obtained in Step 1.

Endpoints:
EnvironmentURLOperation Method & EndpointOperation Description
PRODapi.sibsgateway.comPOST
{version-id}/payments/{id}/mbway/purchase
Perform the transaction
TESTstargate-cer.qly.site[1|2].sibs.ptPOST
{version-id}/payments/{{id}/mbway/purchase
Perform the transaction

Ensure you include these essential elements as specified:

LocationData ElementTypeConditionDescription
PathidStringMandatoryUsed to identify the transaction
Header parameters:
LocationData ElementTypeConditionDescription
Request HeaderContent-TypeStringMandatoryapplication/json
Request HeaderAuthorizationStringMandatoryAuthorization Digest
Request parameters:
LocationData ElementTypeConditionDescription
Request BodycustomerPhonestringMandatoryCustomer’s phone number.
Request BodyinfoInfoMandatoryObject that defines the transaction additional information.
Request Body.infodeviceInfoDeviceInfoOptionalObject that defines the customer device information.
Request Body.info.deviceInfobrowserAcceptHeaderstringOptionalBrowser Accept Header
Request Body.info.deviceInfobrowserJavaEnabledstringOptionalBrowser Java Enabled
Request Body.info.deviceInfobrowserLanguagestringOptionalbrowser Language
Request Body.info.deviceInfobrowserColorDepthstringOptionalbrowser Color Depth
Request Body.info.deviceInfobrowserScreenHeightstringOptionalbrowser Screen Height
Request Body.info.deviceInfobrowserScreenWidthstringOptionalbrowser Screen Width
Request Body.info.deviceInfobrowserTZstringOptionalBrowser Time Zone
Request Body.info.deviceInfobrowserUserAgentstringOptionalBrowser User Agent
Request Body.info.deviceInfosystemFamilystringOptionalSystem Family
Request Body.info.deviceInfosystemVersionstringOptionalSystem Version
Request Body.info.deviceInfosystemArchitecturestringOptionalSystem Architecture
Request Body.info.deviceInfodeviceManufacturerstringOptionalDevice Manufacturer
Request Body.info.deviceInfodeviceModelstringOptionalDevice Model
Request Body.info.deviceInfodeviceIDdeviceIDOptionalDevice Unique Identification
Request Body.info.deviceInfoapplicationNamestringOptionalApplication Name
Request Body.info.deviceInfoapplicationVersionstringOptionalApplication Version
Request Body.info.deviceInfogeoLocalizationstringOptionalGeolocation
Request Body.info.deviceInfoipAddressstringOptionalIP Address
Request BodycustomerInfoCustomerInfoOptionalKey Value tuple array.
Request Body.customerInfokeystringMandatoryUsed to supply “customerName”, “customerEmail”.
Request Body.customerInfovaluestringMandatoryUsed to supply “customerName”, “customerEmail”.
Request BodyactionProcessedActionProcessedOptional
Request Body.ActionProcessedidstringOptionalMerchant Shop URL for redirect.
Request Body.ActionProcessedtypeStringOptionalPossible values are (“TREEDS_METHOD”, “THREEDS_CHALLENGE”, “DCC”).
Request Body.ActionProcessedexecutedbooleanOptional

Below an example of a request:

{
   "customerPhone": "+351912345678",
    "info": {
        "deviceInfo": {
            "browserAcceptHeader": "application/json, text/plain, */*",
            "browserJavaEnabled": "false",
            "browserLanguage": "en",
            "browserColorDepth": "24",
            "browserScreenHeight": "1080",
            "browserScreenWidth": "1920",
            "browserTZ": "-60",
            "browserUserAgent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
            "geoLocalization": "Lat: 38.7350528 | Long: -9.2143616",
            "systemFamily": "Windows",
            "systemVersion": "Windows",
            "deviceID": "498bfd4c3a3645b38667a7037b616c18",
            "applicationName": "Chrome",
            "applicationVersion": "106"
        },
        "customerInfo": [
            {
                "key": "customerName",
                "value": "Test Name"
            },
            {
                "key": "customerEmail",
                "value": email@provider.com
            }
        ],


        "actionProcessed": {
            "id": "ACTION123456789",
            "type": "TREEDS_METHOD",
	  "executed": true
        }
    }	
}

After successfully completing the operation, a ‘pending’ paymentStatus is received.
The user is then redirected to a payment confirmation environment before being returned to the merchant’s URL.

Step 3: Get the Payment Status

You can perform a “Get Status” operation to check the status at any time.
The Authorization HTTP header is set to the Bearer token as it was used in the initial Checkout.

GET {transactionID}/status
Request URL example:
https://stargate-cer.qly.site1.sibs.pt/api/v1/payments/{transactionID}/status
Request Headers:
Authorization: ‘Bearer <AuthToken>’
X-IBM-Client-Id: ‘<ClientId>’
Content-Type: application/json

A successful technical response comprises of an HTTP-200 status and a returnStatus.statusCode=”000″.

Here are some examples of the possible result codes:

Result CodestatusMsgDescriptionAction
HTTP-200SuccessSuccess responseN/A
HTTP-400Bad RequestThe JSON payload is not matching the API definition or some mandatory HTTP headers are missing.Please check in API Market for the correct syntax.
HTTP-401UnauthorizedOn the Authorization, Bearer token is invalid/expired or not associated with the Terminal used.Please check in SIBS Backoffice under the Credentials if the token is valid and create a new one if needed.
HTTP-403ForbiddenThe ClientID set on the X-IBM-Client-Id HTTP header is not valid or does not possess a valid subscription to the API.Please check in SIBS Backoffice under the SPG APP 2.0 if the ClientID is correct. If the problem persists contact SIBS Gateway support for a ClientID reset.
HTTP-405Method Not AllowedThe HTTP Method used is not matching any of the API definitions available.Please check in API Market for the correct HTTP Method.
HTTP-429Too Many RequestsThe API calls rate limit has been exceeded.Please check in API Market for information on the rate limits that apply to the API.
HTTP-500Internal Server ErrorThe API call has failed… and its most likely on our side.You should retry the operation, and if the problem persists contact SIBS Gateway support for assistance.
HTTP-503Service UnavailableThe API call is not currently available. Usually we are always on, but short availability issues may occur during scheduled maintenance.You should wait and try again later.