woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

Preserve subscription renewal processing when switching Subscriptions Mode or disabling gateway (680) #2394

Closed Dinamiko closed 2 months ago

Dinamiko commented 3 months ago
  1. When either Vaulting or the gateway is disabled, renewal payments for existing subscriptions will not process correctly.
  2. When the Subscriptions Mode setting in PayPal gateway is not configured the same way as an active subscription, it will fail to renew.

Steps To Reproduce

1.1 PayPal gateway disabled

1.2 ACDC gateway disabled

2.1 Subscription Mode switch from PayPal Vaulting to PayPal Subscriptions

2.2 Subscription Mode switch from PayPal Subscriptions to PayPal Vaulting

2.3 Subscription Mode switch from PayPal Vaulting to Disable PayPal for subscriptions

Possible Cause

  1. No WC Subscriptions support is added when PayPal gateway is disabled. Same happens for Credit card gateway.

Suggested solution

  1. Do not conditionally add gateway support based on gateway settings.

Acceptance Criteria