-
Notifications
You must be signed in to change notification settings - Fork 58
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
Updating client using source prop is not working #177
Comments
Hi @fernandoiwamoto thanks for sharing! It's totally possible that one property available in the real Stripe API is missing inside localstripe. In your PR, please include links to relevant Stripe API documentation, so we can easily check. PS: ourself in our APP, to update a customer payment method, we use customer update API |
I have my integration with rails and when I create customer as Stripe::Customer.create({ source: source }), I can see the sources object there. But then when I try to update my Customer, it gives me Bad Request as Stripe::Customer.update(stripe_customer_id, { source: card_token }). Using any other props, it works fine.
Copying this code
https://github.com/adrienverge/localstripe/blob/master/localstripe/resources.py#L715
To
https://github.com/adrienverge/localstripe/blob/master/localstripe/resources.py#L721
Works fine.
The text was updated successfully, but these errors were encountered: