Payment-method icon

Swish React Native Drop-in

Add Swish to your Drop-in integration.

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

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 Drop-in

Choose your version
2.4.1

Requirements

Requirement Description
Integration type Make sure that you have an existing Sessions flow React Native Drop-in integration.
Checkout API Make sure that you use 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

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

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.