Skip to content

Conversation

joshtwc
Copy link

@joshtwc joshtwc commented Feb 12, 2025

Fixes #

Changes proposed in this Pull Request:

Webhook data for charges has key data, this change just checks if $charges is array then gets the data from the sub-key 'data' instead.

If the webhook changes to have charges as neither an object (with key data) or an array of charges, it may throw an error.

Testing instructions

Forward webhooks to your site, then complete a payment with the gateway. When payment_intent.succeeded webhook sends, it should not give a fatal error.


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Added changelog entry in both changelog.txt and readme.txt (or does not apply)
  • Tested on mobile (or does not apply)

Post merge

@github-actions github-actions bot added the Stale label Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant