Are you looking for test card numbers?

Would you like to contact support?

No momento, esta página não está disponível em português
Payment-method icon

MB WAY Component

Add MB WAY to an existing Components integration.

On this page, you can find additional configuration for adding MB WAY to your Components integration.

Before you begin

This page assumes you have already:

API reference

You don't need to send additional fields for MB WAY. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:

Component configuration

If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the MB WAY Component:

//Create a payment method object for MB WAY.
let paymentMethod = paymentMethods.paymentMethod(ofType: mbwayComponentPaymentMethod.self)
//Create a configuration object for the MB WAY Component.
var mbwayComponentConfiguration = mbwayComponent.Configuration()
//Set additional parameters on the configuration object.
mbwayComponentConfiguration.localizationParameters = //Optional custom localization parameters.

There is no required MB WAY specific integration for Components.

Test and go live

To test your MB WAY integration, you can use any telephone number, for example +351234567890.

You can trigger a specific resultCode value by appending a code to the shopperStatement value in your /payments request:

resultCode Code to append to shopperStatement
Authorised
default test response
-c1
Pending -c3 and wait 15 minutes
after making the /payments request
Refused -c5

For example, to receive resultCode: Refused, include the following in your /payments request:

{
  // Produce a REFUSED payment result.
  "shopperStatement": "MBWay shopper statement-c5"
}

You can check the status of MB WAY test payments in your Customer Area > Transactions > Payments.

Before you can accept live MB WAY payments, you need to add MB WAY in your live Customer Area.

See also