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(router): add attempt_count field in attempt update record of payment_intent (#1725)
Sai Harsha Vardhan95de3a579d07
diff --git a/crates/diesel_models/src/payment_intent.rs b/crates/diesel_models/src/payment_intent.rsindex 19ffe516fd..2a20c2681b 100644--- a/crates/diesel_models/src/payment_intent.rs+++ b/crates/diesel_models/src/payment_intent.rs@@ -134,8 +134,9 @@ pub enum PaymentIntentUpdate {order_details: Option<Vec<pii::SecretSerdeValue>>,metadata: Option<pii::SecretSerdeValue>,},- PaymentAttemptUpdate {+ PaymentAttemptAndAttemptCountUpdate {active_attempt_id: String,+ attempt_count: i16,},StatusAndAttemptUpdate {status: storage_enums::IntentStatus,@@ -299,8 +300,12 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {modified_at: Some(common_utils::date_time::now()),..Default::default()},- PaymentIntentUpdate::PaymentAttemptUpdate { active_attempt_id } => Self {+ PaymentIntentUpdate::PaymentAttemptAndAttemptCountUpdate {+ active_attempt_id,+ attempt_count,+ } => Self {active_attempt_id: Some(active_attempt_id),+ attempt_count: Some(attempt_count),..Default::default()},PaymentIntentUpdate::StatusAndAttemptUpdate {