-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Blair Winans
committed
Dec 1, 2014
1 parent
10756b6
commit f01de34
Showing
13 changed files
with
1,755 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<IfModule !mod_authz_core.c> | ||
Order allow,deny | ||
Allow from all | ||
</IfModule> | ||
<IfModule mod_authz_core.c> | ||
Require all granted | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.mod_iso_checkout img {width:auto;} | ||
|
||
.paypalpro label { | ||
width:100%; | ||
margin-bottom:0.5em; | ||
cursor:pointer; | ||
} | ||
|
||
.mod_iso_checkout .paypalpro .field { | ||
display: inline-block; | ||
float: left; | ||
padding: 0 2.5% 0 0; | ||
width: 47.5%; | ||
} | ||
|
||
.cc_info_header { | ||
border-bottom: 1px solid #CCCCCC; | ||
clear: both; | ||
color: #666666; | ||
font-weight: bold; | ||
margin-bottom: 1em; | ||
padding-bottom: 1em; | ||
width: 100%; | ||
} | ||
|
||
.cc_info_header img { | ||
float:right; | ||
} | ||
|
||
.cc_info_body { | ||
padding-top: 8px; | ||
} | ||
|
||
.cc_info { | ||
background-color: #FFFFFF; | ||
display: block; | ||
visibility: visible; | ||
} | ||
|
||
#submit { | ||
border-top: 1px solid #CCCCCC; | ||
clear: both; | ||
display: inline-block; | ||
margin-top: 2em; | ||
padding-right: 640px; | ||
padding-top: 1em; | ||
text-align: right; | ||
} | ||
|
||
.input { | ||
color: #000000; | ||
} | ||
|
||
.paypalpro textarea, .paypalpro select, .paypalpro input { | ||
float: left; | ||
margin-bottom: 1em; | ||
max-width: 21.8em; | ||
min-width: 10em; | ||
width: 100%; | ||
} | ||
|
||
.paypalpro .ExpMonth, .paypalpro .ExpYear { | ||
margin-right: 5%; | ||
min-width: 5em; | ||
width: 18%; | ||
} | ||
|
||
.paypalpro input.security, .paypalpro input.issue { | ||
min-width: 5em; | ||
width: 18%; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
;; | ||
; List modules which are required to be loaded beforehand | ||
;; | ||
requires[] = "core" | ||
requires[] = "_autoload" | ||
requires[] = "isotope" | ||
|
||
;; | ||
; Configure what you want the autoload creator to register | ||
;; | ||
register_namespaces = false | ||
register_classes = false | ||
register_templates = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/** | ||
* Contao Open Source CMS | ||
* | ||
* Copyright (c) 2005-2014 Leo Feyer | ||
* | ||
* @package Isotope_brand | ||
* @link https://contao.org | ||
* PHP version 5 | ||
* @copyright 360fusion 2014 | ||
* @author Darrell Martin <[email protected]> | ||
* @license http://opensource.org/licenses/lgpl-3.0.html | ||
*/ | ||
|
||
|
||
|
||
/** | ||
* Register PSR-0 namespace | ||
*/ | ||
NamespaceClassLoader::add('Isotope', 'system/modules/isotope_payment_paypal_proex/library'); | ||
|
||
|
||
|
||
|
||
/** | ||
* Register the templates | ||
*/ | ||
TemplateLoader::addFiles(array | ||
( | ||
'iso_payment_paypalpaymentspro' => 'system/modules/isotope_payment_paypal_proex/templates/payment', | ||
|
||
)); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!'); | ||
|
||
/** | ||
* TYPOlight Open Source CMS | ||
* Copyright (C) 2005-2010 Leo Feyer | ||
* | ||
* This program is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation, either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this program. If not, please visit the Free | ||
* Software Foundation website at <http://www.gnu.org/licenses/>. | ||
* | ||
* PHP version 5 | ||
* @copyright 360fusion 2011 | ||
* @author Darrell Martin <[email protected]> | ||
* @license http://opensource.org/licenses/lgpl-3.0.html | ||
*/ | ||
|
||
|
||
|
||
/** | ||
* Payment methods | ||
*/ | ||
|
||
|
||
\Isotope\Model\Payment::registerModelType('paypal_express', 'Isotope\Model\Payment\PayPalExpress'); | ||
\Isotope\Model\Payment::registerModelType('paypal_payments_pro', 'Isotope\Model\Payment\PayPalPaymentsPro'); | ||
|
||
|
||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<?php | ||
|
||
/** | ||
* Isotope eCommerce for Contao Open Source CMS | ||
* | ||
* Copyright (C) 2009-2014 terminal42 gmbh & Isotope eCommerce Workgroup | ||
* | ||
* @package Isotope | ||
* @link http://isotopeecommerce.org | ||
* @license http://opensource.org/licenses/lgpl-3.0.html | ||
* PHP version 5 | ||
* @copyright 360fusion 2014 | ||
* @author Darrell Martin <[email protected]> | ||
* @license http://opensource.org/licenses/lgpl-3.0.html | ||
*/ | ||
|
||
|
||
|
||
|
||
/** | ||
* Add palettes to tl_iso_payment | ||
*/ | ||
|
||
array_insert($GLOBALS['TL_DCA']['tl_iso_payment']['palettes'], 1, array | ||
( | ||
'paypal_express' => '{type_legend},name,label,type;{note_legend:hide},note;{config_legend},new_order_status,minimum_total,maximum_total,countries,shipping_modules,product_types;{paypal_api_legend},paypal_api_username,paypal_api_password,paypal_api_signature;{paypal_gateway_legend},paypal_standard,paypal_payment_type,paypal_currency_code,paypal_environment;{price_legend:hide},price,tax_class;{expert_legend:hide},guests,protected;{enabled_legend},enabled', | ||
)); | ||
|
||
|
||
array_insert($GLOBALS['TL_DCA']['tl_iso_payment']['palettes'], 2, array | ||
( | ||
'paypal_payments_pro' => '{type_legend},name,label,type;{note_legend:hide},note;{config_legend},new_order_status,minimum_total,maximum_total,countries,shipping_modules,product_types;{paypal_api_legend},paypal_api_username,paypal_api_password,paypal_api_signature;{paypal_gateway_legend},use_cc_billing,paypal_standard,paypal_allowedcc_types,paypal_payment_type,paypal_currency_code,paypal_environment;{price_legend:hide},price,tax_class;{expert_legend:hide},guests,protected;{enabled_legend},enabled', | ||
)); | ||
|
||
|
||
|
||
/** | ||
* Add fields to tl_iso_payment | ||
*/ | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_standard'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_standard'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('mandatory'=>false, 'tl_class'=>'w10'), | ||
'sql' => "varchar(255) NOT NULL default ''", | ||
); | ||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_identity_token'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_identity_token'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('mandatory'=>false, 'tl_class'=>'w10'), | ||
'sql' => "varchar(255) NOT NULL default ''", | ||
); | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_currency_code'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_currency_code'], | ||
'exclude' => true, | ||
'inputType' => 'select', | ||
'options' => array('AUD', 'CAD', 'CHF' , 'CZK' , 'DKK' , 'EUR' , 'GBP' , 'HKD' , 'HUF' , 'JPY' , 'NOK' , 'NZD' , 'PLN' , 'SEK' , 'SGD' , 'USD'), | ||
'reference' => &$GLOBALS['TL_LANG']['tl_iso_payment'], | ||
'sql' => "varchar(3) NOT NULL default ''", | ||
); | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_api_username'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_api_username'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('mandatory'=>true, 'tl_class'=>'w50'), | ||
'sql' => "varchar(255) NOT NULL default ''", | ||
); | ||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_api_password'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_api_password'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('mandatory'=>true, 'tl_class'=>'w20'), | ||
'sql' => "varchar(255) NOT NULL default ''", | ||
); | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_api_signature'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_api_signature'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('mandatory'=>true, 'tl_class'=>'w60'), | ||
'sql' => "varchar(255) NOT NULL default ''", | ||
); | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_payment_type'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_payment_type'], | ||
'exclude' => true, | ||
'inputType' => 'select', | ||
'options' => array('Sale', 'Authorization', 'Order'), | ||
'reference' => &$GLOBALS['TL_LANG']['tl_iso_payment'], | ||
'sql' => "varchar(20) NOT NULL default ''", | ||
); | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_environment'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_environment'], | ||
'exclude' => true, | ||
'inputType' => 'select', | ||
'options' => array('sandbox', 'live'), | ||
'reference' => &$GLOBALS['TL_LANG']['tl_iso_payment'], | ||
'sql' => "varchar(20) NOT NULL default ''", | ||
); | ||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['paypal_allowedcc_types'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['paypal_allowedcc_types'], | ||
'exclude' => true, | ||
'inputType' => 'checkboxWizard', | ||
'options' => array('Mastercard', 'Visa', 'American Express' , 'Maestro', 'Discover'), | ||
'reference' => &$GLOBALS['TL_LANG']['tl_iso_payment'], | ||
'eval' => array('multiple'=>true), | ||
'sql' => "blob NULL", | ||
); | ||
|
||
|
||
|
||
$GLOBALS['TL_DCA']['tl_iso_payment']['fields']['use_cc_billing'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_iso_payment']['use_cc_billing'], | ||
'exclude' => true, | ||
'default' => '', | ||
'inputType' => 'checkbox', | ||
'filter' => true, | ||
'eval' => array('submitOnChange'=>true, 'tl_class'=>'w90'), | ||
'sql' => "int(1) NOT NULL default '0'" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
/** | ||
* Isotope eCommerce for Contao Open Source CMS | ||
* | ||
* Copyright (C) 2009-2014 terminal42 gmbh & Isotope eCommerce Workgroup | ||
* | ||
* @package Isotope | ||
* @link http://isotopeecommerce.org | ||
* @license http://opensource.org/licenses/lgpl-3.0.html | ||
*/ | ||
|
||
/** | ||
* Errors | ||
*/ | ||
|
||
|
||
/** | ||
* Miscellaneous | ||
*/ | ||
|
||
|
||
|
||
/** | ||
* Content elements | ||
*/ | ||
|
||
|
||
/** | ||
* Shipping methods | ||
*/ | ||
|
||
|
||
/** | ||
* Payment methods | ||
*/ | ||
|
||
$GLOBALS['TL_LANG']['MODEL']['tl_iso_payment.paypal_express'] = array('PayPal Express Checkout', 'This PayPal module supports Paypal Express.'); | ||
$GLOBALS['TL_LANG']['MODEL']['tl_iso_payment.paypal_payments_pro'] = array('PayPal Payments Pro Checkout', 'This PayPal module supports Paypal Payments Pro.'); | ||
|
||
/** | ||
* Documents | ||
*/ | ||
|
||
|
||
/** | ||
* Galleries | ||
*/ | ||
|
||
/** | ||
* Product types | ||
*/ | ||
|
||
|
||
/** | ||
* Credit card types | ||
*/ | ||
|
||
/** | ||
* Attributes | ||
*/ | ||
|
||
|
||
/** | ||
* Currencies | ||
*/ | ||
|
||
|
||
/** | ||
* Currency symbols | ||
*/ | ||
|
||
|
Oops, something went wrong.