Version Notes
Fixed support for saved credit card in admin, fixed guest billing agreement sign-up in PayFlow Express
Download this release
Release Info
Developer | Classy Llama |
Extension | CLS_Paypal_Credit_Card_Tokenization |
Version | 1.1.9 |
Comparing to | |
See all releases |
Code changes from version 1.1.8 to 1.1.9
app/code/community/CLS/Paypal/CHANGELOG.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
CLS_Paypal 1.1.8 (9/15/2014)
|
2 |
=======================================
|
3 |
[FIXED] Fixed minor style issue with responsive theme
|
1 |
+
CLS_Paypal 1.1.9 (10/16/2014)
|
2 |
+
=======================================
|
3 |
+
[FIXED] Support for saved credit card in admin
|
4 |
+
[FIXED] Guest billing agreement sign-up in PayFlow Express, due to collision with Bill Me Later
|
5 |
+
|
6 |
CLS_Paypal 1.1.8 (9/15/2014)
|
7 |
=======================================
|
8 |
[FIXED] Fixed minor style issue with responsive theme
|
app/code/community/CLS/Paypal/Helper/Paypal/Data.php
CHANGED
@@ -28,6 +28,7 @@
|
|
28 |
|
29 |
class CLS_Paypal_Helper_Paypal_Data extends Mage_Paypal_Helper_Data
|
30 |
{
|
|
|
31 |
|
32 |
/**
|
33 |
* Check whether customer should be asked confirmation whether to sign a billing agreement
|
@@ -38,16 +39,16 @@ class CLS_Paypal_Helper_Paypal_Data extends Mage_Paypal_Helper_Data
|
|
38 |
*/
|
39 |
public function shouldAskToCreateBillingAgreement(Mage_Paypal_Model_Config $config, $customerId)
|
40 |
{
|
41 |
-
if (
|
42 |
-
|
43 |
if ($customerId && $config->shouldAskToCreateBillingAgreement()) {
|
44 |
if (Mage::getModel('sales/billing_agreement')->needToCreateForCustomer($customerId)) {
|
45 |
-
|
46 |
}
|
47 |
} elseif (!$customerId && $config->shouldAskToCreateBillingAgreement()) {
|
48 |
-
|
49 |
}
|
50 |
}
|
51 |
-
return
|
52 |
}
|
53 |
}
|
28 |
|
29 |
class CLS_Paypal_Helper_Paypal_Data extends Mage_Paypal_Helper_Data
|
30 |
{
|
31 |
+
protected $_baShouldAskByMethod = array();
|
32 |
|
33 |
/**
|
34 |
* Check whether customer should be asked confirmation whether to sign a billing agreement
|
39 |
*/
|
40 |
public function shouldAskToCreateBillingAgreement(Mage_Paypal_Model_Config $config, $customerId)
|
41 |
{
|
42 |
+
if (!isset($this->_baShouldAskByMethod[$config->getMethodCode()])) {
|
43 |
+
$this->_baShouldAskByMethod[$config->getMethodCode()] = false;
|
44 |
if ($customerId && $config->shouldAskToCreateBillingAgreement()) {
|
45 |
if (Mage::getModel('sales/billing_agreement')->needToCreateForCustomer($customerId)) {
|
46 |
+
$this->_baShouldAskByMethod[$config->getMethodCode()] = true;
|
47 |
}
|
48 |
} elseif (!$customerId && $config->shouldAskToCreateBillingAgreement()) {
|
49 |
+
$this->_baShouldAskByMethod[$config->getMethodCode()] = true;
|
50 |
}
|
51 |
}
|
52 |
+
return $this->_baShouldAskByMethod[$config->getMethodCode()];
|
53 |
}
|
54 |
}
|
app/code/community/CLS/Paypal/Model/Paypal/Stored/Customerstored.php
CHANGED
@@ -50,7 +50,8 @@ class CLS_Paypal_Model_Paypal_Stored_Customerstored extends CLS_Paypal_Model_Pay
|
|
50 |
$customerId = Mage::getSingleton('customer/session')->getCustomerId();
|
51 |
}
|
52 |
|
53 |
-
if (!$customerId
|
|
|
54 |
return false;
|
55 |
}
|
56 |
|
50 |
$customerId = Mage::getSingleton('customer/session')->getCustomerId();
|
51 |
}
|
52 |
|
53 |
+
if (!$customerId
|
54 |
+
|| (!Mage::getSingleton('customer/session')->isLoggedIn() && !Mage::app()->getStore()->isAdmin())) {
|
55 |
return false;
|
56 |
}
|
57 |
|
app/code/community/CLS/Paypal/etc/config.xml
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
<config>
|
31 |
<modules>
|
32 |
<CLS_Paypal>
|
33 |
-
<version>1.1.
|
34 |
</CLS_Paypal>
|
35 |
</modules>
|
36 |
|
30 |
<config>
|
31 |
<modules>
|
32 |
<CLS_Paypal>
|
33 |
+
<version>1.1.9</version>
|
34 |
</CLS_Paypal>
|
35 |
</modules>
|
36 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CLS_Paypal_Credit_Card_Tokenization</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -71,11 +71,11 @@ Settings for this module's features can be found in System Configuration, under
|
|
71 |
PayPal Billing Agreement Settings can now be found under Advanced Settings for Payflow Pro, just as it is found for other solutions.
|
72 |

