Bugfixes/improvements for stripe
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 10 Oct 2013 21:27:14 +0000 (17:27 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 11 Oct 2013 04:55:06 +0000 (00:55 -0400)
commit99dc22d8ed94731ba3e1215ed54bf8756ddae940
treebe119030f3ffdbf46e504547c0c4cebe92aa5c13
parent305fa4cba7949efe1de01ba922cfd5bdd71e7cca
Bugfixes/improvements for stripe

1) Stripe takes payment amounts in pennies to avoid floating-point
messes.
2) TPAC mod_perl needed to be told to pass along the stripe_token
parameter to the backend.
3) Get exp date, last four from *result* from Stripe, unlike the way we
get these things as input from the client when using other processors
4) Expose Stripe's message to the client in case of decline (and escape
for HTML)

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/templates/opac/myopac/main_pay.tt2
Open-ILS/src/templates/opac/myopac/main_payment_form.tt2