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(api_lock): allow api lock on psync only when force sync is true (#3242)
Narayan Bhatac5349cd7160
diff --git a/crates/router/src/routes/payments.rs b/crates/router/src/routes/payments.rsindex 2ae1d620cc..34f41c49cd 100644--- a/crates/router/src/routes/payments.rs+++ b/crates/router/src/routes/payments.rs@@ -1271,7 +1271,7 @@ impl GetLockingInput for payment_types::PaymentsRetrieveRequest {lock_utils::ApiIdentifier: From<F>,{match self.resource_id {- payment_types::PaymentIdType::PaymentIntentId(ref id) => {+ payment_types::PaymentIdType::PaymentIntentId(ref id) if self.force_sync => {api_locking::LockAction::Hold {input: api_locking::LockingInput {unique_locking_key: id.to_owned(),