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

Amazon Pay ECE: Subscription - Pre-order Upfront product compatibility #3876

Open
12 tasks
hsingyuc opened this issue Feb 12, 2025 · 2 comments
Open
12 tasks
Assignees
Labels
type: bug The issue is a confirmed bug.

Comments

@hsingyuc
Copy link
Contributor

hsingyuc commented Feb 12, 2025

Objective
If Amazon Pay express checkout is enabled and supported, shoppers should be able to use Amazon Pay to complete a successful purchase with Subscription - Pre-order Upfront products. We are getting an error The provided setup_future_usage (off_session) does not match the setup_future_usage from the provided confirmation_token (null). Try confirming with a Payment Intent that is configured to use the same parameters as the ConfirmationToken from /checkout.

Acceptance criteria

When Amazon Pay express checkout is enabled and supported:

  • customers should be charged upfront for the pre-order subscription product, and the subscription should be created with the specified pre-order availability date.
  • The subscription status should be "Pre-order".
  • The pre-order should be active.
  • Customers should be able to see subscription and pre-order details in the "My Account" section.
  • The subscription renewal dates should be as per subscription settings.
  • Subscription Next payment date should be displayed after the pre-order get completed
  • Customers and merchants should receive an appropriate email regarding their pre-order subscription.
  • The next subscription renewal payment date should be displayed after the pre-order gets completed
  • Same for the Variable Subscription - Upfront product

Others

  • No regression for other pages, e.g. block cart, block checkout, etc.
  • No regression for other express checkout methods.
  • Relevant documentation have been added or updated.

To reproduce:

  1. With the feature flag off -- this is the default -- verify that Amazon Pay is not available in Stripe settings or in any store page.
  2. Turn the feature flag on, by setting the _wcstripe_feature_amazon_pay option to yes. OR return 'yes' here
  3. Verify that Amazon Pay is now available in Stripe settings.
  4. Goto Woocommerce > products > Create a Subscription Product ( or Variable Subscription product )
  5. Navigate the pre-order tab and enable pre-order
  6. Add pre-order availability date
  7. Select when to charge > upfront product
  8. Go to the shop page and check out with Amazon Pay

Notes

@hsingyuc hsingyuc added type: task The issue is an internally driven task (e.g. from another A8c team). type: bug The issue is a confirmed bug. and removed type: task The issue is an internally driven task (e.g. from another A8c team). labels Feb 12, 2025
@hsingyuc
Copy link
Contributor Author

I'm closing this issue because I can't reproduce it anymore.

@hsingyuc
Copy link
Contributor Author

I can reproduce the issue while testing Variable Subscription - Pre-order Upfront product

@hsingyuc hsingyuc reopened this Feb 12, 2025
@malithsen malithsen self-assigned this Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants