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

Hiding actions for pending Amazon Pay orders #3843

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

Conversation

wjrosa
Copy link
Contributor

@wjrosa wjrosa commented Feb 5, 2025

Fixes #3820

Changes proposed in this Pull Request:

Amazon Pay takes a while to be confirmed since it uses confirmation tokens. To avoid confusion and issues with the shopper trying to pay for it again, we are hiding the action buttons ("Pay" and "Cancel").

Testing instructions

  • Checkout and build this branch on your test environment (tweak/hiding-actions-for-pending-amazon-pay-orders)
  • Connect your Stripe account
  • Hardcode is_amazon_pay_available to true
  • Enable Amazon Pay in settings (wp-admin/admin.php?page=wc-settings&tab=checkout&section=stripe&panel=methods)
  • Access your test store by a public-facing address as a shopper
  • Add any product to your cart
  • Complete the purchase using Amazon Pay
  • On the order confirmation page, make sure you don't see the "pay" and "cancel" actions anymore:
Screenshot 2025-02-06 at 09 25 13
  • 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

@wjrosa wjrosa self-assigned this Feb 5, 2025
@wjrosa wjrosa marked this pull request as ready for review February 6, 2025 12:17
@wjrosa wjrosa requested review from a team and diegocurbelo and removed request for a team February 6, 2025 12:28
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.

Amazon Pay ECE: hide actions in order confirmation page
1 participant