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

How does one use this module with Stripe Checkout? #14

Open
kevinwo opened this issue Feb 18, 2017 · 0 comments
Open

How does one use this module with Stripe Checkout? #14

kevinwo opened this issue Feb 18, 2017 · 0 comments

Comments

@kevinwo
Copy link

kevinwo commented Feb 18, 2017

If I use Checkout to pay, I receive a token from Stripe to send to my server in order to complete the payment. I see commerce_billing.ex only has an authorize(worker, amount, card, opts \\ []) method, while stripe.ex seems to mention an ID as an option in authorize(amount, card_or_id, opts) method. I tried passing my token from Checkout (e.g. tok_1234567890) into the former authorize method, but receive an "invalid_request" back from Stripe.

What is the purpose of the "id" in card_or_id, and is it possible to use the Checkout token to complete payment with commerce_billing?

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

1 participant