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

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

Open
sid10on10 opened this issue Aug 30, 2022 · 4 comments · May be fixed by #283
Open

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

sid10on10 opened this issue Aug 30, 2022 · 4 comments · May be fixed by #283

Comments

@sid10on10
Copy link

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
Copy link

@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
Copy link
Author

@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
Copy link

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

@kanhayaKy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants