5 Commits

Author SHA1 Message Date
Devin Smith
aa909bebf4 more query fixes 2015-03-03 14:32:16 -08:00
Devin Smith
6dfa4b7134 lots of bool changes 2015-03-02 12:00:12 -08:00
arzynik
802d4e42cb partial #3125 2014-05-13 11:10:20 -07:00
Daniel Camargo
518f302ebb partial #2243 - add the ability to pay using stripe or balanced in the order.php
Updated the Stripe API (php) to the new version (from 1.7.2 to 1.10.1).

Updated the keys (public and secret) of the test env (config.xml). I was afraid to change it from the live one.

I changed the way the user_payment_type was working.
Now the user will be able to have two actives payment types, one for stripe and another for balanced.

When you call the method Crunchbutton_User_Payment_Type::getUserPaymentType() it will return the active payment type for the current processor.

I have also created this method Crunchbutton_User_Payment_Type::processor() returns the current processor type and replaced all the calls from c::config()->processor to this method. That way if we decide to put this data at config’s table we will have to just change this method. Or even is we need to use the processor type that is previously stored that will be easy too.

I created two new files tokenizeCard.stripe.js and tokenizeCard.balanced.js and moved the method App.tokenizeCard to these files
2013-12-18 14:43:22 -02:00
Daniel Camargo
f5b1040fdb partial #2242 - separate user and payment type table 2013-12-17 14:50:20 -02:00