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

createToken() returns SyntaxError: Unexpected token o in JSON at position 1 #23

Open
sbkl opened this issue Jul 1, 2018 · 1 comment

Comments

@sbkl
Copy link

sbkl commented Jul 1, 2018

Hi,

I've been using this library for quite a while and never had an issue to create a credit card token with the method createToken(card). The card variable being an object following the documentation:

card: {
    cvc: "123",
    exp_month: "03",
    exp_year: "2021",
    number: "4000 0034 4000 0004"
}

Suddenly, I get the following error:
SyntaxError: Unexpected token o in JSON at position 1

Is this a bug?

Thank you.

@sbkl
Copy link
Author

sbkl commented Jul 2, 2018

Still can't make it work but switched to tipsi-stripe library. I leave this issue open in case this is a real bug for this library.

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