#ahemadabbas_webhooks

1 messages ยท Page 1 of 1 (latest)

manic stormBOT
#

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

๐Ÿ“ 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.

storm granite
#

๐Ÿ‘‹ happy to help

smoky thunder
#

Yes, please

storm granite
smoky thunder
#

Yes, i read that but i'm getting empty array when i try to call invoice payments api with the failed payment intent

storm granite
#

would you mind sharing the request ID?

smoky thunder
#

Sorry, can you please specify which request id you need?

#

req_rZZYWM979sNFwz

#

I created checkout session and made failed payment

storm granite
#

I mean the one where you're getting an empty array

#

for the invoice payments api

smoky thunder
#

Yes, please allow me few minutes

#

req_Li0OrQ1f5oGFOx

storm granite
#

but the subscription wasn't created and the first invoice wasn't created either

#

in Checkout Sessions the subscription doesn't get created until the payment succeeds

smoky thunder
#

But in the previous api version it was getting created

storm granite
#

yes because we changed the behavior

smoky thunder
#

But it was not mentioned in the change log

Also can you please guide me any other way?

storm granite
#

why do you need the invoice if the subscription isn't created

#

in all cases you shouldn't be listening to the charge.* events

#

especially for Checkout Sessions and Subscriptions

#

charges is the lowest API level and wouldn't get you the state that you would actually need

smoky thunder
smoky thunder
storm granite
#

but the customer is already on session when this happens

#

you don't need to send them an email