Page 1 of 3

Stripe Card Token no longer works.

Posted: Tue May 19, 2015 12:53 am
by Jon Haider

A few weeks ago the stripe plugin was working fine, but now the "StripePayment_CardTokenService" returns:
pre
{
"status":400,
"uri":"https://api.stripe.com/v1/tokens",
"response":{
"error":{
"type":"invalid_request_error",
"message":"You must supply either a card, customer, or bank account to create a token."
}
}
}
/pre

Even with all of the information properly provided in the service Test tab (card number, exp month, exp year, and cvc).

Now, if I look at the stripe dashboard log, I can see that a few weeks ago, the token request was successful, and the successful log record looks like this:
pre
{
card:
{
number: "*********4242"
name: "John Smith"
cvc: ""
exp_year: "17"
exp_month: "04"
}
}
/pre

But now it's interpreting it as:
pre
{
card%5Bnumber%5D: "4242424242424242"
card%5Bexp_month%5D: "04"
card%5Bexp_year%5D: "2017"
card%5Bcvc%5D: "123"
card%5Bname%5D: "Something"
}
/pre

I think that Stripe is not recognizing that the code card[number]/code is part of the card JSON object...

Is anyone else experiencing this problem?


Stripe Card Token no longer works.

Posted: Tue May 19, 2015 9:56 am
by Benoit

Yes, I do have the same problem and I don't know how to solve it for the moment.
Thanks for your topic


Stripe Card Token no longer works.

Posted: Tue May 19, 2015 2:43 pm
by Evgene Karachevtsev

Hello!

We forwarded your request to our development team, they are investigating this issue. We'll get back to you with the update.


Stripe Card Token no longer works.

Posted: Tue May 19, 2015 9:12 pm
by Jon Haider

Thank you Evgene!
I've also opened a priority support ticket from my end to track the resolution.

:D


Stripe Card Token no longer works.

Posted: Wed May 20, 2015 12:09 pm
by Evgene Karachevtsev

Hello!

Could you please clarify do you get this issue when you test the service in preview in a browser (not a "test" function in the builder)?


Stripe Card Token no longer works.

Posted: Wed May 20, 2015 12:24 pm
by Benoit

Hello,

From my side, I am getting this issue in the browser on computer and mobile.

Thanks,

Benoit


Stripe Card Token no longer works.

Posted: Wed May 20, 2015 1:26 pm
by Illya Stepanov

Hello -

Is it possible to share your app with us, and tell us the app name.

And please clarify is it works if you test in a window without mobile -frame?


Stripe Card Token no longer works.

Posted: Wed May 20, 2015 4:00 pm
by Benoit

Hello,

Thanks for your reply. The app is now shared with support and its name is Project Ert4.

It did not work neither on Firefox and Chrome browser on my macbook or iphone.

Thanks a lot,


Stripe Card Token no longer works.

Posted: Wed May 20, 2015 4:03 pm
by Jon Haider

It occurs when you test the service in the browser as well as in the builder "test" function. Both.
If you quickly follow the Stripe tutorial (even the one updated in the last couple of weeks), once you install the Stripe plugin, immediately add the API key and test, and you'll see that it will not return a successful request fr a token anymore.


Stripe Card Token no longer works.

Posted: Wed May 20, 2015 4:04 pm
by Jon Haider

It does occur for me if I test it in mobile without mobile frame as well, and also if testing from browser on mobile device.

My app name is Totes (which has been shared with appery a while ago).