#bit-subscription-invoice
1 messages · Page 1 of 1 (latest)
Unfortunately not, the invoice itself will have its own payment intent if it has a price higher than 0. Do you basically have an extra charge that you would like to add to the existing invoice?
no, its more like i want the customer to pay the invoices manually at its own pace. so i need a way to allow them to get to an open invoice and make a single time payment for it without storing the payment method
Gotcha, and are these invoices part of a subscription or are you creating the invoices directly? I think you can turn off saving the PM
Good question. Checking in to this and I will get back to you
thanks a lot
Have you tried using collection_method=send_invoice? https://stripe.com/docs/api/subscriptions/object#subscription_object-collection_method
Basically instead of charging automatically, Stripe will send out the invoice and let the user pay it. It may still automatically save the payment method but it won't automatically charge the payment method going forward.
i read it but i dont want the user to get an email or anything from stripe and pay outside the platform
i want to control the whole process
You can actually turn off Stripe's emails here in your billing settings
If you turn off "Email finalized invoices to customers", the subscription will just generate and finalize them. You can handle the actual payment of them
ok. and how i then pay that invoice?
You can either link the user to the invoice's hosted_url or you can bring them to your own page and confirm the invoices payment intent, similar to this doc https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment
sorry but on that flow i dont see how to connect that payment to the open invoice. yes it will create a new payment but i will still have the invoice on open status. or im missing something?
So the invoice itself has a payment intent. That tutorial is showing how to pass that invoice's payment intent's client secret to your client side. Once that payment is confirmed, the invoice itself will be paid
umm got it. so each invoice generate an internal payment intent so i can reuse that to make the payment any time
thanks
Yes, though to make sure we are on the same page: the payment intent can only be paid once, if you need to take a new payment you will need a new payment intent and/or invoice
yes, thats correct
one last question @karmic yacht there is any way to prevent the card been use on the payment intent to be link to the customer?
I don't think there is a subscription setting for that, but you can always listen for webhook events about payment methods being attached to customers and detaching them
@edgy jolt are you all set?