You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get some new features I upgraded from stripe-php v13.18.0 to v.16.5.0. Now have issue with charge.succeeded event. My webhook expected event object like this:
Instead of Charge object there is a StripeObject and that breaks my code that expects Charge object.
Reading breakings in changelog I didn't notice any such change.
I'm afraid I'll have some other issues like this one in other parts of application. Where can I find such breaking changes? When this change in stripe-php occurred?
To Reproduce
The code in webhook controller should call method like this with type hinting:
public function charge_succeeded(\Stripe\Charge $charge)
{
}
Get event charge.succeeded in v. stripe-php v13.18.0 env
copy event id
Using Stripe CLI resend event in installation with stripe-php v16.5.0. stripe events resend <event_id>
Error 500 should occurre
Expected behavior
Charge object should be inside Event object instead StripeObject or which one leatest stripe-php version work by returning Charge instead StripeObject
Code snippets
OS
Windows 11
PHP version
PHP 7.0.33
Library version
stripe-pho 16.5.0
API version
2022-11-15, same with 2024-12-18.acacia
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hi @blagi, sorry for the delay. Could you provide a snippet of how you are processing the webhook? I have created my own webhook endpoint and have not been able to reproduce, I am getting the correct \Stripe\Charge.
Describe the bug
To get some new features I upgraded from stripe-php v13.18.0 to v.16.5.0. Now have issue with charge.succeeded event. My webhook expected event object like this:
But got event object wit charge object replaced with Stripe object:
Instead of Charge object there is a StripeObject and that breaks my code that expects Charge object.
Reading breakings in changelog I didn't notice any such change.
I'm afraid I'll have some other issues like this one in other parts of application. Where can I find such breaking changes? When this change in stripe-php occurred?
To Reproduce
Expected behavior
Charge object should be inside Event object instead StripeObject or which one leatest stripe-php version work by returning Charge instead StripeObject
Code snippets
OS
Windows 11
PHP version
PHP 7.0.33
Library version
stripe-pho 16.5.0
API version
2022-11-15, same with 2024-12-18.acacia
Additional context
No response
The text was updated successfully, but these errors were encountered: