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

wrong key for Stripe::PaymentMethod #798

Open
seb-sykio opened this issue Nov 2, 2021 · 1 comment
Open

wrong key for Stripe::PaymentMethod #798

seb-sykio opened this issue Nov 2, 2021 · 1 comment

Comments

@seb-sykio
Copy link

last4: params.dig(:card, :number)&.[](-4..) || '3155',

`last4: params.dig(:card, :number)&. || '3155',

should be

last4: params.dig(:card, :last4)&. || '3155',`

@TastyPi
Copy link
Collaborator

TastyPi commented Nov 2, 2021

Why? card.number is a supported parameter of the API, card.last4 is not https://stripe.com/docs/api/payment_methods/create

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