#cgy
1 messages · Page 1 of 1 (latest)
Can you share an example event ID (evt_xxx) that the issue occurred?
And my customer upgrade to the latest one API version on Stripe Dashborad, still get false. And we can't upgrade to the certain API verson. It has been two weeks. I reached for you and your support team. But it seems there is nothing you can do ? Our service has suspende for two weeks and invove many countries customers.
"evt 30612dGB180qmQzh051X0HLq
I am not sure is this one. Because the o and 0 looks a little bit same. Our customer gived me this screen shot it is a little bit blur.
Does it work before? Can you try downloading the example code here and try if it works? https://stripe.com/docs/webhooks/quickstart?lang=java
But yesterday my colleague told me in another project on of our customer use the laest one API version but it succeed. So I am not sure is the version of API cause this problem.
Yes the webhook works just before our new upgrade
I just use your example to do in my code. Last year and this year before my upgrade
It all wroks fine.
My I send you a picture of my code?
May I
In stripe-java 22.0.0, Stripe API version 2022-11-15 is used: https://github.com/stripe/stripe-java/blob/v22.0.0/src/main/java/com/stripe/ApiVersion.java#L5
The Webhook endpoint version must be in the same version in order for it to work. Can you share the Webhook endpoint ID (we_xxx), so that I can check the version used? https://dashboard.stripe.com/test/webhooks
2023-10-160
This is our customer version
He upgrade to this one. Before is 2020-08-27
I told him to upgrade to 22 but he said on Stripe Dashbord it can only upgrade. The worst is he can't rollback to 20 after 72 hours.
API version and stripe-java library version are two different things
it can only upgrad to the lates one
So my problem is : is the API version not match cause this problem?
And how can I fix it
Another project use library 22.0.0 and API version 2023-10-16 but it works
A little bit strange
Another project use library 22.0.0 and API version 2023-10-16 but it works
Can you share the account ID (acct_xxx) of another project? Account API version and Webhook API version can be different
So my problem is : is the API version not match cause this problem?
It's likely the case
I am sorry our customer just create your Stripe account and they are in Europe, I can't get the acct_xxx
To fix this, there are two ways:
- Upgrade stripe-java library to the latest v24.2.0 that uses API version 2023-10-16: https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/ApiVersion.java#L5
- Create a new Webhook endpoint with API version 2022-11-15 to match v22.0.0: https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
I just create a test account yesterday and finde that a new account's API version is the latest one
Ok, let me try to create a new Webhook.
Upgrade our library is unacceptable.
Thanks for sharing. In this case, I'd recommend option (2)
But you say create a new webhook?
What about the old one
And the events associate with the old webhook.
Is there an update request not post request?
After creating the new Webhook endpoint and ensure it works, the old Webhook endpoint can be deleted
Webhook API version can't be updated after creation
In this situation I will lost the event
Because the old event failed
And our system can't charge money into account.
Your system should handle such situation that if one is successful, then another failed one should be ignored
No, what I mean is: if I create a new Webhook, the new one won't send the old one's event. And the old one send event still get false right?