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

Error en documentación #22

Open
ArturoBarrios616 opened this issue Mar 7, 2023 · 0 comments
Open

Error en documentación #22

ArturoBarrios616 opened this issue Mar 7, 2023 · 0 comments

Comments

@ArturoBarrios616
Copy link

Al usar la instrucción

subscription = customer.subscriptions.all()[0]
subscription.delete()

arroja un error KeyError 0
Lo cambié a

subscriptions = customer.subscriptions.all()
     subscription = subscriptions['data'][0]
     subscription.delete()

Y funcionó

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

No branches or pull requests

1 participant