On This Page
Inline Session Workflow
This workflow describes the sequence of events that comprises a successful payment using a
Klarna widget.
For information about how to install the Klarna widget, see Widget Installation for Inline Workflow.
Figure:
Klarna Inline Workflow
- The customer begins to checkout on the merchant website using the displayed Klarna widget.
- The merchant sends an inline session API request toCybersource. For more information, see Creating an Inline Session.If the customer changes their purchase selection after the merchant sends the session API request, the merchant must send an update session API request. For more information, see Updating a Session.
- Cybersourceresponds to the merchant with theINITIATEDstatus and a pre-approval token.
- The merchant sets theSession Token IDin the Klarna widget to the pre-approval token.
- The customer completes checkout using the Klarna widget, and the Klarna widget generates a unique authorization token.
- The merchant sends an authorization API toCybersourcerequest and includes the unique authorization token the Klarna widget displayed. For more information, see Authorize a Payment.
- Cybersourceresponds to the merchant with theAUTHORIZEDstatus and a request ID.
- The merchant sends a capture API request with the request ID. For more information, see Capture a Payment.
- Cybersourceresponds to the merchant with theSETTLEDstatus and a request ID.
- The merchant displays a payment confirmation to the customer.