Fixes the setting of a payment method
This commit is contained in:
@@ -213,9 +213,11 @@ class KlarnaProviderService extends PaymentService {
|
||||
const order = await this.klarna_.get(
|
||||
`${this.klarnaOrderUrl_}/${order_id}`
|
||||
)
|
||||
// TODO: Klarna docs does not provide a list of statues, so we need to
|
||||
// play around our selves to figure it out
|
||||
|
||||
let status = "initial"
|
||||
if (order.status === "AUTHORIZED") {
|
||||
status = "authorized"
|
||||
}
|
||||
return status
|
||||
} catch (error) {
|
||||
throw error
|
||||
|
||||
Reference in New Issue
Block a user