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

Add support for ECE Payment buttons on Pay for Order page #3440

Open
wants to merge 5 commits into
base: add/ece-for-shortcode-checkout
Choose a base branch
from

Conversation

james-allan
Copy link
Contributor

@james-allan james-allan commented Sep 19, 2024

Closes #3411

🛑 This PR is based on the WIP changes in #3436. That PR should be resolved before merging this one.

Changes proposed in this Pull Request:

This PR adds support for processing Express payment button payments via the Pay for Order page.

Screenshot 2024-09-19 at 10 13 42 am
Google Pay and Apple Pay buttons on the Pay for Order

Testing instructions

SETUP

  1. Enable Apple Pay / Google Pay in your Stripe plugin settings.
  2. Enable the ECE feature flag.
    • Update the _wcstripe_feature_ece option. See WC_Stripe_Feature_Flags::is_stripe_ece_enabled()

PAYMENTS

  1. Go to WooCommerce → Orders on your WP Admin dashboard.
  2. Click the Add order button.
  3. Add your current user as the customer.
  4. Add any items.
  5. Calculate totals.
  6. Create the order.
  7. In the order details section click the "Customer payment page" link. (Screenshot)
  8. On the following page note that the Apple Pay and/or Google Pay buttons are shown.
  9. Choose either Google Pay or Apple Pay
  10. Confirm the modal that pops up has correct totals etc.
Order totals Apple Pay screens
Screenshot 2024-09-19 at 10 33 02 am Screenshot 2024-09-19 at 10 28 53 amScreenshot 2024-09-19 at 10 28 47 am
  1. Complete the payment.
  2. Confirm you are redirected to the order received page.
  3. In your Stripe Dashboard confirm the payment is completed and the total matches the order total.

Screenshot 2024-09-19 at 10 40 18 am


  • 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

@james-allan james-allan changed the title Localize scripts for pay for order screen and init payment element Add support for ECE Payment buttons on Pay for Order page Sep 19, 2024
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