razorpay / razorpay-python

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

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

Open sid10on10 opened 2 years ago

sid10on10 commented 2 years 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 2 years 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 2 years 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 2 years ago

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

kanhayaKy commented 4 months ago

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