Skip to content

Fix issue with Adapters.StripeEvent.to_params for an event containing a balance object #690

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

Merged

Conversation

begedin
Copy link
Contributor

@begedin begedin commented Feb 10, 2017

What's in this PR?

Simply put, a balance object does not have an id. Our code was expecting an id, to be stored as part of StripeEvent.object_id. With this change, a nil is allowed, so the adapter will not fail anymore.

We have a discussion in #689 about this fix being enough, or if more is needed.

References

Fixes #689

@joshsmith joshsmith merged commit f753cd9 into develop Feb 10, 2017
@joshsmith joshsmith deleted the 689-fix-event-aving-on-webhook-for-balance-object branch February 10, 2017 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elixir.KeyError: key :id not found in: %{available: [%{amount: 0, currency: "usd", source_types: %{card: 0}}], con...
2 participants