Swish

Swish is a mobile payment solution backed by a number of Swedish banks. If you want to support this in your application, you need a special agreement with your bank but they offer a Swish simulator that allows for development purposes.

Go to Swish for merchants at [[1]] and download the Simulator guide (zipfile) containing both an pdf with instructions and a number of certificates.

In principle is the payment (for merchants) started by a PUT operation using a Json PAYMENT OBJECT using a certificate, the user pays using a mobile ,the Swish server will then issue a callback towards your server withe the result using a POST containing the result

Swish1.png

Using an webapp on Azure you need to install the .pfx certificates (in the zip) for merchants as Private Key Certificates. You also need to install the corresponding Public Key Certificates. I did this by importing the .pfx to the windows key store on my developer machine and the export the public key (for import to Azure).

Also I added the application setting : WEBSITE_LOAD_CERTIFICATES with value "*"

The SWISH-server callback is a POST using a JSON raw body. Link title

This page was edited 47 days ago on 02/10/2024. What links here