How to Test Klarna Payments
The steps below walk through creating a Klarna payment request in the Bead sandbox, completing checkout with Klarna’s test account, and confirming the resulting webhook and payment status.
1 – Prerequisites
Merchant has Klarna enabled
Contact developer support if Klarna is not yet activated for your sandbox merchant.
Sandbox base URL
https://api.test.devs.beadpay.io
Webhook endpoint
Publicly reachable and registered with Bead.
2 – Create a Bead payment request
The response contains a paymentUrl
and trackingId
.
3 – Present the Klarna checkout
Display as QR code
Generate a QR code for the paymentUrl
.
• The tester can scan the code with their phone camera; the camera app opens Klarna’s checkout page.
• The tester may also tap / click the QR code in the UI to copy the URL, then paste it into any browser.
Redirect in-page
Embed the paymentUrl
in an iframe or redirect the shopper’s browser window directly.
4 – Complete checkout with Klarna’s test account
Phone number
716-220-4669
PIN (if prompted)
123456
Follow Klarna’s sandbox prompts until the shopper is redirected back to your redirectUrl
.
5 – Verify the result
Webhook – A POST request arrives at your webhook endpoint with
paymentStatus
set tocompleted
.API confirmation (optional) – Call
GET /payments/{trackingId}
. The response should showstatus = completed
and a non-zerosettlementAmount
.
6 – Troubleshooting
klarna_payment_method_disabled
Klarna not enabled for this merchant; request activation.
Shopper error “Purchase can’t be completed”
Amount outside sandbox limits (1–2 000 USD). Retry within limits.
No webhook received
Verify the webhook URL is public and whitelisted.
invalid_tender_type
when creating payment
Ensure "tenderType": "klarna"
is spelled exactly.
7 – Next steps
Test higher amounts and edge cases (cancellation, expiry).
Switch to production by using
https://api.devs.beadpay.io
and live Klarna credentials.
Last updated