@@ -108,7 +108,6 @@ pub async fn list_payment_method_api(
108
108
get,
109
109
path = "/customers/{customer_id}/payment_methods" ,
110
110
params (
111
- ( "customer_id" = String , Path , description = "The unique identifier for the customer account" ) ,
112
111
( "accepted_country" = Vec <String >, Query , description = "The two-letter ISO currency code" ) ,
113
112
( "accepted_currency" = Vec <Currency >, Path , description = "The three-letter ISO currency code" ) ,
114
113
( "minimum_amount" = i64 , Query , description = "The minimum amount accepted for processing by the particular payment method." ) ,
@@ -134,10 +133,6 @@ pub async fn list_customer_payment_method_api(
134
133
) -> HttpResponse {
135
134
let flow = Flow :: CustomerPaymentMethodsList ;
136
135
let payload = query_payload. into_inner ( ) ;
137
- let ( auth, _) = match auth:: check_client_secret_and_get_auth ( req. headers ( ) , & payload) {
138
- Ok ( ( auth, _auth_flow) ) => ( auth, _auth_flow) ,
139
- Err ( e) => return api:: log_and_return_error_response ( e) ,
140
- } ;
141
136
let customer_id = customer_id. into_inner ( ) . 0 ;
142
137
Box :: pin ( api:: server_wrap (
143
138
flow,
@@ -153,7 +148,7 @@ pub async fn list_customer_payment_method_api(
153
148
Some ( & customer_id) ,
154
149
)
155
150
} ,
156
- & * auth,
151
+ & auth:: ApiKeyAuth ,
157
152
api_locking:: LockAction :: NotApplicable ,
158
153
) )
159
154
. await
@@ -166,7 +161,6 @@ pub async fn list_customer_payment_method_api(
166
161
path = "/customers/payment_methods" ,
167
162
params (
168
163
( "client-secret" = String , Path , description = "A secret known only to your application and the authorization server" ) ,
169
- ( "customer_id" = String , Path , description = "The unique identifier for the customer account" ) ,
170
164
( "accepted_country" = Vec <String >, Query , description = "The two-letter ISO currency code" ) ,
171
165
( "accepted_currency" = Vec <Currency >, Path , description = "The three-letter ISO currency code" ) ,
172
166
( "minimum_amount" = i64 , Query , description = "The minimum amount accepted for processing by the particular payment method." ) ,
0 commit comments