-
Notifications
You must be signed in to change notification settings - Fork 69
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
Enforce proper return types for methods get_order_from_event_body #9761
Enforce proper return types for methods get_order_from_event_body #9761
Conversation
…methodsfunctions-get_order_from_event_body_intent_id
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work on this PR. I left two comments about the edge cases.
tests/unit/test-class-wc-payments-webhook-processing-service.php
Outdated
Show resolved
Hide resolved
…methodsfunctions-get_order_from_event_body_intent_id
…methodsfunctions-get_order_from_event_body_intent_id
…methodsfunctions-get_order_from_event_body_intent_id
…methodsfunctions-get_order_from_event_body_intent_id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…methodsfunctions-get_order_from_event_body_intent_id
…methodsfunctions-get_order_from_event_body_intent_id
…methodsfunctions-get_order_from_event_body_intent_id
* develop: Wait for Stripe js to load before using it (#9770) Remove redundant stripe payment elements mount for pay for order (#9813) Enforce proper return types for methods get_order_from_event_body (#9761) Update phpcompatibility to develop version to get sniffs for PHP 8 (#9697) Enable ECE Tracks Events when WooPay is disabled (#9793) chore: rename PRB constants to ECE (#9768) Amend changelog entries for release 8.5.1 fix: remove 'test mode' badge from shortcode checkout (#9800) Update version and add changelog entries for release 8.5.1
Fixes #4293
This pull request includes changes to the
WC_Payments_Webhook_Processing_Service
class and its associated tests. The changes focus on improving error handling and ensuring proper return types in the webhook processing service.Changes proposed in this Pull Request
null
orWC_Order
ofget_order_from_event_body
Testing instructions
The
get_order_from_event_body
is used in thesucceded
andfailed
payment intent webhook management. Make sure you are listening to Stripe webhook events in your local serverPayment intent succeeds
4242424242424242
test cardpayment_intent.suceeded
event is processedPayment intent fails
4100000000000019
test cardpayment_intent.failed
event is processednpm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge