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.
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.