#nigimaxx - payment method

1 messages ยท Page 1 of 1 (latest)

formal kettleBOT
zenith yoke
#

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

devout roost
#

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. ...

zenith yoke
#

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?

devout roost
#

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"
  }
}
zenith yoke
#

Gotcha, thank you. Just making sure

sudden terrace
#

Hello ๐Ÿ‘‹
Taking over as Pompey needs to step away soon

#

You can use that to set active payment_method_types on PaymentIntent

devout roost
#

This looks promising. Thanks

sudden terrace
#

NP! ๐Ÿ™‚ Happy to help