#mentijm-checkout-prefill
1 messages · Page 1 of 1 (latest)
Hey there! You can prefill the payment method yes, if you're passing the customer parameter: https://stripe.com/docs/payments/accept-a-payment#handling-existing-customers
Not sure if this will work with mode: 'setup' however
Hi! We're passing the customer parameter but the hosted page is starting out blank
And I guess that makes sense if the customer would like to add an additional payment method
But can we use that setup session to update one
send a payment_method_id or similar
There's no way to pass a specific Payment Method ID, no
To be clear, Checkout will prefill with the most recently used payment method on the Customer object
Ok, so if we're looking for that functionality we would first have to make a call to delete the payment method on the customer
So if they've yet to make a payment, it'll likely be blank
I just don't think mode: 'setup' will prefill regardless. The whole purpose of that mode is to capture new payment method details