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
fix(router): move `get_connector_tokenization_action_when_confirm_true` above `call_create_connector_customer_if_required` (#2167)
Shankar Singh C15418a6d0f94
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rsindex 70c250d533..03e5630634 100644--- a/crates/router/src/core/payments.rs+++ b/crates/router/src/core/payments.rs@@ -594,15 +594,6 @@ where).await?;- let updated_customer = call_create_connector_customer_if_required(- state,- customer,- merchant_account,- key_store,- payment_data,- )- .await?;-let (pd, tokenization_action) = get_connector_tokenization_action_when_confirm_true(state,operation,@@ -611,8 +602,18 @@ where&merchant_connector_account,).await?;+*payment_data = pd;+ let updated_customer = call_create_connector_customer_if_required(+ state,+ customer,+ merchant_account,+ key_store,+ payment_data,+ )+ .await?;+let mut router_data = payment_data.construct_router_data(state,