Payment-method icon

Android Drop-in

Add Swish to your Drop-in integration.

How you add Swish depends on your integration.

Choose the server-side flow that your integration uses:

Sessions flow
Advanced flow

Start integrating with Sessions flow Drop-in

Choose your version
5.8.0

Requirements

Requirement Description
Integration type Make sure that you have an existing Sessions flow Drop-in integration.
Required version of Checkout API: v68 or later.
Setup steps Before you begin, add Swish 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 Swish

Add a configuration object with the following parameters:

Parameter Required Description
setSubmitButtonVisible Set if you want the submit button to be visible.
Add a configuration object
Expand view
Copy link to code block
Copy code
Copy code
{
.setSubmitButtonVisible(value)
}

Test and go live

When you make a Swish payment in the test environment, the payment is authorised within 15 seconds. You can simulate different refusal scenarios, as outlined in the Merchant Swish Simulator, by adding the error code to the shopperStatement property. For example, "shopperStatement": "FF08".

Check the status of Swish test payments in your Customer Area > Transactions > Payments.

To accept live Swish payments, you must submit a request for Swish in your live Customer Area.