#jj_1325

1 messages ยท Page 1 of 1 (latest)

jovial inletBOT
orchid light
#

Hello! I wish I could help, but this chat is focused on developers and technical questions. Our support team will be able to assist you with decline questions better than I can: https://support.stripe.com/contact/email

ashen isle
#

Ya but I'm developer toooo

orchid light
#

Okay, do you have a technical question?

ashen isle
#

When customer pay for subscription after using stripe webhook I add some subscription details like start date,subscription status, end date in our database.

But problem is stripe send invoice.payment_failed and invoice.payment_succeded both event even subscription payment is successfully completed.

orchid light
#

Sound like they tried to pay it once, failed, and then tried again and it worked?

ashen isle
#

So I write logic in both event first check subscription details present in our db if yes than update with stripe subscription else save as a new entry.

But stripe send invoice.payment_failed and invoice.payment_succeded event for one subscription process some time both webhook excuate and add duplicate entry in my db

ashen isle
orchid light
#

Can you give me the ID of those two Events so I can take a look?

ashen isle
#

Give me 5 min

#

Hey current my laptop not with me so I don't able to provide id.

#

But it happens in every subscription payment

orchid light
#

I would need to see an example to provide further help. Do you have the Subscription or Invoice IDs?

ashen isle
#

If I pay with insufficient balance stripe testing card that time stripe send me invoice.payment_failed event two time.

#

evt_1NdSrSSJ4AERD691hkPcIGxO

orchid light
#

That doesn't appear to be a valid Event ID, can you confirm?

ashen isle
#

That is test mode event id

orchid light
#

It's not working. Are you sure there's not a missing character or something like that?

ashen isle
#

Ya

orchid light
#

Can you give me a different Event ID?

ashen isle
#

Stripe send below webhook event for one process

orchid light
#

I need the ID of one of those Events.

ashen isle
#

You can see the stripe send invoice.payment_failed and invoice.payment_succeded both event for one process.

orchid light
#

I can't see that, that's just a list of Events with no IDs and no context.

ashen isle
#

evt_1NdSrSSJ4AERD691hkPcIGx0

orchid light
#

That one also doesn't work. Are you copying and pasting these, or typing them in manually?

ashen isle
#

Copy and paste

orchid light
#

That's really odd. Hang on...

#

When did evt_1NdSrSSJ4AERD691hkPcIGx0 occur?

ashen isle
#

10/Aug/2023

orchid light
#

Oh. Can you give me a more recent one?

#

Something from the last seven days?

ashen isle
#

I don't have because my lap not with me

#

I provide above event id using copy to image was taken ss on my phone

orchid light
#

It's very difficult to help without being able to see an example. Can you return when you have access to your laptop?

ashen isle
#

Tomorrow morning ๐ŸŒ„

orchid light
#

Sounds good. Come back and ask in #dev-help and we'll be able to help then!

ashen isle
#

Ok but are you available ๐Ÿ‘€

orchid light
#

We'll be here tomorrow morning, too.

ashen isle
#

Ok great ๐Ÿ‘Œ. Good night ๐Ÿ˜ด

#

Please don't close this thread

orchid light
#

We close idle threads, so this will be closed, but it won't go away.

#

You can view closed threads at any time.

#

You can find them by searching for them in the top right.

ashen isle
#

If you are not available tomorrow so i have to explain again my problem and it's difficult

jovial inletBOT
orchid light
#

It should be easy to explain if you have a more recent ID.

ashen isle
#

@orchid light hey

#

Check evt_1Nrc13SJ4AERD69le5pvBQpf

#

@orchid light

fierce burrow
#

Rubeus had to step away but I can take a look

#

Okay I can see that event. And is the question is why you were sent this event twice?

#

It looks like that event only occurred once but you have two CLI webhook endpoints and we sent the event once to each endpoint