hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

fix(klarna): payments failing because of failed deserialization

Open Narayanbhat166 opened this issue 1 year ago • 0 comments

Type of Change

  • [x] Bugfix

Description

Klarna payments were failing because the response was not being deserialized correctly.

Motivation and Context

During development, there was no possiblity of testing because of unavailability of authorization token for klarna.

  • Remove redirection since it is not mandatory, attaching the docs for reference https://docs.klarna.com/api/payments/#operation/createOrder!c=200&path=redirect_url&t=response

How did you test it?

Screenshot 2023-01-12 at 6 21 15 PM

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [x] I reviewed submitted code

Narayanbhat166 avatar Jan 12 '23 13:01 Narayanbhat166