Swish In-Store
Enable shoppers to follow a QR scan on their Swish app on mobile, authorise the payment, the payment aka QR is generated on In-Store terminal.
Customer Journey
- The consumer goes to the In-Store cash counter and selects Swish as their preferred payment method
- The consumer is displayed QR code on till machine.
- The consumer scans the QR code on Swish app, enters the desired details, authorise and complete the transaction.
- The merchant receives the payment confirmation
- The merchant hands over the order/goods to the consumer.
Specific input parameters for the TRANSACTION call
There are no specific input parameters required for merchant redirection through browser.
Transient input parameters for the TRANSACTION call
Field Name | M/O/C | Type | Regex | Description |
---|---|---|---|---|
orderDetailsMessage | M | string | N/A | Description of the order |
Transient output parameters for the TRANSACTION call
Field Name | M/O/C | Type | Regex | Description |
---|---|---|---|---|
appUrl | M | string | N/A | Swish AppIntent URL that has callback parameter , that helps to navigate to merchant app once payment is successful routing through browser. |
qrCode | M | string | N/A | Base 24 encoded QR string |
TRANSACTION call input
tag=swish
&txtype=TRANSACTION
&countrycode=SE
¤cy=SEK
&amount=250
&merchanttxid=84564142227
&login=johndoe
&password=wXBrpVporFVjGO4R
&contractid=JOHNDOETESTCONTRACT
&channel=testchannel
&merchantredirecturl=https%3A%2F%2Fmerchant.com%2Fwork%2Fppro2%2Flanding.php
¬ificationurl=https%3A%2F%2Fmerchant.com%2Fwork%2Fppro2%2Fnotification.php
&accountholdername=Tester+Doe
&transientin.orderDetailsMessage=checkoutof2cakes
&returnmode=urlencodeext
For For standard input parameters, check Input parameters for the TRANSACTION call
TRANSACTION call output
REQUESTSTATUS=SUCCEEDED
&STATUS=PENDING
&TXID=600520459
&ERRMSG=
&CHANNEL=testchannel
&TAG=swish
&transientout.appUrl=https%3A%2F%2Fmerchant.com%2Fwork%2Fppro2%2Flanding.php
&transientout.qrCode=base64-encoded-qrstring
For standard output parameters, see Output parameters for the TRANSACTION call.
QR code Generation
-
QR code can be generated in following two ways:
-
Through Swish API : Merchant is given with base 64 encoded string that can be decoded at merchant's side
-
Locally using Swish guidelines : Merchant is given with QR
Both are depicted below for reference:
PPRO gives flexibility to choose one of the ways.
-
Updated 4 days ago