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

docs(payment-methods): update the doc comments of combined pml (#13751)

Prasunna Soppa0d3e03ca12e2
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 30ae0af23b..42c6cbe871 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -4013,7 +4013,7 @@
"Payment Methods"
],
"summary": "List payment methods for a Payment",
- "description": "Client SDK endpoint. Returns a unified response combining merchant-enabled\npayment methods and customer saved payment methods, filtered via Euclid\nconstraint graph and session flow routing.\n\nSupported client auth:\n- SDK auth via `Authorization`.\n- Publishable-key auth via `api-key: pk_...` and `client_secret` query param.\n\nMerchant secret-key auth is intentionally not supported for this endpoint.",
+ "description": "Client SDK endpoint. Returns a unified response combining merchant-enabled\npayment methods and customer saved payment methods, filtered via Euclid\nconstraint graph and session flow routing.\n\nSupported auth:\n- SDK auth via `Authorization`.\n- Publishable-key auth via `api-key: pk_...` and `client_secret` query param.\n- Merchant API-key auth via `api-key: <api_key>`.",
"operationId": "List Payment Methods for a Payment via Client SDK",
"parameters": [
{
@@ -4138,6 +4138,9 @@
"security": [
{
"publishable_key": []
+ },
+ {
+ "api_key": []
}
]
}
diff --git a/crates/openapi/src/routes/payment_method.rs b/crates/openapi/src/routes/payment_method.rs
index 2ace61bc0b..442ed5ee0e 100644
--- a/crates/openapi/src/routes/payment_method.rs
+++ b/crates/openapi/src/routes/payment_method.rs
@@ -124,11 +124,10 @@ pub async fn list_customer_payment_method_api_client() {}
/// payment methods and customer saved payment methods, filtered via Euclid
/// constraint graph and session flow routing.
///
-/// Supported client auth:
+/// Supported auth:
/// - SDK auth via `Authorization`.
/// - Publishable-key auth via `api-key: pk_...` and `client_secret` query param.
-///
-/// Merchant secret-key auth is intentionally not supported for this endpoint.
+/// - Merchant API-key auth via `api-key: <api_key>`.
#[utoipa::path(
get,
path = "/payments/{payment_id}/client",
@@ -150,7 +149,7 @@ pub async fn list_customer_payment_method_api_client() {}
),
tag = "Payment Methods",
operation_id = "List Payment Methods for a Payment via Client SDK",
- security(("publishable_key" = []))
+ security(("publishable_key" = []), ("api_key" = []))
)]
#[cfg(feature = "v1")]
pub async fn list_payment_methods_for_payments_client() {}
diff --git a/crates/router/src/routes/payment_methods.rs b/crates/router/src/routes/payment_methods.rs
index 7b5725f914..a80bdd96d5 100644
--- a/crates/router/src/routes/payment_methods.rs
+++ b/crates/router/src/routes/payment_methods.rs
@@ -2203,11 +2203,10 @@ pub async fn payment_method_get_token_details_api(
/// customer saved payment methods, filtered via Euclid constraint graph and
/// session flow routing.
///
-/// Supported client auth:
+/// Supported auth:
/// - SDK auth via `Authorization`.
/// - Publishable-key auth via `api-key: pk_...` and `client_secret` query param.
-///
-/// Merchant secret-key auth is intentionally not supported for this endpoint.
+/// - Merchant API-key auth via `api-key: <api_key>`.
#[instrument(skip_all, fields(flow = ?Flow::PaymentMethodsList))]
pub async fn list_payment_methods_for_payments_client(
state: web::Data<AppState>,