This page explains how to add Swish to your existing Web Drop-in integration.
Requirements
Select which endpoint you are using:
Import resources for v6
If you are using Web Drop-in v6, import the resources you need for Swish:
import { AdyenCheckout, Swish} from '@adyen/adyen-web'
API reference
You do not need to send additional fields for Swish. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:
- /sessions: This is the default with Drop-in v5.0.0 or later.
- /payments: If you implemented an additional use case.
Drop-in configuration
There are no configuration steps specific to Swish required for Drop-in.
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.