diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json index 976140cec7fa..573dce236daf 100644 --- a/api-reference/openapi_spec.json +++ b/api-reference/openapi_spec.json @@ -16725,7 +16725,7 @@ "amount": { "type": "integer", "format": "int64", - "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)", + "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest", "example": 6540, "nullable": true, "minimum": 0 @@ -16733,6 +16733,7 @@ "order_tax_amount": { "type": "integer", "format": "int64", + "description": "Total tax amount applicable to the order", "example": 6540, "nullable": true }, @@ -17103,12 +17104,13 @@ "amount": { "type": "integer", "format": "int64", - "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)", + "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest", "minimum": 0 }, "order_tax_amount": { "type": "integer", "format": "int64", + "description": "Total tax amount applicable to the order", "example": 6540, "nullable": true }, @@ -18225,7 +18227,7 @@ "amount": { "type": "integer", "format": "int64", - "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)", + "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest", "example": 6540, "nullable": true, "minimum": 0 @@ -18233,6 +18235,7 @@ "order_tax_amount": { "type": "integer", "format": "int64", + "description": "Total tax amount applicable to the order", "example": 6540, "nullable": true }, @@ -19369,7 +19372,7 @@ "amount": { "type": "integer", "format": "int64", - "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)", + "description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)\nMakes the field mandatory in PaymentsCreateRequest", "example": 6540, "nullable": true, "minimum": 0 @@ -19377,6 +19380,7 @@ "order_tax_amount": { "type": "integer", "format": "int64", + "description": "Total tax amount applicable to the order", "example": 6540, "nullable": true }, diff --git a/crates/router/src/connector/klarna/transformers.rs b/crates/router/src/connector/klarna/transformers.rs index 5809314c550d..f69aa0045807 100644 --- a/crates/router/src/connector/klarna/transformers.rs +++ b/crates/router/src/connector/klarna/transformers.rs @@ -233,6 +233,8 @@ impl TryFrom<&KlarnaRouterData<&types::PaymentsAuthorizeRouterData>> for KlarnaP let request = &item.router_data.request; let payment_method_data = request.payment_method_data.clone(); let return_url = item.router_data.request.get_return_url()?; + let webhook_url = item.router_data.request.get_webhook_url()?; + match payment_method_data { domain::PaymentMethodData::PayLater(domain::PayLaterData::KlarnaSdk { .. }) => { match request.order_details.clone() { @@ -296,8 +298,8 @@ impl TryFrom<&KlarnaRouterData<&types::PaymentsAuthorizeRouterData>> for KlarnaP merchant_urls: MerchantURLs { terms: return_url.clone(), checkout: return_url.clone(), - confirmation: "https://google.com".to_string(), - push: "https://google.com".to_string(), + confirmation: return_url, + push: webhook_url, }, }), options: Some(CheckoutOptions {