Supported workflows
| Workflow | Supported |
|---|---|
| Payrails SDK | ✔ |
| Payrails API | ✔ |
| Delayed / Manual Capture | ✔ |
| Instant Capture | ✔ |
| Cancel / Void | ✔ |
| Refund / Reverse | ✔ |
| Save Instruments | ✖ |
| Merchant Initiated Transaction (MIT) | ✖ |
Before you begin
Complete these steps before you send your first Klarna payment through Stripe:- Set up a Stripe integration in your workspace. Follow the Stripe integration setup guide if you don’t have one yet.
- Turn on Klarna in your Stripe Dashboard payment method settings, and check that your Stripe account is eligible for Klarna.
- In the Payrails Portal, go to Settings → Integrations, open your Stripe integration, select Klarna under Payment methods, and save.
- Add Klarna as a payment option in your workflow.
Request fields for Stripe
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize a Klarna payment
Call authorize a payment withklarna as the paymentMethodCode and hpp as the integrationType. The response includes the redirect to Klarna.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Stripe handles Klarna
- With delayed capture, Payrails creates the Stripe payment with manual capture, so you capture or cancel it later. With instant capture, Stripe captures the payment when the customer confirms it.
- Send an amount greater than zero.
- Each Klarna payment is a new customer-initiated payment.