[Backport to release/10.7] PayPal Standard: Fix webhook handling for invalid links#63886
Conversation
* catch throwable * type safety for links array * remove exception * Add changefile(s) from automation for the following project(s): woocommerce * fix lint * return generic message
Testing GuidelinesHi @Mayisha , Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
|
Hi @woocommercebot! Your PR contains REST API changes. Please consider updating the REST API documentation if your changes affect the public API. Changed API files: |
This PR is a cherry-pick of #63834 to
release/10.7.Original PR Description
Submission Review Guidelines:
Changes proposed in this Pull Request:
resource.linksis normalized before callingauthorize_or_capture_payment(). Missing links defaults to an empty array. This avoids a PHP TypeError from the strict array $links parameter.Closes WOO6-49
How to test the changes in this Pull Request:
Milestone
Automatically assign milestone for the next WooCommerce versionChangelog entry
Automatically create a changelog entry from the details below.This Pull Request does not require a changelog entry. (Comment required below)Changelog Entry Details
Significance
Type
Message
Fix PayPal Standard webhook handling for invalid links.
Changelog Entry Comment
Comment