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

Customer.update_subscription() resets account_balance #86

Closed
gtaylor opened this issue Jul 3, 2014 · 2 comments
Closed

Customer.update_subscription() resets account_balance #86

gtaylor opened this issue Jul 3, 2014 · 2 comments

Comments

@gtaylor
Copy link

gtaylor commented Jul 3, 2014

We're on API version 2013-07-05 with stripe 1.18.0. Here's what we can do to reproduce. This example customer has a non-zero account_balance going into this:

    customer = stripe.Customer.retrieve(
        subscription_id,
        api_key=self._api_key,
    )

    # Make the changes. The response we get back from this is missing quite
    # a bit of data, so discard it.
    customer.update_subscription(plan=plan_id, card=credit_card)

    # Re-query the customer so we can get the full, up-to-date values.
    customer = stripe.Customer.retrieve(
        subscription_id,
        api_key=self._api_key,
        expand=['default_card'],
    )

At the end of this, we end up with an account balance of 0 again. This is obviously a pretty big disruption for us. Our tests started failing within the last week, so this appears to be a recent API breakage.

@metcalf
Copy link
Contributor

metcalf commented Jul 7, 2014

Greg, it looks like this may be an API bug rather than a bug in the stripe-python library. I saw that you also reported the issue to support@stripe.com and we're working with you on that thread. I'm going to close this but feel free to reopen if you believe it is in fact related to stripe-python rather than the API itself.

@metcalf metcalf closed this as completed Jul 7, 2014
@metcalf
Copy link
Contributor

metcalf commented Jul 7, 2014

(also, sorry for the trouble on 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

No branches or pull requests

2 participants