hyperswitch
hyperswitch copied to clipboard
fix(klarna): payments failing because of failed deserialization
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?
Checklist
- [x] I formatted the code
cargo +nightly fmt --all
- [x] I addressed lints thrown by
cargo clippy
- [x] I reviewed submitted code