Skip to content
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

Implementing the order wrapper class in abstract classes and webhook handler #4106

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from

Conversation

wjrosa
Copy link
Contributor

@wjrosa wjrosa commented Mar 20, 2025

First PR: #4080

Changes proposed in this Pull Request:

This PR is another in a series of implementations of the proposal of #3654. This iteration implements the order wrapper class on our abstract classes and on the webhook handler class.

I had to disable some deprecation notices on replaced methods so tests could pass. Those will be re-enabled once all references get updated.

Testing instructions

Code review. Check if the tests are still passing. A slight smoke test on the checkout pages for regular payment methods would be nice: enabling methods and trying to make purchases with them on both legacy and new checkout experiences, especially voucher payment methods (Boleto, Multibanco, Oxxo) and webhook calls.


  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Changelog entry

  • This Pull Request does not require a changelog entry. (Comment required below)
Changelog Entry Comment

Comment

Post merge

@wjrosa wjrosa marked this pull request as ready for review March 24, 2025 12:25
@wjrosa wjrosa self-assigned this Mar 24, 2025
@wjrosa wjrosa requested review from a team and Mayisha and removed request for a team March 24, 2025 13:00
@wjrosa wjrosa changed the title Implementing the order wrapper class in abstract classes Implementing the order wrapper class in abstract classes and webhook handler Mar 24, 2025
@wjrosa wjrosa requested a review from Copilot March 27, 2025 02:01
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (5)
  • changelog.txt: Language not supported
  • includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php: Language not supported
  • includes/abstracts/abstract-wc-stripe-payment-gateway.php: Language not supported
  • includes/class-wc-stripe-webhook-handler.php: Language not supported
  • readme.txt: Language not supported

Copy link

github-actions bot commented Apr 1, 2025

📈 PHP Unit Code Coverage Report

Package Line Rate Health
includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php 23%
includes/abstracts/abstract-wc-stripe-payment-gateway.php 48%
includes/class-wc-stripe-webhook-handler.php 31%
Summary 44% (6972 / 15857)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant