#cgy

1 messages · Page 1 of 1 (latest)

terse swiftBOT
mortal reef
#

Can you share an example event ID (evt_xxx) that the issue occurred?

lethal verge
#

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.

mortal reef
lethal verge
#

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

mortal reef
#

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

GitHub

Java library for the Stripe API. . Contribute to stripe/stripe-java development by creating an account on GitHub.

lethal verge
#

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.

mortal reef
#

API version and stripe-java library version are two different things

lethal verge
#

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

mortal reef
#

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

lethal verge
#

I am sorry our customer just create your Stripe account and they are in Europe, I can't get the acct_xxx

mortal reef
#

To fix this, there are two ways:

  1. 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
  2. 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
GitHub

Java library for the Stripe API. . Contribute to stripe/stripe-java development by creating an account on GitHub.

lethal verge
#

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.

mortal reef
#

Thanks for sharing. In this case, I'd recommend option (2)

lethal verge
#

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?

mortal reef
#

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

lethal verge
#

In this situation I will lost the event

#

Because the old event failed

#

And our system can't charge money into account.

mortal reef
#

Your system should handle such situation that if one is successful, then another failed one should be ignored

lethal verge
#

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?

mortal reef
#

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?
Events will be sent to both old and new webhook endpoints

#

If new one is working, then your system should be able to process it