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(payments_start): remove redundant call to fetch payment method data (#1574)
Shreyash Kumar Pandey6dd61b62ef32
diff --git a/crates/router/src/core/payments/operations/payment_start.rs b/crates/router/src/core/payments/operations/payment_start.rsindex 9490213a39..e05e0a0260 100644--- a/crates/router/src/core/payments/operations/payment_start.rs+++ b/crates/router/src/core/payments/operations/payment_start.rs@@ -242,14 +242,14 @@ where#[instrument(skip_all)]async fn make_pm_data<'a>(&'a self,- state: &'a AppState,- payment_data: &mut PaymentData<F>,+ _state: &'a AppState,+ _payment_data: &mut PaymentData<F>,_storage_scheme: storage_enums::MerchantStorageScheme,) -> RouterResult<(BoxedOperation<'a, F, api::PaymentsStartRequest>,Option<api::PaymentMethodData>,)> {- helpers::make_pm_data(Box::new(self), state, payment_data).await+ Ok((Box::new(self), None))}async fn get_connector<'a>(