Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

Stripe Plugin Problem

yes- its set in StripePayment_Settings

Given that no mention was made in the how-to that I would need to edit the two scripts to change Basic to Bearer, I wonder if something else was left out or the api changed since the plugin was created.
http://docs.appery.io/tutorials/makin...

One thing that was odd is that one of the mappings was missing after plugin imported. In StripePayment_Settings from TempToken to id I remapped this and do not see any other issues with mappings. I will share with support.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Stripe Plugin Problem

Hi, you use code codereturn "Bearer " + result;/code and if we understand correctly you didn't change anything else in code.
codevar result = EncodeHelper.encode(StripePayment_Settings['apiKey']);/code - is not correct

try the following code
codereturn "Bearer " + StripePayment_Settings['apiKey'];/code

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

Stripe Plugin Problem

The only thing I changed was adding Bearer instead of Basic. The rest was already there in the plugin. I did try "return "Bearer " + StripePayment_Settings['apiKey'];" on the token authorization script, but I must not have changed it on the second authorization script for the charge, and it did not work.

I just now changed both authorization scripts to do it your way and it works now. Thanks for taking a look! I knew a fresh set of eyes would help.

Return to “Issues”