#jj_1325
1 messages ยท Page 1 of 1 (latest)
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
Ya but I'm developer toooo
Okay, do you have a technical question?
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.
Sound like they tried to pay it once, failed, and then tried again and it worked?
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
Not I testing this scenario with 4242 4242 4242 card
Can you give me the ID of those two Events so I can take a look?
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
I would need to see an example to provide further help. Do you have the Subscription or Invoice IDs?
If I pay with insufficient balance stripe testing card that time stripe send me invoice.payment_failed event two time.
evt_1NdSrSSJ4AERD691hkPcIGxO
That doesn't appear to be a valid Event ID, can you confirm?
That is test mode event id
It's not working. Are you sure there's not a missing character or something like that?
Ya
Can you give me a different Event ID?
Stripe send below webhook event for one process
I need the ID of one of those Events.
You can see the stripe send invoice.payment_failed and invoice.payment_succeded both event for one process.
I can't see that, that's just a list of Events with no IDs and no context.
evt_1NdSrSSJ4AERD691hkPcIGx0
That one also doesn't work. Are you copying and pasting these, or typing them in manually?
Copy and paste
10/Aug/2023
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
It's very difficult to help without being able to see an example. Can you return when you have access to your laptop?
Tomorrow morning ๐
Ok but are you available ๐
We'll be here tomorrow morning, too.
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.
If you are not available tomorrow so i have to explain again my problem and it's difficult
It should be easy to explain if you have a more recent ID.