-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event charge.succeeded event object #1812
Comments
Thanks for the report! We'll take a look. |
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 |
Thanks for helping.
Model:
|
Thanks for sharing the code snippet. You should be using $event = \Stripe\Webhook::constructEvent(
$payload,
$sig_header,
$this->config->item('stripe')->webhook_endpoint_secret
); And you will receive an event in the shape you expect.
|
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: