#nigimaxx - payment method
1 messages ยท Page 1 of 1 (latest)
Can you elaborate on your use case here a bit? It sounds like you are a connect platform that wants to define the automatic payment methods for your connected accounts?
If so, you can set available payment methods from your account dashboard though unfortunately those settings aren't available via the API at the moment
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
But this isn't possible through the API?
If I try to "hardcode" the payment methods I get this error for some accounts: The payment method type "klarna" is invalid. ...
nigimaxx - payment method
Correct, the two options at the moment are automatic payment methods (which use those dashboard settings) and hardcoding the payment methods (which errors if a PM is incompatible with the payment intent)
Did we specify the reason that klarna wouldn't work for that payment in the rest of that error message?
This is the full error
{
"error": {
"code": "payment_intent_invalid_parameter",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-invalid-parameter",
"message": "The payment method type \"klarna\" is invalid. Please ensure the provided type is activated in your dashboard (https://dashboard.stripe.com/account/payments/settings) and your account is enabled for any preview features that you are trying to use.",
"param": "payment_method_types",
"request_log_url": "...",
"type": "invalid_request_error"
}
}
Gotcha, thank you. Just making sure
Hello ๐
Taking over as Pompey needs to step away soon
You could List all active Capabilities of the connected account using the API
https://stripe.com/docs/api/capabilities/list
This would tell you what payment methods are in "active" state
You can use that to set active payment_method_types on PaymentIntent
This looks promising. Thanks
NP! ๐ Happy to help