#Ivy_Ray
1 messages · Page 1 of 1 (latest)
Can you share an example evt_xxx ID you're having issues with?
I do not have an access to live dashboard to check event id, so I could catch that only by trying to log it, I need to change code for that
I suspect your test/live webhooks are pinned to different API versions, so conflicting with the SDK version in your integration
I need some kind of object ID to confirm that though
can i get these ids programmably or using curl?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Doesn't even need to be an Event, a Payment Intent – anything. Otherwise I can't check your account logs
it asks for host password
You need to authenticate your API request: https://stripe.com/docs/api/authentication
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So to confirm: event serialisation works in test mode, but not live?
i mean my code works when connected todifferent test account, not test mode of this account
Got it. But yes, SDK version is likely issue: 22.1.0 is pinned to 2022-11-15 ands that account (and inherently webhook) is on 2020-08-27
can i change that account api version to 2022-11-15 using curl?
No, you'd upgrade it via the Dashboard
so I should ask the client to do that because they wouldnt give me the access to live acc
You can configure the webhook version via the API during creation: https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you could create a new webhook endpoint with the 2022-11-15 version to confirm the issue
in that case both webhooks will try to send events?
just different versions of it?
Yes, the shape of the event payloads will match that specific API version
Which is what that version of the SDK expects
maybe i should update existing endpoint to eliminate double requests
just to add version to the link
You can't update the API version of an existing webhook
i see
curl https://api.stripe.com/v1/webhook_endpoints
-u YOUR_SECRET_KEY:
-d "url=https://example.com/my/webhook/endpoint"
-d "api_version=2022-11-15"
something like this?
There's curl examples here: https://stripe.com/docs/api/webhook_endpoints/create?lang=curl
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But yes, should work