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

Bad matching on card create success, stripe_map_to_struct #131

Closed
begedin opened this issue Nov 21, 2016 · 0 comments
Closed

Bad matching on card create success, stripe_map_to_struct #131

begedin opened this issue Nov 21, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@begedin
Copy link
Contributor

begedin commented Nov 21, 2016

Triggered by creating a card in the following process:

Client creates token using test publishable key, and the following information:

card_number: 4242 4242 4242 4242
card_cvc: 123
exp_year: 2016
exp_month: 11

The stripe request passes and the card is returned, but the mapper fails.

    ** (KeyError) key :response_mapping not found in: %Stripe.Card{address_city: nil, address_country: nil, address_line1: nil, address_line1_check: nil, address_line2: nil, address_state: nil, address_zip: nil, address_zip_check: nil, brand: nil, country: nil, customer: nil, cvc_check: nil, dynamic_last4: nil, exp_month: nil, exp_year: nil, fingerprint: nil, funding: nil, id: nil, last4: nil, metadata: nil, name: nil, recipient: nil, tokenization_method: nil}
        (stripity_stripe) lib/stripe/util.ex:12: Stripe.Util.stripe_map_to_struct/2
        (stripity_stripe) lib/stripe/card.ex:109: Stripe.Card.create/4
@joshsmith joshsmith modified the milestone: 2.0.0-beta.1 Nov 21, 2016
@joshsmith joshsmith added the bug label Nov 21, 2016
@DavidAntaramian DavidAntaramian self-assigned this Nov 22, 2016
DavidAntaramian added a commit that referenced this issue Nov 22, 2016
DavidAntaramian added a commit that referenced this issue Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants