#vmehtawhq
1 messages · Page 1 of 1 (latest)
Hi there!
You can request a capability for any Connected account using the API. for affirm: https://stripe.com/docs/api/accounts/update#update_account-capabilities-affirm_payments
I tried this but payment element doesn't show affirm payment option. It only asks to fill card details. I'm testing with amount >$100. Also reponse for created payment intent returns only "card" in payment_method_types.
Secondly for few minutes I did set the option to "on by default" for connected accounts, after that I was getting payment_method_types: [card, affirm] .
As soon as I turned it off, affirm was gone.
Can you share a PaymentIntent ID (pi_xxx) where you don't see affirm?
Thanks! Give me a few minutes to look into this.
Hey @tidal light, did you find anything?
Sorry for the delay, Discord was busy. Looking into this now.
I see you are doing a Destination Charge with on_behalf_of and automatic_payment_methods, and the connected account does have Affirm enabled. Hum...
yep
Hey! Taking over for my colleague. Let me catch up.
the best option is probably to use https://stripe.com/docs/api/capabilities/update#update_capability-requested to request the affirm_payments capability on the Express account (https://stripe.com/docs/connect/account-capabilities#payment-methods)
and then explicitly pass payment_method_types when creating the PI, instead of using automatic, if you want this to only apply to certain accounts and not all.
Shouldn't payment_method_types be automatically be fetched for any account if set to automatic?
it is yes
but your problem was you said : "I don't want to turn this payment method on for all accounts but only for selected one's"
and it doesn't work that way. If you use automatic_payment_methods , then you turn on a payment method in your dashboard(for all connected accounts), and then it will be available in any PaymentIntent you create
so if you want more customisation you can't use automatic_payment_methods and have to explicitly choose the payment_method_types you want on each PaymentIntent individually
That means if I have updated capabilites for a certain account to enable affirm payment, for that particular account I would have to send explicitly payment_method_types everytime I create a PI to make sure Affirm option shows while making a payment?
well Affirm will show up if you turn it on in your dashboard. You saw that yourself, as you said "I did set the option to "on by default" for connected accounts, after that I was getting payment_method_types: [card, affirm] .As soon as I turned it off, affirm was gone."
but again if you want Affirm to only show up for certain accounts and not others you have to choose the payment_method_types yourself explicitly in the API call to create the PaymentIntent
i..e you say "I am creating a PaymentIntent for account X, therefore I will explicitly pass a certain set of payment_method_types"
Yeah, got that. I was just confirming in the previous message.
Also, if an account doesn't have affirm capability sending affirm while creating PI would fail that request?
yes
This helps, thank you!
In future, will automatic support such cases where a payment method is not supported for all accounts but can return based on capabillities for that account?
not sure, we don't comment on roadmaps. Make sure to raise your feature requests to https://support.stripe.com/?contact=true or any sales contacts you have so they can have more chance of being prioritised (we report feedback from Discord too but always helps if it's more directly coming from you)