#vmehtawhq

1 messages · Page 1 of 1 (latest)

twin ospreyBOT
tidal light
#

Hi there!

wispy solar
#

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.

tidal light
#

Can you share a PaymentIntent ID (pi_xxx) where you don't see affirm?

wispy solar
#

pi_3NXLNHHFzwE4pTge0fIO2Gib

#

pi_3NXLAUHFzwE4pTge1nH6rDai

tidal light
#

Thanks! Give me a few minutes to look into this.

wispy solar
#

Hey @tidal light, did you find anything?

tidal light
#

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

wispy solar
#

yep

daring bison
#

Hey! Taking over for my colleague. Let me catch up.

deft moat
wispy solar
#

Shouldn't payment_method_types be automatically be fetched for any account if set to automatic?

deft moat
#

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

wispy solar
#

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?

deft moat
#

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"

wispy solar
#

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?

deft moat
#

yes

wispy solar
#

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?

deft moat
#

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)