|
73 |
For each of the four supported direct payment solutions, Advanced Settings now contains three added groups: PayPal Saved Credit Card Settings, PayPal Previous Order Credit Card Settings, and PayPal Previous Order Billing Agreement Settings. Enable the module's various features from these groups, as well as setting their configuration options independently of the standard credit card and billing agreement configurations.</description>
|
74 |
-
<notes>Fixed
|
75 |
<authors><author><name>Classy Llama</name><user>classyllama</user><email>info@classyllama.com</email></author></authors>
|
76 |
-
<date>2014-
|
77 |
-
<time>
|
78 |
-
<contents><target name="magecommunity"><dir name="CLS"><dir name="Paypal"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Create"><file name="Customer.php" hash="4217b90d94215a6652dcc698ae348f6c"/></dir></dir></dir></dir><dir name="Customer"><file name="Storedcard.php" hash="1f19b685983a801be9a0e3a5224df987"/></dir><dir name="Payment"><dir name="Form"><file name="Cc.php" hash="4a6046c29e70e5d3668ee9840c642c57"/></dir></dir><dir name="Paypal"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Location.php" hash="2730278f26f00678f7effaee7fabafae"/></dir></dir></dir></dir><dir name="Payflow"><dir name="Advanced"><file name="Form.php" hash="ab4f2b5d5b90d3d9c59793a44bcd3106"/></dir><dir name="Link"><file name="Form.php" hash="2078d80e9d02f4410ad521d669131f8c"/></dir></dir><dir name="Payment"><dir name="Form"><file name="Customerstored.php" hash="bf998008e870864c4af7f4da7b1f3776"/><dir name="Orderstored"><file name="Agreement.php" hash="96d1322d1ee4aaa1bfb1a29705ad3693"/></dir><file name="Orderstored.php" hash="ad8641f36a240b3582f9c2df872f1e7a"/></dir></dir></dir><dir name="Paypaluk"><dir name="Payment"><dir name="Form"><dir name="Orderstored"><file name="Agreement.php" hash="df2393007cedf8f07a9f5c075875287c"/></dir></dir></dir></dir></dir><file name="CHANGELOG.txt" hash="
|
79 |
<compatible/>
|
80 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
81 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CLS_Paypal_Credit_Card_Tokenization</name>
|
4 |
+
<version>1.1.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
71 |
PayPal Billing Agreement Settings can now be found under Advanced Settings for Payflow Pro, just as it is found for other solutions.
|
72 |

