#daniel.3dturnier
1 messages · Page 1 of 1 (latest)
I suppose by 'hosted' you mean Checkout? https://docs.stripe.com/payments/checkout
OK, then you likely need to pass the payment_method_types parameter when you create the session and only pass the PM the customer preselected
Like, payment_method_types: ['eps'] then that will be the only method on the page
I have tested this part - than I can't use "payment_method_configuration"
I would prefere not to remove the possibilty to change the method on the stripe page
Yep, because that parameter is mututally exclusive to dynamic PMs which you opt out of when using payment_method_types
but just "preselect" one
Then what you want to do isn't possible
The pre-selected PM is determined automatically using an algorithm to optimise conversion
Ok - I think than I will life some weeks with that "double selection"
I have also a second question - where to stripe support couldn't help me
Sure
I want to hand over the "name" of the customer (like the customer_email) - as I have it already in my system
the support send me this:
Also not possible I'm afraid
customer_data.name - but testing it failed
Yep, that's not a parameter. Just a field on the object
how can I avoid to force the customer to enter his name again?
The only way to do that is by creating a Customer object upfront and passing it to the session: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=checkout#handling-existing-customers