#Matt11

1 messages · Page 1 of 1 (latest)

floral cragBOT
hazy plinth
#

👋 happy to help

#

would you mind sharing the request ID?

topaz fiber
#

of course, req_eBf1zxHGzFNAQK

hazy plinth
#

taking a look

topaz fiber
#

thank you!

hazy plinth
#

ok so basically you don't need the off_session: false the setup_future_usage: 'off_session' is enough

topaz fiber
#

ok it works!!
another question, is it mandatory to set a default payment method to let everything in stripe works?

hazy plinth
#

if you're not using Stripe Billing as I mentioned earlier there's no reason to set that param

topaz fiber
#

ok so if a customer has 3 different cards Stripe is able to decide which one to use right?

hazy plinth
#

in which scenario?

topaz fiber
#

recurring payment in which I create a new PI for the customer

hazy plinth
#

@topaz fiber please stop using recurring payment unless you're referring to Stripe's subscriptions otherwise you will get us confused

topaz fiber
#

sorry.

#

my custom background job that creates a new PI for the customer

hazy plinth
#

since you are passing the PM in your PI there's nothing that Stripe needs to do to define which PM to use

topaz fiber
#

mmm is it possibile to get the latest payment method added? because otherwise I cannot know which PM send to the PI

stable hazel
#

No, there's currently no concept of a "default" payment method for one-off payment intent payments

#

you must explicitly provide a payment method ID (or new payment method details)

#

If you want to use a default from your perspective, you need to store the ID to use for that and provide it with each payment intent

topaz fiber
#

and why setting the default into Stripe is not a good idea? it could be a solution?

stable hazel
#

Setting where?

topaz fiber
#

setting the default payment method on the customer

stable hazel
#

you mean the customer invoice_settings[default_payment_method?

topaz fiber
#

yes, even if I'm not using Billing. or the default_source field

stable hazel
#

invoice_settings[default_payment_method] is only for invoices, not one off payment intents

#

You need to specify the PM id explicitly with payment intents

#

default_source is only for legacy sources integrations, not for payment methods