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
refactor(worldline): use `connector_request_reference_id` as reference to the connector (#2498)
Panagiotis Ganelisefa53204e8ab
diff --git a/crates/router/src/connector/worldline/transformers.rs b/crates/router/src/connector/worldline/transformers.rsindex f1267c0976..d02ab60c8b 100644--- a/crates/router/src/connector/worldline/transformers.rs+++ b/crates/router/src/connector/worldline/transformers.rs@@ -40,11 +40,18 @@ pub struct AmountOfMoney {pub currency_code: String,}+#[derive(Default, Debug, Serialize, Eq, PartialEq)]+#[serde(rename_all = "camelCase")]+pub struct References {+ pub merchant_reference: String,+}+#[derive(Default, Debug, Serialize, Eq, PartialEq)]#[serde(rename_all = "camelCase")]pub struct Order {pub amount_of_money: AmountOfMoney,pub customer: Customer,+ pub references: References,}#[derive(Default, Debug, Serialize, Eq, PartialEq)]@@ -202,6 +209,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PaymentsRequest {currency_code: item.request.currency.to_string().to_uppercase(),},customer,+ references: References {+ merchant_reference: item.connector_request_reference_id.clone(),+ },};let shipping = item