Troubleshooting
Frequent problems with Swish för handel for PrestaShop and how to solve them.
Swish does not appear at checkout
Swish is shown only when every condition is met. Check, in this order:
- The licence is active: the Support tab shows Active.
- Enable new Swish payments is ticked and saved in General settings.
- The cart is in Swedish kronor (SEK), and SEK is active in International > Localization.
- The country of the invoice address is in Allowed countries (ISO codes).
- The order total, including tax, discounts and shipping, is between Minimum SEK and Maximum SEK.
- In Payment > Preferences, Swish is allowed for SEK, for that country and for the chosen carrier.
Settings cannot be saved
| Message | What to do |
|---|---|
| A merchant number is required. | Type your number in Swish merchant number before enabling payments. |
| Enter your Swish merchant number. | The number must contain 8 to 15 digits, without spaces. |
| Production callbacks require HTTPS on port 443. | Your shop must use HTTPS on the standard port. Enable SSL in Shop Parameters > General and use the standard HTTPS port. |
| Swish message contains unsupported characters. | Payment message accepts letters, digits, å, ä, ö, spaces and !?(),.-:;. |
| Minimum exceeds maximum. | Correct Minimum SEK and Maximum SEK. |
| The pending state must be unpaid, without invoice or email. | Choose Awaiting Swish payment or another status that is not paid, creates no invoice and sends no email. |
| The paid state must register a completed payment. | Choose a status that is marked as paid, such as payment accepted. |
| Bank errors require an unpaid native order state. | In Bank error statuses, choose only unpaid statuses. |
Certificate problems
| Message | What to do |
|---|---|
| The certificate or its password is invalid. | Check the .p12 file and type its password again. |
| The certificate does not match the private key. | The issued certificate belongs to another request. Use Load current CSR, check it is the request you sent to Swish, and paste the certificate issued for it. |
| The merchant certificate has expired. | Renew it in Guided certificate setup and renewal or upload a new .p12. |
| Create a writable private certificate directory outside the web root and set DEVMAN_SWISH_PRIVATE_DIR. | The module cannot create its private folder. Ask your hosting provider, as described in Merchant certificate. |
| Certificates must be outside the public web root. | The configured folder is inside the shop's public folder. Choose a folder outside it. |
| Private credentials cannot be decrypted in this shop. Re-enter them. | The shop's secret key changed, for example after a migration. Install the certificate again. |
If Test bank connection without a payment reports Bank connection could not be verified., check that the certificate belongs to the selected Environment: an MSS test certificate does not work in Production, and the reverse.
Payments stay pending
The customer paid but the order is still waiting:
- Swish sends the payment update to your shop over HTTPS. A firewall, a security module, maintenance mode or a hosting rule that blocks incoming requests can stop it. Ask your host to allow incoming HTTPS requests to your shop's module addresses.
- Press Reconcile with bank in Payments and reconciliation with the payment instruction to update the payment now.
- Add the command-line reconciliation task as a cron job, as described in Checkout and payments.
A payment is in review
A payment in review did not match what the module expected, for example because the order was changed by hand during the payment. Check the payment with your bank, then use Reconcile with bank. Do not ask the customer to pay again and do not mark the order as paid by hand until you know the outcome.
The customer sees an error
| Message on the payment page | Cause |
|---|---|
| The phone validation error | The phone number is not valid. With Phone number required, a number must be entered. |
| Swish is unavailable for this cart. | The cart no longer meets the conditions, or an order already exists for it. |
| QR service unavailable. Use the mobile app or phone flow. | The QR code could not be created. The customer can enter a phone number or open the app. |
| Payment is being processed. Please wait. | Another request for the same cart is in progress. |
A refund needs review
Do not send another refund. Use Verify refund with bank or check the refund with your bank first. See Refunds.
Getting help
If the problem persists, open a ticket from the Support tab or from your account. Include the module and PrestaShop versions, the payment instruction, the exact message and the result of Run diagnostics. Enable Additional redacted bank diagnostics while reproducing the problem: it records bank response codes without personal data. Never send your certificate, its password or private key.
Still need help?
Open a support ticket from your account and our team will look at your store with you.