#ferra
1 messages · Page 1 of 1 (latest)
hello! gimme a while to get back to you on this
hmmm, i think you can use this flow : https://stripe.com/docs/payments/accept-a-payment-deferred, so you'll know whether the customer has decided if they want to save the payment method for future usage before creating the PaymentIntent
It seems to fit indeed, thank you!
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Is there a way to hide payment methods like we do when creating a PaymentIntent from API with automatic_payment_methods ?
I don't want the first line here. I was able to hide it with automatic_payment_methods.enabled=False
But now Element is created without PaymentIntent at this point
Nope you can't, because this is like using automatic_payment_methods.enabled=true
I don't get it then... I can hide it BUT this is not compatible with the "save card" chackbox process OR I have to see this payment methods line if I want to implement this process?!
This is pretty confusing we can't have same behavior here...
This screenshot is for an Element without a PaymentIntent no ?
No I didn't mention, the "save card" checkbox.
Yes because I don't know yet if the user wants to use the card, as explained in my first message
If you want to hide that line with all payment methods, then you need to use Intents with automatic_payment_methods.enabled=false and set the only payment method that you want to display to your customer (default is "card")
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Ok but this returns me to my original problem...
I don't know yet if the user wants to use the card, as explained in my first message
If you don't know what the user wants to use, then you should display all possible PaymentMethod that you offer using that line in order to let your customer choose what PaymentMethod to use
Which is ?
Which is written in my first message
I got it but I don't really want anything except 'card'
No you can't achieve that without having the line with all available payment methods
Where can we configure what type of payment methods are displayed there?
Is there any section in the dashboard? Even for test env?
If the customer wants to save their payment method they check the checkbox, otherwise they don't check it.
wow wow wait
Did you understand the orginal problem?
It looks no according to your reply I would say
Hmm how come I see "giropay" "eps"... if I did NOT specifid payment_method_types which default is only 'card' ?
There is no such argument while creating the Element without PaymentIntent
That's what I was saying, without PaymentIntent, the default behavior is like using automatic_payment_methods.enabled=true with PaymentIntent.
If you want to restrict the available options, you can set this array with the PaymentMethods you want to show the customer
https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodTypes
Oh I didn't see this doc page thank you