#puttekool
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
yes you can use Payment Element with Setup Intents
nice, will that override the default payemnt of the customer ?
no you would have to set it yourself after the Setup Intent succeeds
when you say default PM do you mean for Billing?
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is this what we're talking about?
Like in the first doc you sent we are not changing the default payment of the customer there is only a scetion where we 'Charge the saved payment method later'. In my mental model I just want to change the default payment method and that would charge from a newly changed card the next subscription ?
next subscription billing
We wont get any money when the card expires so they need to change it sometimes ๐
in that case you need to update the customer object https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And they would do the change to a new card on a custom /profile page for edit card. Hmm that might mean we need to charge them also right away..
with the new PM
ok and if we change the default payment method here https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method would that try to take a new payment if a payment from the subscription has not gone through previously ?
Not automatically, no
ok kool, then i need to chack also for that.
Yep, generally you'd just re-confirm the Payment Intent associated with the unpaid Invoice
And what If I use your customer customer portal session to update card, there is no dynamic payment of last bill if the card was expired for example ?
Or is there any automatic email system to re-confirm the payment Intent. Customers card expires -> payment does not go through -> email sent to customer -> customer can via the email update creditcard ?
Not automatically, no. But the portal surfaces unpaid invoices so the user could theoretically pay it/them in the UI from there
Sure: https://stripe.com/docs/billing/revenue-recovery/customer-emails#prevent-failed-payments-emails
wow thats email feature is awesome, thanks!
One. more detail, can we have a button on the /profile page in our website that sends an email to the user that is the Manage failed payments email. So the custmer could prompt themselves for this email and also get them automatically ?
Then we would not need to have adit payment form..
No, you can't manually trigger that email from us. You'd need to build your own email
ok no prob, maybe the custmoer portal is still same same..