#ryo_ymd
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
No, you need to manually set the collected payment method as the customer's invoice_settings.default_payment_method https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet#ios-set-up-return-url
Ok, thank you!
We use web embedding
ref: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=embedded-checkout
@session = Stripe::Checkout::Session.create({
payment_method_types: ['card'],
mode: 'setup',
ui_mode: 'embedded',
return_url: register_step2_path
})
And this is how return_url is used. How should I update invoice_settings.default_payment_method?
You can listen to checkout.session.completed event, get the customer and payment_method from the session object, and call the update cusotmer API to set the invoice_settings.default_payment_method