Skip to content

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

fix(router): Move Customer PML endpoint to OLAP (v2) (#8303)

Anurag Thakuraee3f6441f83
diff --git a/crates/router/src/routes/app.rs b/crates/router/src/routes/app.rs
index e271cb5d62..020fea804f 100644
--- a/crates/router/src/routes/app.rs
+++ b/crates/router/src/routes/app.rs
@@ -1090,6 +1090,10 @@ impl Customers {
web::resource("/total-payment-methods")
.route(web::get().to(payment_methods::get_total_payment_method_count)),
)
+ .service(
+ web::resource("/{id}/saved-payment-methods")
+ .route(web::get().to(payment_methods::list_customer_payment_method_api)),
+ )
}
#[cfg(all(feature = "oltp", feature = "v2"))]
{
@@ -1101,10 +1105,6 @@ impl Customers {
.route(web::get().to(customers::customers_retrieve))
.route(web::delete().to(customers::customers_delete)),
)
- .service(
- web::resource("/{id}/saved-payment-methods")
- .route(web::get().to(payment_methods::list_customer_payment_method_api)),
- )
}
route
}