#meisei81_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1233344823986094113
๐ 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.
- meisei81_api, 37 minutes ago, 14 messages
- meisei81_api, 2 hours ago, 20 messages
- meisei81_api, 2 days ago, 9 messages
hi there!
Hi. Could you help me out.
after you finalize the invoice, you need to call the pay endpoint: https://docs.stripe.com/api/invoices/pay
So if the customer has a default payment method, I don't need to call the pay endpoint, right?
you still need to call pay
I don't think so. Because we never call this endpoint but all the invoices in our system can pay successfully.
The flow: create invoice item, create invoice, finalize invoice.
can you share an example of an invoice ID where you didn't need to call pay?
in_1P92iHE2ZZnUHRVWTStP2h8R
Note that we don't use stripe subscription feature.
We just collect customer's payments by creating invoice.
thanks! give me a few minutes to look into this.
Hi, how's it going
๐ taking over for my colleague. Let me catch up.
Great.
the reason why the invoice wasn't paid is because https://dashboard.stripe.com/test/events/evt_1P9kfyE2ZZnUHRVW5kWC7Pj5 has returned 500 internal error
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I don't get this. Why the webhook event failed would effect the invoice finalize result?
Do I need to do something when I received the invoice.finalize event?
yes if your response to that webhook event isn't an HTTP 200 response then Stripe would not automatically attempt the payment of the invoice
your webhook endpoint responded with 500 billing not found
Well it's weird. I don't get the purpose on this process.
when you listen to invoice.finalize on your webhook
we assume that you're doing something in your system that is related to the invoice finalization
think of it as a way to extend the Stripe invoice finalization process
when that fails, we stop and wait for you to figure out what happened on your side
I call the invoice finalize endpoint just want to pay invoice. I don't do anthing on the invoice.finalize event.
your webhook endpoint apparently does
because it failed with a billing not found error sent back to Stripe
try looking at your code and search for billing not found
I mean I listen to invoice finalize event just like invoice.paid. I didn't expect this event to ultimately affect the invoice paid status.
yes but what is the logic that you run there?
and why did it fail
that's the question you should be asking yourself
I'm testing creating invoice using default_payment_method parameter in postman
Our system create invoice with a customer who has default payment method. And now I use postman to test the process with a customer without default payment method.
you're not asking/answering the right question
if you want to get unblocked, you need to look at your webhook endpoint code/logs
and see why this event failed
The failure is expected. But the invoice.finalize event affect the invoice status is not.