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

Free trial subscriptions require manual renewal when ordered from the block checkout #1964

Closed
ricardo opened this issue Sep 23, 2021 · 3 comments
Assignees
Labels
component: blocks Cart and checkout blocks component: subscriptions Issues related to Woo Subscriptions

Comments

@ricardo
Copy link
Member

ricardo commented Sep 23, 2021

Describe the bug
The issue was initially referenced in this comment.

For some reason, when the order contains a free subscription, the _requires_manual_renewal post meta is set to true, and the payment method is not set for the subscription.

The goal of this issue is to track down the problem and see if we can fix it or we should open another issue in the subscriptions or in the Woo Gutenberg blocks repositories.

To Reproduce

  1. Ensure you have WooCommerce Subscriptions and WooCommerce Blocks installed.
  2. Create a free trial subscription product.
  3. As a shopper, add the free trial subscription to the cart.
  4. Go to the blocks checkout page and complete the order.
  5. As a merchant, go to WooCommerce > Subscriptions and notice the subscription says "Via Manual Renewal".

Expected behavior
Instead of manual renewal, the payment method should be used.

@ricardo ricardo added component: blocks Cart and checkout blocks component: subscriptions Issues related to Woo Subscriptions labels Sep 23, 2021
@ricardo ricardo self-assigned this Sep 25, 2021
@ricardo
Copy link
Member Author

ricardo commented Sep 25, 2021

The same issue happens in WCPay with the same repro steps.

@ricardo
Copy link
Member Author

ricardo commented Sep 28, 2021

I tracked down the issue last week and found out that the blocks API is not setting the payment method metadata if the order doesn't require payment (reference).

This causes free trial subscriptions and possibly other types of off-session charges like pre-orders to require manual payments.

The resolution for this issue needs to be implemented in WooCommerce Blocks.

@ricardo
Copy link
Member Author

ricardo commented Sep 28, 2021

Closed in woocommerce/woocommerce-blocks#4854

@ricardo ricardo closed this as completed Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: blocks Cart and checkout blocks component: subscriptions Issues related to Woo Subscriptions
Projects
None yet
Development

No branches or pull requests

1 participant