#xiaowo_webhooks

1 messages · Page 1 of 1 (latest)

waxen hollyBOT
#

👋 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/1240937493638021151

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

rapid nymph
#

What's the evt_xxx ID of the event you're trying to handle?

brazen panther
#

evt_3PHL5SIC1xDAOwlv01FunzEz

#

the request.body i receive is

#

the Stripe-Signature i recevie is

#

t=1715930505,v1=6f4ea9926acf812e32110781636131b788f3618c7ca99d2ce1b5c626ea882339

rapid nymph
#

What is the excact code you're using in your handler?

brazen panther
rapid nymph
#

Which version of the Java SDK are you using?

#

And is there an example of a test mode evt_xxx that is parsed?

brazen panther
#

test mode example id is: evt_3PHLC9GpnLHZB9v91Cp4Qvoh

#

the sdk version let me check

rapid nymph
#

This is likely related to an API/SDK version mismatch. The events are generated on different accounts, which have different API versions:

  • evt_3PHLC9GpnLHZB9v91Cp4Qvoh is from acct_1P2kPHGpnLHZB9v9 which uses 2023-10-16
  • evt_3PHL5SIC1xDAOwlv01FunzEz is from acct_1PGcN4IC1xDAOwlv which uses 2024-04-10
#

This is important because major SDK versions are fixed to a specific API version, and events generated with a different API version won't be able to be deserialized

#

So likelihood is you're using an SDK verison that is fixed to 2023-10-16 (which is why the test account/events work)

brazen panther
#

the java sdk version is 1.8.0_362

rapid nymph
#

Are both of these accounts using the same Stripe integration/code?

brazen panther
#

now what should i do. can you mind be more specific.

rapid nymph
#

Then I guess you've only just created acct_1PGcN4IC1xDAOwlv and that's why it has a different API version (they use the latest on creation)

rapid nymph
# brazen panther now what should i do. can you mind be more specific.

You should write in to our team and we can downgrade acct_1PGcN4IC1xDAOwlv to use the same API version as the other account and that will ensure your existing code works for both: https://support.stripe.com/contact/email?topic=api_integration

brazen panther
#

Okay, I'll try contacting your team first

rapid nymph
#

Yep, unfortunately you cannot downgrade the API version on the account – only we can do that

brazen panther
#

ok, thank you very much

#

I would like to confirm again, should I lower the version of acct1PGcN4IC1xDAOwlv to October 16, 2023?

rapid nymph
#

Correct, yes. You can reference this Discord thread URL in your email for the context

brazen panther
#

OK!!!!

rapid nymph
#

No problem, glad I could help!