Skip to content

Update Customer param account_balance to balance#50

Merged
confact merged 1 commit intoconfact:masterfrom
paula4230:update-stripe-customer-param
Sep 27, 2022
Merged

Update Customer param account_balance to balance#50
confact merged 1 commit intoconfact:masterfrom
paula4230:update-stripe-customer-param

Conversation

@paula4230
Copy link
Contributor

Passing account_balance to Stripe::Customer.update returns the following error: Received unknown parameter: account_balance (Stripe: :Error) in lucky exec.

I've tested the update method using irb and it gave the same error when account_balance is used, but after changing it to balance, the code worked and the test customer credit balance on the Stripe dashboard was updated accordingly.

Screen Shot 2022-09-26 at 3 32 10 PM

Screen Shot 2022-09-26 at 3 32 51 PM

Screen Shot 2022-09-26 at 3 33 08 PM

Screen Shot 2022-09-26 at 3 33 54 PM

@confact
Copy link
Owner

confact commented Sep 27, 2022

Thank you so much for the PR @paula4230. LGTM!

@confact confact merged commit 0ec3889 into confact:master Sep 27, 2022
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 this pull request may close these issues.

2 participants