15 Commits

Author SHA1 Message Date
Daniel Camargo
826c201a14 implement additional payment math in Settlement.php #2250
- balanced payment working
- storing balanced log errors
2014-06-19 10:04:23 -03:00
arzynik
802d4e42cb partial #3125 2014-05-13 11:10:20 -07:00
arzynik
5703cade18 partial #3125 2014-05-09 12:51:44 -07:00
arzynik
5e1d1745bb removed debug 2014-05-09 11:18:49 -07:00
arzynik
c819d6d46a partial #3125 2014-05-09 10:46:15 -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
arzynik
4b4058e77f added debug users 2013-10-08 14:03:31 -07:00
arzynik
7828452560 fixes #1841 2013-10-03 15:46:19 -07:00
arzynik
36b1151c1a changed to manualy building the uri to support the ios apps api 2013-09-28 09:34:38 -07:00
arzynik
cdcb03a46f fixed bad card error 2013-09-27 16:26:21 -07:00
arzynik
a7a429c59e fixes #1822 2013-09-26 12:09:35 -07:00
Daniel Camargo
691f163847 partial #1516 2013-08-21 13:55:42 -03:00
arzynik
861fc7ea2e fixes #311 2012-09-26 11:30:40 -07:00
arzynik
164e8f85e2 fixed some balanced issues #145 2012-09-11 19:11:16 -07:00
arzynik
909e2329a7 fixes #145 2012-09-11 19:02:13 -07:00