razorpay / razorpay-python

Razorpay Python SDK
https://pypi.python.org/pypi/razorpay
MIT License
151 stars 80 forks source link

AttributeError: 'Subscription' object has no attribute 'update' #224

Open sid10on10 opened 1 year ago

sid10on10 commented 1 year ago

Razorpay SDK is giving the error while updating the subscription. Documentation Reference -> https://razorpay.com/docs/api/payments/subscriptions/#update-a-subscription

The update method is not found in the subscription module.

Solution - Change the edit method of the subscription module to the update to match the documentation.

kkyusufk commented 1 year ago

@sid10on10 Thanks for pointing this out. I will open a PR for this to fix this issue. Seems like the solution should be to rename the function to update in order to maintain the standard we follow across all languages.

sid10on10 commented 1 year ago

@kkyusufk I want to start contributing to this SDK, maybe it would be a good start to fix this issue. I am opening a PR for the same.

ydidwania commented 1 year ago

@kkyusufk Any update on this? Seems like a pretty standard fix

kanhayaKy commented 3 weeks ago

@kkyusufk Any update on this? I'm still getting this.