#gunwant-Invoice
1 messages · Page 1 of 1 (latest)
Hi there, can you tell me a bit more about your integration? How does your customer pay the invoice?
Here is my working flow.
- I have created customer first
- After that create an invoice item for that customer
- Creating invoice
- Finalize invoice to get client_secret
- Using this client_secret i have mount the stipe payment element
- In last confirm payment
OK, so you are passing the client_secret of the invoice's latest_payment_intent to frontend, am I right?
Can you send me the paymentIntent ID so that I can take a look?
Thanks for the ID. From my end I can see this PaymentIntent was created when the invoice is finalized, and you've also updated the description and the setup_future_usage attribute for this PaymentIntent.
Yes
However, I don't see any confirmation request coming from your frontend app
Can you open your browser console and see if there are any errors when you confirm the PaymentIntent?
Can you please read my problem first message?
In the stripe dashboard, there is one invoice in an open state whats happens in the user/customer leaves the checkout page without confirm the payment.
That's the checkout page that you've built with Stripe PaymentElement, where you call stripe.confirmPayment() am I right?
Yes, I have mount stripe element using stipe secret after that customer add the details and confirm the payment.
What about open state invoice in stripe dashboard if user/customer leave the page without confiming?
You customer can continue the payment later in the next visit, as long as you have initialized the Stripe.js with the right publishable key, and you've passed a valid client_secret to the PaymentElements.
I have already done it.
Please read it again.
I need help with abandoned payments. I am implementing Stripe universal, after I finalize the invoice and get the client's secret an invoice is created in Stripe with open status. If a user exit out of the browser or decides to go back or not proceed with the checkout the open invoice in Stripe remains there in limbo. Not sure, if I am doing something wrong or if this is how Stripe works.
I've read your problem, and I'd suggest you to debug on your frontend and see what errors prevent your customer from continuing the payment. It can be incorrect publishable key, invalid client_secret, or something else.
I can also take a look if you can give me a public URL where I can reproduce the problem.
My problem with an open invoice in the stripe dashboard. If a user exit out of the browser or decides to go back or not proceed.
What's your expected outcome of it?
Are you understand my actual issue?
So you want to find a way to bring back your customers to your webpage to continue the payment?
Or do you want to ask something else related to payment?
No, Whats happens about open state invoices in the stripe dashboard if customers never back to a webpage?
OK, the question is clear now.
It would remain open unless you void it or mark it uncollectable
https://stripe.com/docs/invoicing/integration/workflow-transitions you can learn more about invoice status and transitions here
How can I void an invoice if the customer closes the browser/direct shutdown his system?
Is the invoice status open?
Yes
You can call these two API to void the invoice or mark it uncollectible.
Yes, I know about it.
The problem is this.
Can you tell me why you think this is a problem?
This invoice is always shown in an open state in stripe dashboard.
Sorry I don't really understand the problem here. If you don't want to keep the invoice, you can always void it or mark it uncollectible as I explained earlier.
No problem! feel free to visit us again if you have any questions.
Sure.
Thank you