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(payments): dont delete client secret on success status (#1692)
Abhishek Marrivagu5216d22efcd2
diff --git a/crates/storage_models/src/payment_intent.rs b/crates/storage_models/src/payment_intent.rsindex cd16f34742..19ffe516fd 100644--- a/crates/storage_models/src/payment_intent.rs+++ b/crates/storage_models/src/payment_intent.rs@@ -321,10 +321,9 @@ fn make_client_secret_null_based_on_status(status: storage_enums::IntentStatus,) -> Option<Option<String>> {match status {- storage_enums::IntentStatus::Succeeded | storage_enums::IntentStatus::Cancelled => {- Some(None)- }- storage_enums::IntentStatus::Processing+ storage_enums::IntentStatus::Cancelled => Some(None),+ storage_enums::IntentStatus::Succeeded+ | storage_enums::IntentStatus::Processing| storage_enums::IntentStatus::RequiresCustomerAction| storage_enums::IntentStatus::RequiresMerchantAction| storage_enums::IntentStatus::RequiresPaymentMethod