#caiotmello_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
đ 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/1212227431130464386
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
â˛ď¸ 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. Thank you for your patience!
hello! what's Payment Checkout (On My App)?
Hi, I am meaning this https://docs.stripe.com/payments/checkout
From my app , I want to redirect the user to this checkout page
But I would like to link this checkout to an existing invoice
Checkout is an entirely different flow, it cannot be used to pay a pre-existing invoice. It sounds to me that what you actually want is a post payment invoice. If that's the case, you can use Checkout Sessions to collect payment instead, and generate a post payment invoice : https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-invoice_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ooh ok ... it is clear for me now. It is not possible to pay an pre-existing invoice.
Thanks for the answer
if you want a hosted page for the customer to pay
Invoices already has that
why do you want to use the Checkout page?
It because my customer wants to create the invoice manual on stripe
And if the user do not pay the invoice until the due date... I need to redirect him to the stripe web site to pay the bill when he tries to open the app
the invoice has it's own hosted payment page : https://docs.stripe.com/api/invoices/object#invoice_object-hosted_invoice_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is it not possible to pay the invoice through this invoice url and be redirect to my app again after the payment?
no, if you pay that invoice through that invoice url, it's not possible to be redirected to your app again after the payment