#meisei81_api

1 messages ยท Page 1 of 1 (latest)

amber adderBOT
#

๐Ÿ‘‹ 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.

hollow cipherBOT
#

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.

hasty bolt
#

hi there!

latent zealot
#

Hi. Could you help me out.

hasty bolt
latent zealot
#

So if the customer has a default payment method, I don't need to call the pay endpoint, right?

hasty bolt
#

you still need to call pay

latent zealot
#

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.

hasty bolt
#

can you share an example of an invoice ID where you didn't need to call pay?

latent zealot
#

in_1P92iHE2ZZnUHRVWTStP2h8R

#

Note that we don't use stripe subscription feature.

#

We just collect customer's payments by creating invoice.

hasty bolt
#

thanks! give me a few minutes to look into this.

latent zealot
#

Hi, how's it going

kindred violet
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

latent zealot
#

Great.

kindred violet
latent zealot
#

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?

kindred violet
#

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

latent zealot
#

Well it's weird. I don't get the purpose on this process.

kindred violet
#

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

latent zealot
#

I call the invoice finalize endpoint just want to pay invoice. I don't do anthing on the invoice.finalize event.

kindred violet
#

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

latent zealot
#

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.

kindred violet
#

yes but what is the logic that you run there?

#

and why did it fail

#

that's the question you should be asking yourself

latent zealot
#

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.

kindred violet
#

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

latent zealot
#

The failure is expected. But the invoice.finalize event affect the invoice status is not.

kindred violet