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(subscriptions): save both payment connector and billing connector customer id (#9982)
Jagan26ab3850dda7
diff --git a/crates/subscriptions/src/core.rs b/crates/subscriptions/src/core.rsindex d86d7ad9f9..9101e0de3b 100644--- a/crates/subscriptions/src/core.rs+++ b/crates/subscriptions/src/core.rs@@ -324,14 +324,6 @@ pub async fn confirm_subscription(};let mut subscription_entry = handler.find_subscription(subscription_id).await?;- let customer = SubscriptionHandler::find_customer(- &state,- &merchant_context,- &subscription_entry.subscription.customer_id,- )- .await- .attach_printable("subscriptions: failed to find customer")?;-let invoice_handler = subscription_entry.get_invoice_handler(profile.clone());let invoice = invoice_handler.get_latest_invoice(&state)@@ -356,6 +348,13 @@ pub async fn confirm_subscription(profile.clone(),).await?;+ let customer = SubscriptionHandler::find_customer(+ &state,+ &merchant_context,+ &subscription_entry.subscription.customer_id,+ )+ .await+ .attach_printable("subscriptions: failed to find customer")?;let invoice_handler = subscription_entry.get_invoice_handler(profile);let subscription = subscription_entry.subscription.clone();