Page 2 of 2

Stripe Plugin Problem

Posted: Mon Aug 19, 2013 11:22 am
by Sean Kelley

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.


Stripe Plugin Problem

Posted: Mon Aug 19, 2013 7:53 pm
by Maryna Brodina

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


Stripe Plugin Problem

Posted: Mon Aug 19, 2013 8:14 pm
by Sean Kelley

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.