razorpay / razorpay-woocommerce-subscriptions

Razorpay WooCommerce Subscriptions Plugin
GNU General Public License v2.0
6 stars 7 forks source link

Feature requests #65

Open ramshengale opened 9 months ago

ramshengale commented 9 months ago

The plugin currently lacks a bunch of core features and has a bunch of bugs. Would request the team to please try to build these. It'll be helpful for everyone using the plugin.

  1. Allow switching between subscription plans aka upgrades / downgrades. It's currently not possible and the user gets a generic error. I think this might be technically challenging for UPI but should be easy to do in case of cards.

  2. Fix the notices produced in error logs because of mismatch in data received on webhook URL and the code that handles it. E.g.

    [14-Nov-2023 16:31:14 UTC] PHP Warning:  Undefined array key 0 in /var/www/website.com/wp-content/plugins/razorpay-subscriptions-for-woocommerce/razorpay-subscriptions.php on line 294
    [14-Nov-2023 16:33:42 UTC] PHP Warning:  Undefined array key 0 in /var/www/website.com/wp-content/plugins/razorpay-subscriptions-for-woocommerce/razorpay-subscriptions.php on line 294
    [14-Nov-2023 20:01:30 UTC] PHP Warning:  Undefined array key "payment" in /var/www/website.com/wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php on line 94
    [14-Nov-2023 20:01:30 UTC] PHP Warning:  Trying to access array offset on value of type null in /var/www/website.com/wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php on line 94
  3. If someone cancels a auto-mandate from UPI app, that cancels the subscription plan. Instead of this the subscription status should change to Pending Cancellation till the time subscription was already paid.

  4. If we want to give some discount on first month and continue full pricing for rest of the months, that's currently not possible. The plugin sets non-discounted pricing for all months.

  5. When someone pays using UPI, the payment first shows as Failed. But after 5 - 10 min when the webhook call happens from Razorpay, then the payment is recorded and subscription gets Active.

  6. With HPOS, renewal payments for other payment gateways are failing. A Fatal Error errors in Action Scheduler as follows:

Fatal error: Uncaught Error: Call to undefined method Razorpay\Api\Collection::resume()
in /var/www/website.com/wp-content/plugins/razorpay-subscriptions-for-woocommerce/includes/razorpay-subscriptions.php on line 451

Note that we use Stripe for accepting USD subscription payments and have none of these issues with their plugin. So it's quite frustrating to only face these issues with your plugin.

This hampers our regular day-to-day activity a lot because of all the complaints we get from our customers because of these issues.

ramshengale commented 8 months ago

Any update on this? Is anyone looking into these issues? Would be great if you can add anybor all of these features in the plugin.