#erikou_api
1 messages ¡ Page 1 of 1 (latest)
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.
- erikou_api, 4 days ago, 17 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257651447768682496
đ Have more to share? Add details, code, screenshots, videos, etc. below.
What is it you're trying to test exactly?
Hello i just want to find a way to know status of payment_link
Well Payment Links are reusable, so their status does not reflect the status of a particular payment
in the process I want to notify and give a payment link to my customer, and then check if the payment is still pending fulfilled or cancelled
yeah so i guess payment link isn't the right request to use
Well each time the Payment Link is used it generates a Checkout Session in the background which accurately reflects the status of the payment
okay so how can i retrieve this checkout session? does payment link response give me a checkout session id ?
No, because it's not a 1:1 relationship, it's a 1:n relationship
What is it you're trying to do exactly? Why do you need the payment status?
just to inform if the payment has been fulfilled
Well this is how you do that post payment with Payment Links: https://docs.stripe.com/payments/checkout/fulfill-orders
yeah i would love to use webhook but this is the issue since it is a desktop software
It's really the only recommended way. There's no easy way to know which payment belongs to which customer directly via the API
but can i use invoice ? i saw when i make the process manually on the website i can get a link for the payment
but i don't know how to get this link with API
and then i just have to retrieve the invoice so i can get a status maybe
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah i tried making an invoice
then i also created an invoice_items that i associated with the invoice but still don't know how to get a link for payment
I just sent you the field on the Invoice object that is the URL for the hosted payment page that you can share with customers. It'll likely be null until the invoice is finalized: https://docs.stripe.com/invoicing/integration#create-invoice-code