#shahriyar_api

1 messages ¡ Page 1 of 1 (latest)

sage kiteBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288468493959954442

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

main needle
#

hi there!

#

you have an existing Invoice that you want the customer to pay?

crude yarrow
#

Yeah if a invoice is past due

#

And its retrying

#

I want to create a checkout session so once they pay it by clicking a button they get redirected to the success_url

main needle
crude yarrow
#

I am currently using it, but the problem is, once paid it stays there, I have to manually go back and check

main needle
#

I don't understand what you mean by "once paid it stays there, I have to manually go back and check". what's the issue exactly?

crude yarrow
#

So if you click a hosted_invoice_url

#

Once the payment is done

#

You just see a success message and some buttons to download receipt I guess

#

what I want is rather than showing those, I want the users to be redirected to a page on my website

main needle
#

got it, but that's not possible with the hosted invoice. you could use Checkout Session to collect payment, but that won't update the existing invoice.

crude yarrow
#

Yeah but checkout session does not work for past_due invoices

#

I will live with it, but it will be a good addition of we can create checkout sessions for invoices too

main needle
#

Yeah but checkout session does not work for past_due invoices
correct

crude yarrow
#

Take that as a suggestion.

main needle
#

I will live with it, but it will be a good addition of we can create checkout sessions for invoices too
you can use Checkout Session to create a new invoice, but not pay an existing invoice no. but thanks for the feedback!

#

you could also build your own payment flow with the Payment Element to pay the existing Invoice, and have full control over the UI.

crude yarrow
#

Thanks, I will do that