Payment-method icon

Multibanco iOS Component

Add Multibanco to your Components integration.

You can add Multibanco to your existing integration. The following instructions show only what you must add to your integration specifically for Multibanco.

If an instruction on this page corresponds with a step in the main integration guide, it includes a link to corresponding step of the main integration guide.

The additions you must make depends on the server-side flow that your integration uses:

Sessions flow
Advanced flow

Start integrating with Sessions flow Component

Choose your version
5.14.0

Requirements

Requirement Description
Integration type Make sure that you have an existing Sessions flow iOS Components integration.
Checkout API Make sure that you use Checkout API v68 or later.
Setup steps Before you begin, add Multibanco in your Customer Area.

Add additional parameters to your /sessions request

You do not need to add any parameters when you create a payment session.

Add additional configuration for Multibanco

You do not need to add any configuration parameters for Multibanco.

Initialize the Component for Multibanco

To initialize Multibanco, use the InstantPaymentComponent class.

Initialize the InstantPaymentComponent
Expand view
Copy link to code block
Copy code
Copy code
let paymentMethods = session.sessionContext.paymentMethods
// Check that the payment method is supported before showing the Component.
guard let paymentMethod = paymentMethods.paymentMethod(ofType: .other("multibanco")) else { return }
let component = InstantPaymentComponent(paymentMethod: paymentMethod,
context: context,
order: nil)
self.currentComponent = component
// Set the session as the delegate.
component.delegate = session
component.initiatePayment()

Test and go live

Before you can test Multibanco payments, you need to submit a request for Multibanco in your test Customer Area.

In the test environment, you can simulate a Multibanco payment by promoting the pending payment to a sale.

  1. Log in to your test Customer Area.
  2. Go to Transactions > Offers.
  3. Select the PSP reference of the pending Multibanco payment.
  4. Select Promote offer to sale button.

Multibanco payments that have been paid (including test offers that you manually promoted to sale) are under Transactions > Payments.

Test the reconciliation process by promoting test payments from offer to sale in your test Customer Area.

Before you can accept live Multibanco payments, you need to submit a request for Multibanco in your live Customer Area.