|
73 |
For each of the four supported direct payment solutions, Advanced Settings now contains three added groups: PayPal Saved Credit Card Settings, PayPal Previous Order Credit Card Settings, and PayPal Previous Order Billing Agreement Settings. Enable the module's various features from these groups, as well as setting their configuration options independently of the standard credit card and billing agreement configurations.</description>
|
74 |
+
<notes>Fixed support for saved credit card in admin, fixed guest billing agreement sign-up in PayFlow Express</notes>
|
75 |
<authors><author><name>Classy Llama</name><user>classyllama</user><email>info@classyllama.com</email></author></authors>
|
76 |
+
<date>2014-10-16</date>
|
77 |
+
<time>19:10:31</time>
|
78 |
+
<contents><target name="magecommunity"><dir name="CLS"><dir name="Paypal"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Create"><file name="Customer.php" hash="4217b90d94215a6652dcc698ae348f6c"/></dir></dir></dir></dir><dir name="Customer"><file name="Storedcard.php" hash="1f19b685983a801be9a0e3a5224df987"/></dir><dir name="Payment"><dir name="Form"><file name="Cc.php" hash="4a6046c29e70e5d3668ee9840c642c57"/></dir></dir><dir name="Paypal"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Location.php" hash="2730278f26f00678f7effaee7fabafae"/></dir></dir></dir></dir><dir name="Payflow"><dir name="Advanced"><file name="Form.php" hash="ab4f2b5d5b90d3d9c59793a44bcd3106"/></dir><dir name="Link"><file name="Form.php" hash="2078d80e9d02f4410ad521d669131f8c"/></dir></dir><dir name="Payment"><dir name="Form"><file name="Customerstored.php" hash="bf998008e870864c4af7f4da7b1f3776"/><dir name="Orderstored"><file name="Agreement.php" hash="96d1322d1ee4aaa1bfb1a29705ad3693"/></dir><file name="Orderstored.php" hash="ad8641f36a240b3582f9c2df872f1e7a"/></dir></dir></dir><dir name="Paypaluk"><dir name="Payment"><dir name="Form"><dir name="Orderstored"><file name="Agreement.php" hash="df2393007cedf8f07a9f5c075875287c"/></dir></dir></dir></dir></dir><file name="CHANGELOG.txt" hash="3560d1d28ea55821283976aa4a84e698"/><dir name="Helper"><file name="Data.php" hash="f90e0a15ea4bf54d8a5e6413dccfe2dd"/><dir name="Orderstored"><file name="Agreement.php" hash="87bc057e438e2364bfef6c8aaf298b72"/></dir><dir name="Paypal"><file name="Data.php" hash="0baa147dd91491b3628c54873acc7067"/></dir><file name="Storedcard.php" hash="d1dcbd3169146a8be0b0f743e780219b"/></dir><file name="LICENSE.txt" hash="71db18446bebc23ced8dd62644d16b5f"/><dir name="Model"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Create.php" hash="c4495227ebcf57985c76aee3484fdda8"/></dir></dir></dir><file name="Customerstored.php" hash="b665668e2dea947732e15b807d0ac0d9"/><file name="Observer.php" hash="adc978c7f0d89bc4bfb07a41d4ca1749"/><dir name="Paypal"><dir name="Api"><file name="Nvp.php" hash="1a39867d97056840b3b7220f21e7d8a8"/></dir><file name="Config.php" hash="4c94e4720c26c36373ee60b95fa4f855"/><file name="Direct.php" hash="ef3b0556bf0a42e06540918f6a199c89"/><dir name="Express"><file name="Checkout.php" hash="0089b290510d6558f405837c04b0d28d"/></dir><file name="Express.php" hash="01df608f519c2686f2b92bb29f0d710b"/><file name="Info.php" hash="e9e62f9a4de192ad2e4475cd329239ac"/><dir name="Method"><dir name="Orderstored"><file name="Agreement.php" hash="4e835c3ced7234f1fa85a9ac2135d159"/></dir></dir><file name="Payflowadvanced.php" hash="0c1b29ae87e3d99bc9213c98cd6fce62"/><file name="Payflowlink.php" hash="43d11dce5912b1065c09fc1deb1b8a55"/><file name="Payflowpro.php" hash="012bd91fcb65ed3b66182a0a84b0b2d2"/><dir name="Stored"><file name="Abstract.php" hash="d3d462fdec47a0c7a9fbe400f3db7570"/><dir name="Customerstored"><file name="Direct.php" hash="4d8c9ca1bd51387e30020a5ab7cf18e0"/><file name="Payflow.php" hash="8f7bc5a7711c090c99e368269dff0256"/><file name="Payflowadvanced.php" hash="140b8ce3772c1b1e7eba27fda3621b40"/><file name="Payflowlink.php" hash="ec10930f8e13759b7eee19eca2a1a402"/><file name="Payflowpro.php" hash="e3e9106c86b2121d5bc22346cedb5e70"/></dir><file name="Customerstored.php" hash="a4522b88ed84f4bb8c0de2368e6ff7ef"/><dir name="Orderstored"><file name="Direct.php" hash="b5e43e468696da57104d14558cbf6796"/><file name="Payflow.php" hash="39d2b02a4ca5f21966d3733800edeb74"/><file name="Payflowadvanced.php" hash="81983792d914701ff5853e2372c62e87"/><file name="Payflowlink.php" hash="b2a23f8f793d4791207580eec2a1614c"/><file name="Payflowpro.php" hash="e740ceaeb6b6eabb7bf69d91c802248c"/></dir><file name="Orderstored.php" hash="da3695a5c11bc9692c44985682faf763"/><file name="Payflow.php" hash="cf8395c60cd48a890366932e0b771a2b"/></dir></dir><dir name="Paypaluk"><dir name="Api"><dir name="Express"><file name="Nvp.php" hash="e7f2f3d43460963e0c03be0e2570b945"/></dir><dir name="Nvp"><file name="Common.php" hash="61d14420b595f41ee05dcac38e7b6a30"/></dir><file name="Nvp.php" hash="cd91e35953728ec23cc3d12d370b3d01"/></dir><dir name="Express"><file name="Checkout.php" hash="30be50f4f37c4dd86a030ef8d8e746ab"/></dir><file name="Express.php" hash="3bd2447989120a23637112e83440bc34"/><dir name="Method"><file name="Agreement.php" hash="6130d3dd630e45822af00c03e43d2fdd"/><dir name="Orderstored"><file name="Agreement.php" hash="128ebc81894ff25ba713b4d4817dfda3"/></dir></dir></dir><dir name="Resource"><dir name="Customerstored"><file name="Collection.php" hash="a6555fdd2413470de3492e3dd79f245d"/></dir><file name="Customerstored.php" hash="4817d0cc17fd7878db7635bdaf4d28ca"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Payflowbaenabled.php" hash="01eea301e74636cfb3446a32875696f8"/></dir></dir></dir></dir><file name="README.md" hash="7fa044486107cdf0d86d24a340fdc675"/><file name="SUPPORT.md" hash="262472006386d2141541a4d1723860b7"/><dir name="controllers"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="CreateController.php" hash="7f38863fd347676405af75c90fce8eff"/></dir></dir></dir><dir name="Customer"><file name="StoredcardController.php" hash="265534f272fb6fc7a8c6198db29d0bbe"/></dir><dir name="Paypal"><file name="ExpressController.php" hash="3ee6219c5bc5bc126b96de6089fc5344"/></dir><dir name="PaypalUk"><file name="ExpressController.php" hash="630f0fae3d9a84e7fa0f8242f7e715d1"/></dir></dir><dir name="etc"><file name="config.xml" hash="7e083188700d83a31602d67359ac97f7"/><file name="system.xml" hash="04d4fb444d7cb3aba57b7a9fdfbb0a9b"/></dir><dir name="sql"><dir name="cls_paypal_setup"><file name="mysql4-install-0.0.1.php" hash="5b4967e3363969977e11131911e34a93"/><file name="mysql4-install-0.3.1.php" hash="a924ac18a74bf6d1688db002ff5c9ec0"/><file name="mysql4-upgrade-0.3.0-0.3.1.php" hash="238220d8673832b5c6bdc6904cd616b5"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cls_paypal.xml" hash="79f01d08391f43d036eda62b7e065ab0"/></dir><dir name="template"><dir name="cls_paypal"><dir name="payment"><dir name="form"><file name="cc.phtml" hash="18374f975a2b4a2ff54d4694be4a994c"/><file name="customer_stored.phtml" hash="12522cb9f7acd46b1ffb61d1537994da"/><file name="order_stored.phtml" hash="b621f2c672d66cf418737cf68669976c"/></dir></dir><dir name="sales"><dir name="order"><dir name="create"><dir name="form"><file name="address.phtml" hash="1c6b60a4758aac055e935dfd56f468ae"/></dir></dir></dir><dir name="payment"><dir name="form"><dir name="orderstored"><file name="agreement.phtml" hash="a7c7568b9a7dda44673c1c195906f611"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cls_paypal.xml" hash="4c37fcb580cbcaa1a01a897045758728"/></dir><dir name="template"><dir name="cls_paypal"><dir name="customer"><file name="storedcard.phtml" hash="0561300c7a3185739f42a60d4afe0c6d"/></dir><dir name="payment"><dir name="form"><file name="cc.phtml" hash="3980e7d249cfd0990ec2a1b9a26d6f5c"/><file name="customer_stored.phtml" hash="71a894688d69f295f24e79239b2735c0"/></dir></dir><dir name="paypal"><dir name="payflow"><file name="info.phtml" hash="634070bc37d37dcb5a434f388d8a303c"/></dir></dir></dir></dir></dir></dir><dir name="enterprise"><dir name="default"><dir name="template"><dir name="cls_paypal"><dir name="payment"><dir name="form"><file name="cc.phtml" hash="55b79cb005448d03b99578564cf175b5"/></dir></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="cls_paypal"><dir name="payment"><dir name="form"><file name="cc.phtml" hash="55ca835564286814ddb831f1482a7390"/></dir></dir><dir name="paypal"><dir name="payflow"><file name="info.phtml" hash="2373904e6ba3113bf17eba45b1d77c19"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CLS_Paypal.xml" hash="9e629aac18f2e5f2c9feb266985c912f"/></dir></target><target name="magelocale"><dir name="en_US"><file name="CLS_Paypal.csv" hash="ab57482877d914bb1d02021d95c65520"/></dir></target></contents>
|
79 |
<compatible/>
|
80 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
81 |
</package>
|