Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(connector): [Klarna] Use connector_request_reference_id as reference to connector (#2494)
Harshit Vashisht2609ef6aeb17
diff --git a/crates/router/src/connector/klarna/transformers.rs b/crates/router/src/connector/klarna/transformers.rsindex b31d56d51b..31e356d476 100644--- a/crates/router/src/connector/klarna/transformers.rs+++ b/crates/router/src/connector/klarna/transformers.rs@@ -45,6 +45,7 @@ pub struct KlarnaPaymentsRequest {order_amount: i64,purchase_country: String,purchase_currency: enums::Currency,+ merchant_reference1: String,}#[derive(Default, Debug, Deserialize)]@@ -140,6 +141,7 @@ impl TryFrom<&KlarnaRouterData<&types::PaymentsAuthorizeRouterData>> for KlarnaPtotal_amount: i64::from(data.quantity) * (data.amount),}).collect(),+ merchant_reference1: item.router_data.connector_request_reference_id.clone(),}),None => Err(report!(errors::ConnectorError::MissingRequiredField {field_name: "product_name"