#GrooveTech
1 messages · Page 1 of 1 (latest)
Hi there, we can't re-open threads but I would be happy to help if you will summarize your issue.
the last response did not help too much
#1070933768795344938 message
Looks like you want to take one-time payments and use Invoices as well, yes?
I mean I need the payment intent from a draft invoice to use the Card Element and pay with my customized UI rather than using the Stripe checkout link
Okay so you don't want to use Stripe Checkout but you do want Invoices
It really worked for subscription but currently not for one-time payment
correct
So it is same idea for one-time payments as what you are doing for Subscriptions. You create the Invoice Item(s) and the Invoice and then finalize it. Then you pass that Invoice's payment_intent.client_secret to your frontend to confirm the PaymentIntent using Card Element and confirmCardPayment
what do you mean "finalize" ?
I tried on the dashboard but it only return the value of payment intent after I paid it
You would use https://stripe.com/docs/api/invoices/finalize to finalize and if you don't want payment attempted you set auto_advance: false
The payment will also only be attempted if you have a Customer with a set default payment method
Okay I will read and try it. thank you so much
Sure thing
yeah it totally works. You has saved my time, thanks for your support.