I ran into this issue and am looking for a hotfix as well. I have a client that just opened up a Stripe account so the API version is set to 2023-08-16 and can't be downgraded.
While troubleshooting I found that in CRM/Core/Payment/Stripe.php -- setAPIParams() -- we are setting the API version to 2022-11-15. However, that doesn't seem to be working (or perhaps it needs to be explicitly set elsewhere). In my tests I can see in the Stripe interface that the failing API calls have the default API version set instead of the version set with that function.
Yes, I came across the same thing. I seemingly cannot find the right place to set the stripe_version / Stripe-Version API parameter/header anywhere, it always gets ignored or filtered out. Maybe @mattwire knows better, otherwise I'd have to do some more profound debugging.
The current major version is 12. Maybe our problem was fixed in the recent version...Has anyone tested that?
I have tested that, and it doesn't help. It looks like this issue is not related to the Stripe API version.
I have instead now "hot-patched" the library and added the following line HERE:
$defaultHeaders['Stripe-Version'] = '2022-11-15';
With that, it seems to work again for me.
Obviously, that is a hack and not a proper fix, and we need to find out why the requested API version from the extension (e.g. HERE) isn't passed on to the API call, but I'm running out of resources to follow up on this.
I'm having this issue with 6.10 and the former API version (2023-08-16).
I received a message from Stripe saying that we encountered many errors because we don't specify a value for the attribute return_url in the Paymentintent.
Should we upgrade to the last one?