Reversing an Authorized Payment Workflow
This workflow describes the sequence of events that comprises reversing an authorization,
also known as cancelling a payment, with Klarna.
Figure:
Authorization Reversal Workflow
- The customer begins to checkout on the merchant website and either chooses the Klarna payment option or uses the Klarna widget.
- The merchant sends either a HOP or inline session API request toCybersource. For more information, see Creating a HOP Session and Creating an Inline Session.
- Cybersourceresponds with the initiated status and either a Klarna redirect URL or Klarna pre-approval token.
- The merchant either redirects the customer to a Klarna URL or sets the Klarna widget to a unique token.
- The customer completes the checkout using either the Klarna URL or widget. If the customer used the Klarna URL, the customer is redirected to the merchant website.
- The merchant sends an authorization API request toCybersource. For more information, see Authorize a Payment.
- Cybersourceresponds to the merchant with thePENDINGstatus and an authorization request ID.
- The merchant sends periodic check status requests toCybersourcewith the authorization request ID.
- Cybersourceresponds to the merchant with theAUTHORIZEDstatus when the authorization is complete.
- The customer or merchant decides to cancel the payment.
- The merchant sends an authorization reversal API request toCybersource. For more information, see Reverse an Authorized Payment.
- Cybersourceresponds to the merchant with theAUTH_REVERSEDstatus.
- The merchant displays a payment cancellation confirmation to the customer.