#gunwant-Invoice

1 messages · Page 1 of 1 (latest)

crystal pendant
#

Hi there, can you tell me a bit more about your integration? How does your customer pay the invoice?

toxic axle
#

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
crystal pendant
#

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?

toxic axle
#

Yes

#

Okay,
Give me few minutes

#

Here
pi_3LHiOVGHf1WlTIAf0SDyokVo

crystal pendant
#

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.

toxic axle
#

Yes

crystal pendant
#

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?

toxic axle
#

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.

crystal pendant
#

That's the checkout page that you've built with Stripe PaymentElement, where you call stripe.confirmPayment() am I right?

toxic axle
#

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?

crystal pendant
#

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.

toxic axle
#

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.

crystal pendant
#

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.

toxic axle
#

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.

crystal pendant
#

What's your expected outcome of it?

toxic axle
#

Are you understand my actual issue?

crystal pendant
#

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?

toxic axle
#

No, Whats happens about open state invoices in the stripe dashboard if customers never back to a webpage?

crystal pendant
#

OK, the question is clear now.

#

It would remain open unless you void it or mark it uncollectable

toxic axle
#

How can I void an invoice if the customer closes the browser/direct shutdown his system?

crystal pendant
#

Is the invoice status open?

toxic axle
#

Yes

crystal pendant
#

You can call these two API to void the invoice or mark it uncollectible.

toxic axle
#

Yes, I know about it.

crystal pendant
#

Can you tell me why you think this is a problem?

toxic axle
#

This invoice is always shown in an open state in stripe dashboard.

crystal pendant
#

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.

toxic axle
#

Okay.

#

No problem

#

Thank you

#

Nice to talk with you.

crystal pendant
#

No problem! feel free to visit us again if you have any questions.

toxic axle
#

Sure.
Thank you