#sfd6088
1 messages · Page 1 of 1 (latest)
hello! You can explicitly define the Stripe API version used when initialize stripe-php : https://github.com/stripe/stripe-php/wiki/Migration-guide-for-v12#option-2-explicitly-specify-an-older-api-version-when-initializing-stripe-php
You can also create a test webhook that uses a API version : https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
ok I already have the test webhook, if i use the new account with the correct version of the webook will it work fine? I mean you confirm that the signature changed in these years?
thank you i will test asap
If you're getting a Signature Verification error, have you checked if the webhook secret you're using is correct?
yeah the others works fine, same call
every webhook endpoint you set up has a different webhook secret
i checked the keys, and they are the same
HTTP_STRIPE_SIGNATURE
the only problem is this check
i saved the ones stripe send for the older versions and the one they send for the new one and they are very diff
t=...,v1=....,v0=.... the new one
t=...,v1=.... the older
maybe try setting up a webhook endpoint pinned to the older version and see if that works then
how can i do that?
any doc i can refer to?
No, there's no doc. It's a single API call and you pass in the API version here when creating the webhook: 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.
oh ok, instead of using the dashboard webhook i ask for one
You can't create a webhook pinned to a specific API version via the Dashboard, it's only possible via the API