Version Notes
===== 4.17.0 =====
Klarna betaalmethode is toegevoegd
POSPayment betaalmethode is toegevoegd
Partial refund toegevoegd met buckaroo fee
B2B velden worden niet meer getoond voor BE bestellingen
KVK en BTW velden voor B2B zijn verwijderd
Voor Klarna en Afterpay worden nu de Nederlandse foutmelding van Buckaroo getoond in plaats van de extensie foutmelding
Op tablets waar POSPayment gebruikt wordt zal nu alleen POSPayment getoond worden, en niet de andere Buckaroo Betaalmethodes. Let op, dit heeft enkel invloed op de Buckaroo betaalmethodes!
De debug mail functionaliteit genereert geen foutmelding meer
===== 4.16.4 =====
Authorize & (partial) capture is nu mogelijk met Afterpay
Partial Refund is nu mogelijk met Afterpay
De refund gerelateerde notices en warnings zijn opgelost
Mogelijke melding Uncaught ReferenceError: jQuery is not defined in de checkout opgelost
PHP7 ondersteuning voor Masterpass
Check toegevoegd voor betaalmethodes om te kijken of de orderbevestiging e-mail verzonden moet worden bij een bepaalde betaalstatus.
Payperemail probleem opgelost waar een syntax error kon ontstaan.
Payperemail beschikbare betaalmethodes ook gekoppeld aan Credit Management.
OneStepCheckout ondersteunde versies geupdate.
Afterpay aanpassing waarbij de korting wordt afgerond op 2 decimalen.
Adresvalidatie is verbeterd.
Overboeking terugkoppeling bij deelbetalingen in order comments.
Link naar plaza.buckaroo.nl opgenomen in support tab.
Betere beschrijving van Afterpay foutmelding bij samengevoegde (combined) paymentflow.
===== 4.15.3 =====
Bij Afterpay betalingen via België wordt er bij telefoonnummers van meer dan 10 tekens "0032" toegevoegd
Na een status 690 vanuit Buckaroo blijft AfterPay nu zichtbaar in decheckout
XSS issue met Buckaroo extensie icm OneStepCheckout en paymentguarantee/transfer opgelost
Ondersteuning Giftwrap toeslag (Enterprise) in combinatie met AfterPay
===== 4.15.2 =====
- Verwijderd configuratieveld voor Afterpay, Giftcard "Verstuur email met betalingsinstructies"
- Spelfouten op supporttab gecorrigeerd
- Correctie van versienummer
===== 4.15.1 =====
- Afterpay oplossing 31 in telefoonnummer
===== 4.15.0 =====
- Merchant kan via Backend zelf feedback instellen voor foutmeldingen
- Payperemail via Backend bij meerdere valuta
- Betaalgarant validatie in de checkout op telefoonnummer
- Order bevestigingse-mail
- jQuery upgrade naar versie 1.12.3
- 691 rejected status vertaling
- eMaestro andere valuta
- Paypermail back-end multistore
- Authentification status A/U wordt inzichtelijk gemaakt
- Refunden met MisterCash
- Nieuwe logo van Buckaroo
- OSC 4.5.5 ondersteuning
- Afterpay van Buckaroo neemt telefoonnummer over van de bestelling
==== 4.14.1 ====
==== Improvements ====
- Compatibiliteit met de Magento Patch SUPEE-6788
==== Bug fixes ====
- Provincie veld is niet meer verplicht voor PayPal verkopersbescherming bij Nederlandse adressen
==== 4.13.0 ====
==== Improvements ====
- Extra invulvelden verwijderd bij offline refunds voor Mr. Cash
- Offline refunds bij Mr. Cash ondersteunt nu ook deelrefunds
- Aangepaste styling van de betaalmethodes in OSC en OPC
- Storeview specifieke instellingen worden meegenomen voor PayperEmail
- Aanvullende informatie voor orders die afgewezen zijn door AfterPay in de ordercomments.
==== Bug fixes ====
- Fix voor de AfterPay afwijzingsmeldingen
- Correcte weergave van betaaltoeslagen onder 1 Euro
- De Billing Agreements pagina geeft geen foutmelding meer bij gebruik van de extensie
==== 4.12.0 ====
==== Improvements ====
- Tweede AfterPay betaalmethode toegevoegd. Zo kan een merchant zowel de digiaccept variant, als de acceptgiro variant tegelijk gebruiken.
==== Bug fixes ====
- Correcte weergave Buckaroo fee in transactionele e-mails
- Fix voor custom status bij pending orders
==== 4.11.0 ====
==== New features ====
- MasterPass betaalmethode toegevoegd.
==== Improvements ====
- IBAN veld bij Afterpay Digiaccept betaalmethode verwijderd
==== Bug fixes ====
- Paymentfee label in transactionele e-mail tonen
==== 4.10.1 ====
==== Improvements ====
- Added notification for declined payments for AfterPay payment method
- Compatibility with Onestepcheckout improved
- Giftcard functionality improved for Magento Enterprise
- Updated translations
==== Bug fixes ====
- PayperEmail is available again in the backend
==== 4.10.0 ====
==== New features ====
- Added the AfterPay payment method.
- Added the ability to refund Bancontact / Mr. Cash orders.
==== Improvements ====
- Completely rewrote the Buckaroo payment fee implementation in order to increase reliability and implement several much requested features.
- Removed the BIC field for Dutch orders.
- Improved validation for orders where multiple transactions are created.
- Improved error handling for back-end orders.
==== Bug fixes ====
- Fixed a problem where the order ID would stay reserved after a payment had failed, causing errors.
Release Info
Developer | TIG |
Extension | tig_buckaroo3extended |
Version | 4.17.0 |
Comparing to | |
See all releases |
Code changes from version 4.16.4 to 4.17.0
- app/code/community/TIG/Buckaroo3Extended/Block/Adminhtml/System/Config/Hint.php +3 -1
- app/code/community/TIG/Buckaroo3Extended/Block/PaymentMethods/Klarna/Adminhtml/System/Config/Advancedbtn.php +45 -0
- app/code/community/TIG/Buckaroo3Extended/Block/PaymentMethods/Klarna/Checkout/Form.php +39 -0
- app/code/community/TIG/Buckaroo3Extended/Block/PaymentMethods/Pospayment/Adminhtml/System/Config/Advancedbtn.php +45 -0
- app/code/community/TIG/Buckaroo3Extended/Block/PaymentMethods/Pospayment/Checkout/PendingPayment.php +43 -0
- app/code/community/TIG/Buckaroo3Extended/Model/Observer/CancelAuthorize.php +3 -2
- app/code/community/TIG/Buckaroo3Extended/Model/PaymentMethods/Afterpay/PaymentMethod.php +4 -0
- app/code/community/TIG/Buckaroo3Extended/Model/PaymentMethods/Klarna/Observer.php +931 -0
- app/code/community/TIG/Buckaroo3Extended/Model/PaymentMethods/Klarna/PaymentMethod.php +118 -0
- app/code/community/TIG/Buckaroo3Extended/Model/PaymentMethods/PaymentMethod.php +21 -0
- app/code/community/TIG/Buckaroo3Extended/Model/PaymentMethods/Pospayment/Observer.php +137 -0
- app/code/community/TIG/Buckaroo3Extended/Model/PaymentMethods/Pospayment/PaymentMethod.php +70 -0
- app/code/community/TIG/Buckaroo3Extended/Model/Refund/Request/Abstract.php +1 -1
- app/code/community/TIG/Buckaroo3Extended/Model/Response/Abstract.php +0 -1
- app/code/community/TIG/Buckaroo3Extended/Model/Response/Push.php +7 -1
- app/code/community/TIG/Buckaroo3Extended/Model/Soap.php +6 -0
- app/code/community/TIG/Buckaroo3Extended/Model/Sources/Klarna/AvailableCurrencies.php +49 -0
- app/code/community/TIG/Buckaroo3Extended/Model/Sources/Klarna/SendInvoiceBy.php +57 -0
- app/code/community/TIG/Buckaroo3Extended/Model/Sources/Pospayment/AvailableCurrencies.php +54 -0
- app/code/community/TIG/Buckaroo3Extended/Test/.coveralls.yml +3 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Scripts/AfterSuccess.sh +12 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Scripts/InstallDependencies.sh +16 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Scripts/Setup.sh +2 -1
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Block/PaymentMethods/Klarna/Adminhtml/System/Config/AdvancedbtnTest.php +57 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Block/PaymentMethods/Pospayment/Adminhtml/System/Config/AdvancedbtnTest.php +57 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/Observer/CancelAuthorizeTest.php +5 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/Afterpay/PaymentMethodTest.php +7 -15
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/Afterpay2/PaymentMethodTest.php +7 -15
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/Klarna/ObserverTest.php +613 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/Klarna/PaymentMethodTest.php +168 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/PaymentMethodTest.php +47 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/Pospayment/ObserverTest.php +175 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/PaymentMethods/Pospayment/PaymentMethodTest.php +127 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/Response/AbstractTest.php +138 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/Sources/Klarna/AvailableCurrenciesTest.php +63 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/Sources/Klarna/SendInvoiceByTest.php +66 -0
- app/code/community/TIG/Buckaroo3Extended/Test/Unit/Model/Sources/Pospayment/AvailableCurrenciesTest.php +63 -0
- app/code/community/TIG/Buckaroo3Extended/Test/phpunit.xml +4 -0
- app/code/community/TIG/Buckaroo3Extended/controllers/CheckoutController.php +74 -1
- app/code/community/TIG/Buckaroo3Extended/controllers/NotifyController.php +21 -34
- app/code/community/TIG/Buckaroo3Extended/etc/config.xml +132 -1
- app/code/community/TIG/Buckaroo3Extended/etc/system.xml +455 -0
- app/code/community/TIG/Buckaroo3Extended/sql/buckaroo3extended_setup/mysql4-upgrade-4.16.3-4.17.0.php +45 -0
- app/design/frontend/base/default/layout/TIG/buckaroo3extended.xml +9 -0
- app/design/frontend/base/default/template/buckaroo3extended/klarna/checkout/form.phtml +98 -0
- app/design/frontend/base/default/template/buckaroo3extended/pospayment/checkout/pendingpayment.phtml +62 -0
- app/design/frontend/rwd/default/template/buckaroo3extended/klarna/checkout/form.phtml +96 -0
- app/locale/en_US/TIG_Buckaroo3Extended.csv +9 -1
- app/locale/nl_NL/TIG_Buckaroo3Extended.csv +10 -1
- package.xml +40 -25
@@ -31,6 +31,8 @@ class TIG_Buckaroo3Extended_Block_Adminhtml_System_Config_Hint
|
|
31 |
'afterpay',
|
32 |
'afterpay2',
|
33 |
'masterpass',
|
|
|
|
|
34 |
);
|
35 |
|
36 |
public $services = array(
|
@@ -52,4 +54,4 @@ class TIG_Buckaroo3Extended_Block_Adminhtml_System_Config_Hint
|
|
52 |
{
|
53 |
return $this->toHtml();
|
54 |
}
|
55 |
-
}
|
31 |
'afterpay',
|
32 |
'afterpay2',
|
33 |
'masterpass',
|
34 |
+
'klarna',
|
35 |
+
'pospayment',
|
36 |
);
|
37 |
|
38 |
public $services = array(
|
54 |
{
|
55 |
return $this->toHtml();
|
56 |
}
|
57 |
+
}
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Block_PaymentMethods_Klarna_Adminhtml_System_Config_Advancedbtn
|
33 |
+
extends Mage_Adminhtml_Block_Abstract
|
34 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
42 |
+
{
|
43 |
+
return $this->toHtml();
|
44 |
+
}
|
45 |
+
}
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Block_PaymentMethods_Klarna_Checkout_Form extends TIG_Buckaroo3Extended_Block_PaymentMethods_Checkout_Form_Abstract
|
33 |
+
{
|
34 |
+
public function __construct()
|
35 |
+
{
|
36 |
+
$this->setTemplate('buckaroo3extended/klarna/checkout/form.phtml');
|
37 |
+
parent::_construct();
|
38 |
+
}
|
39 |
+
}
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Block_PaymentMethods_Pospayment_Adminhtml_System_Config_Advancedbtn
|
33 |
+
extends Mage_Adminhtml_Block_Abstract
|
34 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
42 |
+
{
|
43 |
+
return $this->toHtml();
|
44 |
+
}
|
45 |
+
}
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Block_PaymentMethods_Pospayment_Checkout_PendingPayment extends Mage_Core_Block_Template
|
33 |
+
{
|
34 |
+
/**
|
35 |
+
* @return string
|
36 |
+
*/
|
37 |
+
public function getAjaxUrl()
|
38 |
+
{
|
39 |
+
$ajaxUrl = Mage::getUrl('buckaroo3extended/checkout/pospaymentCheckState', array('_secure' => true));
|
40 |
+
|
41 |
+
return $ajaxUrl;
|
42 |
+
}
|
43 |
+
}
|
@@ -39,7 +39,7 @@
|
|
39 |
class TIG_Buckaroo3Extended_Model_Observer_CancelAuthorize extends Mage_Core_Model_Abstract
|
40 |
{
|
41 |
/** @var array */
|
42 |
-
private $_allowedMethods = array('afterpay', 'afterpay2');
|
43 |
|
44 |
/**
|
45 |
* @param Varien_Event_Observer $observer
|
@@ -58,8 +58,9 @@ class TIG_Buckaroo3Extended_Model_Observer_CancelAuthorize extends Mage_Core_Mod
|
|
58 |
|
59 |
if (in_array($paymentMethodCode, $this->_allowedMethods)
|
60 |
&& $paymentMethodAction == Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE
|
|
|
61 |
) {
|
62 |
-
/** @var TIG_Buckaroo3Extended_Model_Request_CancelAuthorize $
|
63 |
$cancelAuthorizeRequest = Mage::getModel(
|
64 |
'buckaroo3extended/request_cancelAuthorize',
|
65 |
array(
|
39 |
class TIG_Buckaroo3Extended_Model_Observer_CancelAuthorize extends Mage_Core_Model_Abstract
|
40 |
{
|
41 |
/** @var array */
|
42 |
+
private $_allowedMethods = array('afterpay', 'afterpay2', 'klarna');
|
43 |
|
44 |
/**
|
45 |
* @param Varien_Event_Observer $observer
|
58 |
|
59 |
if (in_array($paymentMethodCode, $this->_allowedMethods)
|
60 |
&& $paymentMethodAction == Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE
|
61 |
+
&& !$payment->getSkipCancelAuthorize()
|
62 |
) {
|
63 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_CancelAuthorize $cancelAuthorizeRequest */
|
64 |
$cancelAuthorizeRequest = Mage::getModel(
|
65 |
'buckaroo3extended/request_cancelAuthorize',
|
66 |
array(
|
@@ -259,6 +259,10 @@ class TIG_Buckaroo3Extended_Model_PaymentMethods_Afterpay_PaymentMethod extends
|
|
259 |
return false;
|
260 |
}
|
261 |
|
|
|
|
|
|
|
|
|
262 |
$canUseBuckaroo = TIG_Buckaroo3Extended_Model_Request_Availability::canUseBuckaroo($quote);
|
263 |
|
264 |
return $canUseBuckaroo;
|
259 |
return false;
|
260 |
}
|
261 |
|
262 |
+
if ($this->hideForPosPayment()) {
|
263 |
+
return false;
|
264 |
+
}
|
265 |
+
|
266 |
$canUseBuckaroo = TIG_Buckaroo3Extended_Model_Request_Availability::canUseBuckaroo($quote);
|
267 |
|
268 |
return $canUseBuckaroo;
|
@@ -0,0 +1,931 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer extends TIG_Buckaroo3Extended_Model_Observer_Abstract
|
33 |
+
{
|
34 |
+
/** @var string $_code */
|
35 |
+
protected $_code = 'buckaroo3extended_klarna';
|
36 |
+
|
37 |
+
/** @var string $_method */
|
38 |
+
protected $_method = 'klarna';
|
39 |
+
|
40 |
+
/**
|
41 |
+
* @param Varien_Event_Observer $observer
|
42 |
+
*
|
43 |
+
* @return $this
|
44 |
+
*/
|
45 |
+
public function buckaroo3extended_request_setmethod(Varien_Event_Observer $observer)
|
46 |
+
{
|
47 |
+
if ($this->_isChosenMethod($observer) === false) {
|
48 |
+
return $this;
|
49 |
+
}
|
50 |
+
|
51 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
52 |
+
$request = $observer->getRequest();
|
53 |
+
|
54 |
+
$codeBits = explode('_', $this->_code);
|
55 |
+
$code = end($codeBits);
|
56 |
+
|
57 |
+
$request->setMethod($code);
|
58 |
+
|
59 |
+
return $this;
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* @param Varien_Event_Observer $observer
|
64 |
+
*
|
65 |
+
* @return $this
|
66 |
+
*/
|
67 |
+
public function buckaroo3extended_request_addservices(Varien_Event_Observer $observer)
|
68 |
+
{
|
69 |
+
if ($this->_isChosenMethod($observer) === false) {
|
70 |
+
return $this;
|
71 |
+
}
|
72 |
+
|
73 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
74 |
+
$request = $observer->getRequest();
|
75 |
+
$vars = $request->getVars();
|
76 |
+
|
77 |
+
$array = array(
|
78 |
+
$this->_method => array(
|
79 |
+
'action' => 'Reserve', //Authorize
|
80 |
+
'version' => '1',
|
81 |
+
),
|
82 |
+
);
|
83 |
+
|
84 |
+
if (array_key_exists('services', $vars) && is_array($vars['services'])) {
|
85 |
+
$vars['services'] = array_merge($vars['services'], $array);
|
86 |
+
} else {
|
87 |
+
$vars['services'] = $array;
|
88 |
+
}
|
89 |
+
|
90 |
+
$vars['request_type'] = 'DataRequest';
|
91 |
+
|
92 |
+
$request->setVars($vars);
|
93 |
+
|
94 |
+
return $this;
|
95 |
+
}
|
96 |
+
|
97 |
+
/**
|
98 |
+
* @param Varien_Event_Observer $observer
|
99 |
+
*
|
100 |
+
* @return $this
|
101 |
+
*/
|
102 |
+
public function buckaroo3extended_request_addcustomvars(Varien_Event_Observer $observer)
|
103 |
+
{
|
104 |
+
if ($this->_isChosenMethod($observer) === false) {
|
105 |
+
return $this;
|
106 |
+
}
|
107 |
+
|
108 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
109 |
+
$request = $observer->getRequest();
|
110 |
+
$this->_billingInfo = $request->getBillingInfo();
|
111 |
+
$this->_order = $request->getOrder();
|
112 |
+
|
113 |
+
$vars = $request->getVars();
|
114 |
+
|
115 |
+
$this->addAddressesVariables($vars);
|
116 |
+
$this->addAdditionalInfo($vars);
|
117 |
+
$this->addArticlesVariables($vars);
|
118 |
+
|
119 |
+
$request->setVars($vars);
|
120 |
+
|
121 |
+
return $this;
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* @param Varien_Event_Observer $observer
|
126 |
+
*
|
127 |
+
* @return $this
|
128 |
+
*/
|
129 |
+
public function buckaroo3extended_refund_request_addservices(Varien_Event_Observer $observer)
|
130 |
+
{
|
131 |
+
if ($this->_isChosenMethod($observer) === false) {
|
132 |
+
return $this;
|
133 |
+
}
|
134 |
+
|
135 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
136 |
+
$request = $observer->getRequest();
|
137 |
+
$vars = $request->getVars();
|
138 |
+
|
139 |
+
$array = array(
|
140 |
+
'action' => 'Refund',
|
141 |
+
'version' => 1,
|
142 |
+
);
|
143 |
+
|
144 |
+
if (array_key_exists('services', $vars) && is_array($vars['services'][$this->_method])) {
|
145 |
+
$vars['services'][$this->_method] = array_merge($vars['services'][$this->_method], $array);
|
146 |
+
} else {
|
147 |
+
$vars['services'][$this->_method] = $array;
|
148 |
+
}
|
149 |
+
|
150 |
+
$request->setVars($vars);
|
151 |
+
|
152 |
+
return $this;
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* @param Varien_Event_Observer $observer
|
157 |
+
*
|
158 |
+
* @return $this
|
159 |
+
*/
|
160 |
+
public function buckaroo3extended_refund_request_addcustomvars(Varien_Event_Observer $observer)
|
161 |
+
{
|
162 |
+
if ($this->_isChosenMethod($observer) === false) {
|
163 |
+
return $this;
|
164 |
+
}
|
165 |
+
|
166 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
167 |
+
$request = $observer->getRequest();
|
168 |
+
$vars = $request->getVars();
|
169 |
+
|
170 |
+
$vars['channel'] = 'Web';
|
171 |
+
|
172 |
+
if (!isset($vars['currency']) || strlen($vars['currency']) <= 0) {
|
173 |
+
$vars['currency'] = $request->getOrder()->getBaseCurrency()->getCurrencyCode();
|
174 |
+
}
|
175 |
+
|
176 |
+
$request->setVars($vars);
|
177 |
+
|
178 |
+
return $this;
|
179 |
+
}
|
180 |
+
|
181 |
+
/**
|
182 |
+
* @param Varien_Event_Observer $observer
|
183 |
+
*
|
184 |
+
* @return $this
|
185 |
+
*/
|
186 |
+
public function buckaroo3extended_capture_request_addservices(Varien_Event_Observer $observer)
|
187 |
+
{
|
188 |
+
if ($this->_isChosenMethod($observer) === false) {
|
189 |
+
return $this;
|
190 |
+
}
|
191 |
+
|
192 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
193 |
+
$request = $observer->getRequest();
|
194 |
+
$vars = $request->getVars();
|
195 |
+
|
196 |
+
$array = array(
|
197 |
+
$this->_method => array(
|
198 |
+
'action' => 'Pay', //Capture
|
199 |
+
'version' => '1',
|
200 |
+
),
|
201 |
+
);
|
202 |
+
|
203 |
+
if (array_key_exists('services', $vars) && is_array($vars['services'])) {
|
204 |
+
$vars['services'] = array_merge($vars['services'], $array);
|
205 |
+
} else {
|
206 |
+
$vars['services'] = $array;
|
207 |
+
}
|
208 |
+
|
209 |
+
$request->setVars($vars);
|
210 |
+
|
211 |
+
return $this;
|
212 |
+
}
|
213 |
+
|
214 |
+
/**
|
215 |
+
* @param Varien_Event_Observer $observer
|
216 |
+
*
|
217 |
+
* @return $this
|
218 |
+
*/
|
219 |
+
public function buckaroo3extended_capture_request_addcustomvars(Varien_Event_Observer $observer)
|
220 |
+
{
|
221 |
+
if ($this->_isChosenMethod($observer) === false) {
|
222 |
+
return $this;
|
223 |
+
}
|
224 |
+
|
225 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
226 |
+
$request = $observer->getRequest();
|
227 |
+
$this->_billingInfo = $request->getBillingInfo();
|
228 |
+
$this->_order = $request->getOrder();
|
229 |
+
|
230 |
+
$vars = $request->getVars();
|
231 |
+
|
232 |
+
$this->addCaptureAditionalInfo($vars);
|
233 |
+
$this->addPartialArticlesVariables($vars);
|
234 |
+
|
235 |
+
$request->setVars($vars);
|
236 |
+
|
237 |
+
return $this;
|
238 |
+
}
|
239 |
+
|
240 |
+
/**
|
241 |
+
* @param Varien_Event_Observer $observer
|
242 |
+
*
|
243 |
+
* @return $this
|
244 |
+
*/
|
245 |
+
public function buckaroo3extended_cancelauthorize_request_addservices(Varien_Event_Observer $observer)
|
246 |
+
{
|
247 |
+
if ($this->_isChosenMethod($observer) === false) {
|
248 |
+
return $this;
|
249 |
+
}
|
250 |
+
|
251 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
252 |
+
$request = $observer->getRequest();
|
253 |
+
$vars = $request->getVars();
|
254 |
+
|
255 |
+
$array = array(
|
256 |
+
$this->_method => array(
|
257 |
+
'action' => 'CancelReservation', //CancelAuthorize
|
258 |
+
'version' => '1',
|
259 |
+
),
|
260 |
+
);
|
261 |
+
|
262 |
+
if (array_key_exists('services', $vars) && is_array($vars['services'])) {
|
263 |
+
$vars['services'] = array_merge($vars['services'], $array);
|
264 |
+
} else {
|
265 |
+
$vars['services'] = $array;
|
266 |
+
}
|
267 |
+
|
268 |
+
$vars['request_type'] = 'DataRequest';
|
269 |
+
|
270 |
+
$request->setVars($vars);
|
271 |
+
|
272 |
+
return $this;
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* @param Varien_Event_Observer $observer
|
277 |
+
*
|
278 |
+
* @return $this
|
279 |
+
*/
|
280 |
+
public function buckaroo3extended_cancelauthorize_request_addcustomvars(Varien_Event_Observer $observer)
|
281 |
+
{
|
282 |
+
if ($this->_isChosenMethod($observer) === false) {
|
283 |
+
return $this;
|
284 |
+
}
|
285 |
+
|
286 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
287 |
+
$request = $observer->getRequest();
|
288 |
+
$this->_order = $request->getOrder();
|
289 |
+
$vars = $request->getVars();
|
290 |
+
|
291 |
+
$this->addCancelAditionalInfo($vars);
|
292 |
+
|
293 |
+
$request->setVars($vars);
|
294 |
+
|
295 |
+
return $this;
|
296 |
+
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* @param Varien_Event_Observer $observer
|
300 |
+
*
|
301 |
+
* @return $this
|
302 |
+
*/
|
303 |
+
public function buckaroo3extended_response_custom_processing(Varien_Event_Observer $observer)
|
304 |
+
{
|
305 |
+
if ($this->_isChosenMethod($observer) === false) {
|
306 |
+
return $this;
|
307 |
+
}
|
308 |
+
|
309 |
+
/** @var Mage_Sales_Model_Order $order */
|
310 |
+
$order = $observer->getOrder();
|
311 |
+
$responseObject = $observer->getResponseobject();
|
312 |
+
|
313 |
+
if (isset($responseObject->Services) && count($responseObject->Services->Service->ResponseParameter) > 0) {
|
314 |
+
$reserVationNumber = $this->getReservationNumber($responseObject->Services->Service->ResponseParameter);
|
315 |
+
|
316 |
+
if (null !== $reserVationNumber) {
|
317 |
+
$order->setBuckarooReservationNumber($reserVationNumber);
|
318 |
+
$order->save();
|
319 |
+
}
|
320 |
+
}
|
321 |
+
|
322 |
+
if ($responseObject->Status->Code->Code == '791') {
|
323 |
+
$helper = Mage::helper('buckaroo3extended');
|
324 |
+
$method = $order->getPayment()->getMethod();
|
325 |
+
$status = $helper->getNewStates(
|
326 |
+
TIG_Buckaroo3Extended_Helper_Data::BUCKAROO_PENDING_PAYMENT,
|
327 |
+
$order,
|
328 |
+
$method
|
329 |
+
);
|
330 |
+
$message = $helper->__('Klarna is doing an additional check. The status will be known within 24 hours.');
|
331 |
+
|
332 |
+
$order->addStatusHistoryComment($message, $status[1]);
|
333 |
+
$order->save();
|
334 |
+
}
|
335 |
+
|
336 |
+
return $this;
|
337 |
+
}
|
338 |
+
|
339 |
+
/**
|
340 |
+
* @param Varien_Event_Observer $observer
|
341 |
+
*
|
342 |
+
* @return $this
|
343 |
+
* @throws Exception
|
344 |
+
*/
|
345 |
+
public function buckaroo3extended_push_custom_processing(Varien_Event_Observer $observer)
|
346 |
+
{
|
347 |
+
if ($this->_isChosenMethod($observer) === false) {
|
348 |
+
return $this;
|
349 |
+
}
|
350 |
+
|
351 |
+
$response = $observer->getResponse();
|
352 |
+
|
353 |
+
if ($response['status'] == TIG_Buckaroo3Extended_Helper_Data::BUCKAROO_REJECTED) {
|
354 |
+
/** @var Mage_Sales_Model_Order $order */
|
355 |
+
$order = $observer->getOrder();
|
356 |
+
$method = $order->getPayment()->getMethod();
|
357 |
+
$helper = Mage::helper('buckaroo3extended');
|
358 |
+
|
359 |
+
$status = $helper->getNewStates(TIG_Buckaroo3Extended_Helper_Data::BUCKAROO_FAILED, $order, $method);
|
360 |
+
$message = $helper->__('Klarna has rejected the payment request. Please check the Buckaroo Payment Plaza for additional information.');
|
361 |
+
|
362 |
+
// skipCancelAuthorize is a custom, temporary data.
|
363 |
+
// This allows us to cancel an order without sending a call to Buckaroo.
|
364 |
+
$order->getPayment()->setSkipCancelAuthorize(true);
|
365 |
+
$order->cancel();
|
366 |
+
$order->addStatusHistoryComment($message, $status[1]);
|
367 |
+
$order->save();
|
368 |
+
}
|
369 |
+
|
370 |
+
return $this;
|
371 |
+
}
|
372 |
+
|
373 |
+
/**
|
374 |
+
* @param array $vars
|
375 |
+
*/
|
376 |
+
private function addAddressesVariables(&$vars)
|
377 |
+
{
|
378 |
+
$requestArray = array();
|
379 |
+
|
380 |
+
$billingAddress = $this->_order->getBillingAddress();
|
381 |
+
$billingInfo = $this->getAddressInfo($billingAddress);
|
382 |
+
$billingInfo['BillingCompanyName'] = $billingAddress->getCompany();
|
383 |
+
$requestArray = array_merge($requestArray, $billingInfo);
|
384 |
+
|
385 |
+
$shippingAddress = $this->_order->getShippingAddress();
|
386 |
+
$shippingInfo = $this->getAddressInfo($shippingAddress);
|
387 |
+
$shippingInfo['ShippingCompany'] = $shippingAddress->getCompany();
|
388 |
+
$requestArray = array_merge($requestArray, $shippingInfo);
|
389 |
+
|
390 |
+
if (array_key_exists('customVars', $vars) && is_array($vars['customVars'][$this->_method])) {
|
391 |
+
$vars['customVars'][$this->_method] = array_merge($vars['customVars'][$this->_method], $requestArray);
|
392 |
+
} else {
|
393 |
+
$vars['customVars'][$this->_method] = $requestArray;
|
394 |
+
}
|
395 |
+
}
|
396 |
+
|
397 |
+
/**
|
398 |
+
* @param array $vars
|
399 |
+
*/
|
400 |
+
private function addAdditionalInfo(&$vars)
|
401 |
+
{
|
402 |
+
$additionalFields = Mage::getSingleton('checkout/session')->getData('additionalFields');
|
403 |
+
|
404 |
+
$requestArray = array(
|
405 |
+
'Gender' => $additionalFields['BPE_customer_gender'],
|
406 |
+
'OperatingCountry' => Mage::getStoreConfig('general/country/default', $this->_order->getStoreId()),
|
407 |
+
'Pno' => $additionalFields['BPE_customer_dob'],
|
408 |
+
'ShippingSameAsBilling' => $this->shippingSameAsBilling(),
|
409 |
+
);
|
410 |
+
|
411 |
+
if (array_key_exists('customVars', $vars) && is_array($vars['customVars'][$this->_method])) {
|
412 |
+
$vars['customVars'][$this->_method] = array_merge($vars['customVars'][$this->_method], $requestArray);
|
413 |
+
} else {
|
414 |
+
$vars['customVars'][$this->_method] = $requestArray;
|
415 |
+
}
|
416 |
+
|
417 |
+
// Reserve Webservice doesn't support amount and orderId, but does require an invoiceId
|
418 |
+
$vars['invoiceId'] = $vars['orderId'];
|
419 |
+
unset($vars['amountCredit']);
|
420 |
+
unset($vars['amountDebit']);
|
421 |
+
unset($vars['orderId']);
|
422 |
+
}
|
423 |
+
|
424 |
+
/**
|
425 |
+
* @param $vars
|
426 |
+
*/
|
427 |
+
private function addCaptureAditionalInfo(&$vars)
|
428 |
+
{
|
429 |
+
$array = array(
|
430 |
+
'ReservationNumber' => $this->_order->getBuckarooReservationNumber(),
|
431 |
+
'PreserveReservation' => 'false',
|
432 |
+
'SendByMail' => 'false',
|
433 |
+
'SendByEmail' => 'false',
|
434 |
+
);
|
435 |
+
|
436 |
+
$sendInvoiceBy = Mage::getStoreConfig(
|
437 |
+
'buckaroo/buckaroo3extended_' . $this->_method . '/send_invoice_by',
|
438 |
+
Mage::app()->getStore()->getStoreId()
|
439 |
+
);
|
440 |
+
$sendInvoiceBy = ucfirst($sendInvoiceBy);
|
441 |
+
$array['SendBy' . $sendInvoiceBy] = 'true';
|
442 |
+
|
443 |
+
/** @var Mage_Sales_Model_Resource_Order_Invoice_Collection $invoiceCollection */
|
444 |
+
$invoiceCollection = $this->_order->getInvoiceCollection();
|
445 |
+
|
446 |
+
/** @var Mage_Sales_Model_Order_Invoice $lastInvoice */
|
447 |
+
$lastInvoice = $invoiceCollection->getLastItem();
|
448 |
+
|
449 |
+
if ($this->_order->getPayment()->canCapturePartial()
|
450 |
+
&& count($invoiceCollection) > 0
|
451 |
+
&& $lastInvoice->getBaseGrandTotal() < $this->_order->getBaseGrandTotal()) {
|
452 |
+
$array['PreserveReservation'] = 'true';
|
453 |
+
}
|
454 |
+
|
455 |
+
if (array_key_exists('customVars', $vars) && is_array($vars['customVars'][$this->_method])) {
|
456 |
+
$vars['customVars'][$this->_method] = array_merge($vars['customVars'][$this->_method], $array);
|
457 |
+
} else {
|
458 |
+
$vars['customVars'][$this->_method] = $array;
|
459 |
+
}
|
460 |
+
|
461 |
+
// Pay Webservice doesn't support OriginalTransactionKey
|
462 |
+
unset($vars['OriginalTransactionKey']);
|
463 |
+
}
|
464 |
+
|
465 |
+
/**
|
466 |
+
* @param $vars
|
467 |
+
*/
|
468 |
+
private function addCancelAditionalInfo(&$vars)
|
469 |
+
{
|
470 |
+
$array = array(
|
471 |
+
'ReservationNumber' => $this->_order->getBuckarooReservationNumber()
|
472 |
+
);
|
473 |
+
|
474 |
+
if (array_key_exists('customVars', $vars) && is_array($vars['customVars'][$this->_method])) {
|
475 |
+
$vars['customVars'][$this->_method] = array_merge($vars['customVars'][$this->_method], $array);
|
476 |
+
} else {
|
477 |
+
$vars['customVars'][$this->_method] = $array;
|
478 |
+
}
|
479 |
+
|
480 |
+
// CancelReservation Webservice doesn't support amountCredit and originalTransactionKey
|
481 |
+
unset($vars['amountCredit']);
|
482 |
+
unset($vars['OriginalTransactionKey']);
|
483 |
+
}
|
484 |
+
|
485 |
+
/**
|
486 |
+
* @param array $vars
|
487 |
+
*/
|
488 |
+
private function addArticlesVariables(&$vars)
|
489 |
+
{
|
490 |
+
$products = $this->_order->getAllItems();
|
491 |
+
$max = 99;
|
492 |
+
$i = 1;
|
493 |
+
$group = array();
|
494 |
+
|
495 |
+
/** @var $item Mage_Sales_Model_Order_Item */
|
496 |
+
foreach ($products as $item) {
|
497 |
+
if (empty($item) || $item->hasParentItemId()) {
|
498 |
+
continue;
|
499 |
+
}
|
500 |
+
|
501 |
+
$article['ArticleNumber']['value'] = $item->getId();
|
502 |
+
$article['ArticlePrice']['value'] = $item->getBasePrice();
|
503 |
+
$article['ArticleQuantity']['value'] = round($item->getQtyOrdered(), 0);
|
504 |
+
$article['ArticleTitle']['value'] = $item->getName();
|
505 |
+
$article['ArticleVat']['value'] = $item->getTaxPercent();
|
506 |
+
|
507 |
+
$group[$i] = $article;
|
508 |
+
$i++;
|
509 |
+
|
510 |
+
if ($i > $max) {
|
511 |
+
break;
|
512 |
+
}
|
513 |
+
}
|
514 |
+
|
515 |
+
if (Mage::helper('buckaroo3extended')->isEnterprise()) {
|
516 |
+
$gwId = 1;
|
517 |
+
|
518 |
+
if ($this->_order->getGwBasePrice() > 0) {
|
519 |
+
$gwPrice = $this->_order->getGwBasePrice() + $this->_order->getGwBaseTaxAmount();
|
520 |
+
|
521 |
+
$gwOrder = array();
|
522 |
+
$gwOrder['ArticleNumber']['value'] = 'gwo_' . $this->_order->getGwId();
|
523 |
+
$gwOrder['ArticlePrice']['value'] = $gwPrice;
|
524 |
+
$gwOrder['ArticleQuantity']['value'] = 1;
|
525 |
+
$gwOrder['ArticleTitle']['value'] = Mage::helper('buckaroo3extended')->__('Gift Wrapping for Order');
|
526 |
+
$gwOrder['ArticleVat']['value'] = 0.00;
|
527 |
+
|
528 |
+
$group[] = $gwOrder;
|
529 |
+
|
530 |
+
$gwId += $this->_order->getGwId();
|
531 |
+
}
|
532 |
+
|
533 |
+
if ($this->_order->getGwItemsBasePrice() > 0) {
|
534 |
+
$gwiPrice = $this->_order->getGwItemsBasePrice() + $this->_order->getGwItemsBaseTaxAmount();
|
535 |
+
|
536 |
+
$gwiOrder = array();
|
537 |
+
$gwiOrder['ArticleNumber']['value'] = 'gwi_' . $gwId;
|
538 |
+
$gwiOrder['ArticlePrice']['value'] = $gwiPrice;
|
539 |
+
$gwiOrder['ArticleQuantity']['value'] = 1;
|
540 |
+
$gwiOrder['ArticleTitle']['value'] = Mage::helper('buckaroo3extended')->__('Gift Wrapping for Items');
|
541 |
+
$gwiOrder['ArticleVat']['value'] = 0.00;
|
542 |
+
|
543 |
+
$group[] = $gwiOrder;
|
544 |
+
}
|
545 |
+
}
|
546 |
+
|
547 |
+
end($group);
|
548 |
+
$key = (int)key($group);
|
549 |
+
$feeGroupId = $key + 1;
|
550 |
+
$paymentFeeArray = $this->getPaymentFeeLine();
|
551 |
+
|
552 |
+
if (false !== $paymentFeeArray && is_array($paymentFeeArray)) {
|
553 |
+
$group[$feeGroupId] = $paymentFeeArray;
|
554 |
+
}
|
555 |
+
|
556 |
+
$shipmentCostsGroupId = $feeGroupId + 1;
|
557 |
+
$shipmentCostsArray = $this->getShipmentCostsLine();
|
558 |
+
|
559 |
+
if (false !== $shipmentCostsArray && is_array($shipmentCostsArray)) {
|
560 |
+
$group[$shipmentCostsGroupId] = $shipmentCostsArray;
|
561 |
+
}
|
562 |
+
|
563 |
+
$requestArray = array('Articles' => $group);
|
564 |
+
|
565 |
+
if (array_key_exists('customVars', $vars) && is_array($vars['customVars'][$this->_method])) {
|
566 |
+
$vars['customVars'][$this->_method] = array_merge($vars['customVars'][$this->_method], $requestArray);
|
567 |
+
} else {
|
568 |
+
$vars['customVars'][$this->_method] = $requestArray;
|
569 |
+
}
|
570 |
+
}
|
571 |
+
|
572 |
+
/**
|
573 |
+
* @param $vars
|
574 |
+
*/
|
575 |
+
private function addPartialArticlesVariables(&$vars)
|
576 |
+
{
|
577 |
+
/** @var Mage_Sales_Model_Resource_Order_Invoice_Collection $invoiceCollection */
|
578 |
+
$invoiceCollection = $this->_order->getInvoiceCollection();
|
579 |
+
|
580 |
+
$products = $invoiceCollection->getLastItem()->getAllItems();
|
581 |
+
$max = 99;
|
582 |
+
$i = 1;
|
583 |
+
$group = array();
|
584 |
+
|
585 |
+
/** @var Mage_Sales_Model_Order_Invoice_Item $item */
|
586 |
+
foreach ($products as $item) {
|
587 |
+
if (empty($item) || ($item->getOrderItem() && $item->getOrderItem()->getParentItem())) {
|
588 |
+
continue;
|
589 |
+
}
|
590 |
+
|
591 |
+
$article['ArticleNumber']['value'] = $item->getOrderItemId();
|
592 |
+
$article['ArticleQuantity']['value'] = round($item->getQty(), 0);
|
593 |
+
|
594 |
+
$group[$i] = $article;
|
595 |
+
$i++;
|
596 |
+
|
597 |
+
if ($i > $max) {
|
598 |
+
break;
|
599 |
+
}
|
600 |
+
}
|
601 |
+
|
602 |
+
if (Mage::helper('buckaroo3extended')->isEnterprise() && count($invoiceCollection) == 1) {
|
603 |
+
$gwId = 1;
|
604 |
+
|
605 |
+
if ($this->_order->getGwBasePrice() > 0) {
|
606 |
+
$gwOrder = array();
|
607 |
+
$gwOrder['ArticleNumber']['value'] = 'gwo_' . $this->_order->getGwId();
|
608 |
+
$gwOrder['ArticleQuantity']['value'] = 1;
|
609 |
+
|
610 |
+
$group[] = $gwOrder;
|
611 |
+
|
612 |
+
$gwId += $this->_order->getGwId();
|
613 |
+
}
|
614 |
+
|
615 |
+
if ($this->_order->getGwItemsBasePrice() > 0) {
|
616 |
+
$gwiOrder = array();
|
617 |
+
$gwiOrder['ArticleNumber']['value'] = 'gwi_' . $gwId;
|
618 |
+
$gwiOrder['ArticleQuantity']['value'] = 1;
|
619 |
+
|
620 |
+
$group[] = $gwiOrder;
|
621 |
+
}
|
622 |
+
}
|
623 |
+
|
624 |
+
end($group);
|
625 |
+
$key = (int)key($group);
|
626 |
+
$feeGroupId = $key + 1;
|
627 |
+
$paymentFeeArray = $this->getPaymentFeeLine();
|
628 |
+
|
629 |
+
if (false !== $paymentFeeArray && is_array($paymentFeeArray) && count($invoiceCollection) == 1) {
|
630 |
+
unset($paymentFeeArray['ArticlePrice']);
|
631 |
+
unset($paymentFeeArray['ArticleTitle']);
|
632 |
+
unset($paymentFeeArray['ArticleVat']);
|
633 |
+
$group[$feeGroupId] = $paymentFeeArray;
|
634 |
+
}
|
635 |
+
|
636 |
+
$shipmentCostsGroupId = $feeGroupId + 1;
|
637 |
+
$shipmentCostsArray = $this->getShipmentCostsLine();
|
638 |
+
|
639 |
+
if (false !== $shipmentCostsArray && is_array($shipmentCostsArray) && count($invoiceCollection) == 1) {
|
640 |
+
unset($shipmentCostsArray['ArticlePrice']);
|
641 |
+
unset($shipmentCostsArray['ArticleTitle']);
|
642 |
+
unset($shipmentCostsArray['ArticleVat']);
|
643 |
+
$group[$shipmentCostsGroupId] = $shipmentCostsArray;
|
644 |
+
}
|
645 |
+
|
646 |
+
$requestArray = array('Articles' => $group);
|
647 |
+
|
648 |
+
if (array_key_exists('customVars', $vars) && is_array($vars['customVars'][$this->_method])) {
|
649 |
+
$vars['customVars'][$this->_method] = array_merge($vars['customVars'][$this->_method], $requestArray);
|
650 |
+
} else {
|
651 |
+
$vars['customVars'][$this->_method] = $requestArray;
|
652 |
+
}
|
653 |
+
}
|
654 |
+
|
655 |
+
/**
|
656 |
+
* @param Mage_Sales_Model_Order_Address $address
|
657 |
+
*
|
658 |
+
* @return array
|
659 |
+
*/
|
660 |
+
private function getAddressInfo(Mage_Sales_Model_Order_Address $address)
|
661 |
+
{
|
662 |
+
$session = Mage::getSingleton('checkout/session');
|
663 |
+
$additionalFields = $session->getData('additionalFields');
|
664 |
+
|
665 |
+
$addressType = ucfirst($address->getAddressType());
|
666 |
+
$streetFull = $this->processAddress($address->getStreetFull());
|
667 |
+
|
668 |
+
$rawPhoneNumber = $address->getTelephone();
|
669 |
+
if (!is_numeric($rawPhoneNumber) || $rawPhoneNumber == '-') {
|
670 |
+
$rawPhoneNumber = $additionalFields['BPE_customer_phonenumber'];
|
671 |
+
}
|
672 |
+
|
673 |
+
$phoneNumber = $this->processPhoneNumber($rawPhoneNumber);
|
674 |
+
if ($address->getCountryId() == 'BE') {
|
675 |
+
$phoneNumber = $this->processPhoneNumberBe($rawPhoneNumber);
|
676 |
+
}
|
677 |
+
|
678 |
+
// First-, lastname and country always should be the same, so use the billing address to achieve this
|
679 |
+
$billingAddress = $this->_order->getBillingAddress();
|
680 |
+
|
681 |
+
$addressInfo = array(
|
682 |
+
$addressType . 'FirstName' => $billingAddress->getFirstname(),
|
683 |
+
$addressType . 'LastName' => $billingAddress->getLastname(),
|
684 |
+
$addressType . 'Street' => $streetFull['street'],
|
685 |
+
$addressType . 'HouseNumber' => $streetFull['house_number'],
|
686 |
+
$addressType . 'HouseNumberSuffix' => $streetFull['number_addition'],
|
687 |
+
$addressType . 'PostalCode' => $address->getPostcode(),
|
688 |
+
$addressType . 'City' => $address->getCity(),
|
689 |
+
$addressType . 'Country' => $billingAddress->getCountryId(),
|
690 |
+
$addressType . 'Email' => $address->getEmail(),
|
691 |
+
$addressType . 'CellPhoneNumber' => $phoneNumber['clean'],
|
692 |
+
);
|
693 |
+
|
694 |
+
return $addressInfo;
|
695 |
+
}
|
696 |
+
|
697 |
+
/**
|
698 |
+
* Checks if shipping-address is different from billing-address.
|
699 |
+
* Buckaroo needs the bool value as a string, therefore the bool is returned as text.
|
700 |
+
*
|
701 |
+
* @return string
|
702 |
+
*/
|
703 |
+
private function shippingSameAsBilling()
|
704 |
+
{
|
705 |
+
// exclude certain keys that are always different
|
706 |
+
$excludeKeys = array(
|
707 |
+
'entity_id',
|
708 |
+
'customer_address_id',
|
709 |
+
'quote_address_id',
|
710 |
+
'region_id',
|
711 |
+
'customer_id',
|
712 |
+
'address_type'
|
713 |
+
);
|
714 |
+
|
715 |
+
$oBillingAddress = $this->_order->getBillingAddress()->getData();
|
716 |
+
$oShippingAddress = $this->_order->getShippingAddress()->getData();
|
717 |
+
|
718 |
+
$oBillingAddressFiltered = array_diff_key($oBillingAddress, array_flip($excludeKeys));
|
719 |
+
$oShippingAddressFiltered = array_diff_key($oShippingAddress, array_flip($excludeKeys));
|
720 |
+
|
721 |
+
//differentiate the addressess, when some data is different an array with changes will be returned
|
722 |
+
$addressDiff = array_diff($oBillingAddressFiltered, $oShippingAddressFiltered);
|
723 |
+
|
724 |
+
if (empty($addressDiff)) {
|
725 |
+
return "true";
|
726 |
+
}
|
727 |
+
|
728 |
+
return "false";
|
729 |
+
}
|
730 |
+
|
731 |
+
/**
|
732 |
+
* @param $fullStreet
|
733 |
+
*
|
734 |
+
* @return array
|
735 |
+
*/
|
736 |
+
private function processAddress($fullStreet)
|
737 |
+
{
|
738 |
+
//get address from billingInfo
|
739 |
+
$address = $fullStreet;
|
740 |
+
|
741 |
+
$ret = array();
|
742 |
+
$ret['house_number'] = '';
|
743 |
+
$ret['number_addition'] = '';
|
744 |
+
if (preg_match('#^(.*?)([0-9]+)(.*)#s', $address, $matches)) {
|
745 |
+
if ('' == $matches[1]) {
|
746 |
+
// Number at beginning
|
747 |
+
$ret['house_number'] = trim($matches[2]);
|
748 |
+
$ret['street'] = trim($matches[3]);
|
749 |
+
} else {
|
750 |
+
// Number at end
|
751 |
+
$ret['street'] = trim($matches[1]);
|
752 |
+
$ret['house_number'] = trim($matches[2]);
|
753 |
+
$ret['number_addition'] = trim($matches[3]);
|
754 |
+
}
|
755 |
+
} else {
|
756 |
+
// No number
|
757 |
+
$ret['street'] = $address;
|
758 |
+
}
|
759 |
+
|
760 |
+
return $ret;
|
761 |
+
}
|
762 |
+
|
763 |
+
/**
|
764 |
+
* The final output should look like 0031123456789 or 0031612345678
|
765 |
+
* So 13 characters max else number is not valid
|
766 |
+
*
|
767 |
+
* @param $telephoneNumber
|
768 |
+
*
|
769 |
+
* @return array
|
770 |
+
*/
|
771 |
+
private function processPhoneNumber($telephoneNumber)
|
772 |
+
{
|
773 |
+
$number = $telephoneNumber;
|
774 |
+
|
775 |
+
//strip out the non-numeric characters:
|
776 |
+
$match = preg_replace('/[^0-9]/Uis', '', $number);
|
777 |
+
if ($match) {
|
778 |
+
$number = $match;
|
779 |
+
}
|
780 |
+
|
781 |
+
$return = array(
|
782 |
+
"orginal" => $number,
|
783 |
+
"clean" => false,
|
784 |
+
"mobile" => $this->_isMobileNumber($number),
|
785 |
+
"valid" => false
|
786 |
+
);
|
787 |
+
$numberLength = strlen((string)$number);
|
788 |
+
|
789 |
+
if ($numberLength == 13) {
|
790 |
+
$return['valid'] = true;
|
791 |
+
$return['clean'] = $number;
|
792 |
+
} elseif ($numberLength > 13 || $numberLength == 12 || $numberLength == 11) {
|
793 |
+
$return['clean'] = $this->_isValidNotation($number);
|
794 |
+
|
795 |
+
if (strlen((string)$return['clean']) == 13) {
|
796 |
+
$return['valid'] = true;
|
797 |
+
}
|
798 |
+
} elseif ($numberLength == 10) {
|
799 |
+
$return['clean'] = '0031' . substr($number, 1);
|
800 |
+
|
801 |
+
if (strlen((string) $return['clean']) == 13) {
|
802 |
+
$return['valid'] = true;
|
803 |
+
}
|
804 |
+
} else {
|
805 |
+
$return['valid'] = true;
|
806 |
+
$return['clean'] = $number;
|
807 |
+
}
|
808 |
+
|
809 |
+
return $return;
|
810 |
+
}
|
811 |
+
|
812 |
+
/**
|
813 |
+
* The final output should look like: 003212345678 or 0032461234567
|
814 |
+
*
|
815 |
+
* @param $telephoneNumber
|
816 |
+
*
|
817 |
+
* @return array
|
818 |
+
*/
|
819 |
+
private function processPhoneNumberBe($telephoneNumber)
|
820 |
+
{
|
821 |
+
$number = $telephoneNumber;
|
822 |
+
|
823 |
+
//strip out the non-numeric characters:
|
824 |
+
$match = preg_replace('/[^0-9]/Uis', '', $number);
|
825 |
+
if ($match) {
|
826 |
+
$number = $match;
|
827 |
+
}
|
828 |
+
|
829 |
+
$return = array(
|
830 |
+
"orginal" => $number,
|
831 |
+
"clean" => false,
|
832 |
+
"mobile" => $this->_isMobileNumberBe($number),
|
833 |
+
"valid" => false
|
834 |
+
);
|
835 |
+
$numberLength = strlen((string)$number);
|
836 |
+
|
837 |
+
if (($return['mobile'] && $numberLength == 13) || (!$return['mobile'] && $numberLength == 12)) {
|
838 |
+
$return['valid'] = true;
|
839 |
+
$return['clean'] = $number;
|
840 |
+
} elseif ($numberLength > 13
|
841 |
+
|| (!$return['mobile'] && $numberLength > 12)
|
842 |
+
|| ($return['mobile'] && ($numberLength == 11 || $numberLength == 12))
|
843 |
+
|| (!$return['mobile'] && ($numberLength == 10 || $numberLength == 11))
|
844 |
+
) {
|
845 |
+
$return['clean'] = $this->_isValidNotationBe($number);
|
846 |
+
$cleanLength = strlen((string)$return['clean']);
|
847 |
+
|
848 |
+
if (($return['mobile'] && $cleanLength == 13) || (!$return['mobile'] && $cleanLength == 12)) {
|
849 |
+
$return['valid'] = true;
|
850 |
+
}
|
851 |
+
} elseif (($return['mobile'] && $numberLength == 10) || (!$return['mobile'] && $numberLength == 9)) {
|
852 |
+
$return['clean'] = '0032'.substr($number, 1);
|
853 |
+
$cleanLength = strlen((string)$return['clean']);
|
854 |
+
|
855 |
+
if (($return['mobile'] && $cleanLength == 13) || (!$return['mobile'] && $cleanLength == 12)) {
|
856 |
+
$return['valid'] = true;
|
857 |
+
}
|
858 |
+
} else {
|
859 |
+
$return['valid'] = true;
|
860 |
+
$return['clean'] = $number;
|
861 |
+
}
|
862 |
+
|
863 |
+
return $return;
|
864 |
+
}
|
865 |
+
|
866 |
+
/**
|
867 |
+
* @return bool|array
|
868 |
+
*/
|
869 |
+
private function getPaymentFeeLine()
|
870 |
+
{
|
871 |
+
$fee = (double) $this->_order->getBuckarooFee();
|
872 |
+
$feeTax = (double) $this->_order->getBuckarooFeeTax();
|
873 |
+
|
874 |
+
if ($fee > 0) {
|
875 |
+
$article['ArticleNumber']['value'] = 1;
|
876 |
+
$article['ArticlePrice']['value'] = round($fee + $feeTax, 2);
|
877 |
+
$article['ArticleQuantity']['value'] = 1;
|
878 |
+
$article['ArticleTitle']['value'] = 'Servicekosten';
|
879 |
+
$article['ArticleVat']['value'] = 0.00;
|
880 |
+
|
881 |
+
return $article;
|
882 |
+
}
|
883 |
+
|
884 |
+
return false;
|
885 |
+
}
|
886 |
+
|
887 |
+
/**
|
888 |
+
* @return bool
|
889 |
+
*/
|
890 |
+
private function getShipmentCostsLine()
|
891 |
+
{
|
892 |
+
$shippingCosts = round($this->_order->getBaseShippingInclTax(), 2);
|
893 |
+
|
894 |
+
if ($shippingCosts > 0) {
|
895 |
+
$article['ArticleNumber']['value'] = 2;
|
896 |
+
$article['ArticlePrice']['value'] = $shippingCosts;
|
897 |
+
$article['ArticleQuantity']['value'] = 1;
|
898 |
+
$article['ArticleTitle']['value'] = 'Verzendkosten';
|
899 |
+
$article['ArticleVat']['value'] = 0.00;
|
900 |
+
|
901 |
+
return $article;
|
902 |
+
}
|
903 |
+
|
904 |
+
return false;
|
905 |
+
}
|
906 |
+
|
907 |
+
/**
|
908 |
+
* @param array $responseParameters
|
909 |
+
*
|
910 |
+
* @return null|string
|
911 |
+
*/
|
912 |
+
private function getReservationNumber($responseParameters)
|
913 |
+
{
|
914 |
+
if (isset($responseParameters->Name) && $responseParameters->Name == 'ReservationNumber') {
|
915 |
+
return $responseParameters->_;
|
916 |
+
}
|
917 |
+
|
918 |
+
$reservationNumber = null;
|
919 |
+
|
920 |
+
array_walk(
|
921 |
+
$responseParameters,
|
922 |
+
function ($parameter, $index) use (&$reservationNumber) {
|
923 |
+
if (isset($parameter->Name) && $parameter->Name == 'ReservationNumber') {
|
924 |
+
$reservationNumber = $parameter->_;
|
925 |
+
}
|
926 |
+
}
|
927 |
+
);
|
928 |
+
|
929 |
+
return $reservationNumber;
|
930 |
+
}
|
931 |
+
}
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_PaymentMethod extends TIG_Buckaroo3Extended_Model_PaymentMethods_PaymentMethod
|
33 |
+
{
|
34 |
+
public $allowedCurrencies = array(
|
35 |
+
'EUR',
|
36 |
+
);
|
37 |
+
|
38 |
+
protected $_code = 'buckaroo3extended_klarna';
|
39 |
+
|
40 |
+
protected $_formBlockType = 'buckaroo3extended/paymentMethods_klarna_checkout_form';
|
41 |
+
|
42 |
+
/**
|
43 |
+
* @return string
|
44 |
+
*/
|
45 |
+
public function getOrderPlaceRedirectUrl()
|
46 |
+
{
|
47 |
+
$session = Mage::getSingleton('checkout/session');
|
48 |
+
$post = Mage::app()->getRequest()->getPost();
|
49 |
+
|
50 |
+
$postArray = $this->getBPEPostData($post);
|
51 |
+
$session->setData('additionalFields', $postArray);
|
52 |
+
|
53 |
+
return parent::getOrderPlaceRedirectUrl();
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* @param array $post
|
58 |
+
*
|
59 |
+
* @return array
|
60 |
+
*/
|
61 |
+
private function getBPEPostData($post)
|
62 |
+
{
|
63 |
+
$dobPost = $post['payment'][$this->_code];
|
64 |
+
$customerDob = date(
|
65 |
+
'dmY',
|
66 |
+
strtotime($dobPost['year'] . '-' . $dobPost['month'] . '-' . $dobPost['day'])
|
67 |
+
);
|
68 |
+
|
69 |
+
$postArray = array(
|
70 |
+
'BPE_customer_gender' => $post[$this->_code . '_BPE_customer_gender'],
|
71 |
+
'BPE_customer_phonenumber' => $post[$this->_code . '_BPE_customer_phonenumber'],
|
72 |
+
'BPE_customer_dob' => $customerDob,
|
73 |
+
);
|
74 |
+
|
75 |
+
return $postArray;
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Klarna is always in authorize mode, therefore return the authorize payment action when asked for it
|
80 |
+
*
|
81 |
+
* {@inheritdoc}
|
82 |
+
*/
|
83 |
+
public function getConfigData($field, $storeId = null)
|
84 |
+
{
|
85 |
+
if ($field == 'payment_action') {
|
86 |
+
return Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE;
|
87 |
+
}
|
88 |
+
|
89 |
+
return parent::getConfigData($field, $storeId);
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* {@inheritdoc}
|
94 |
+
*/
|
95 |
+
public function capture(Varien_Object $payment, $amount)
|
96 |
+
{
|
97 |
+
if (!$this->canCapture()) {
|
98 |
+
Mage::throwException(Mage::helper('payment')->__('Capture action is not available.'));
|
99 |
+
}
|
100 |
+
|
101 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Capture $captureRequest */
|
102 |
+
$captureRequest = Mage::getModel(
|
103 |
+
'buckaroo3extended/request_capture',
|
104 |
+
array(
|
105 |
+
'payment' => $payment
|
106 |
+
)
|
107 |
+
);
|
108 |
+
|
109 |
+
try {
|
110 |
+
$captureRequest->sendRequest();
|
111 |
+
} catch (Exception $e) {
|
112 |
+
Mage::helper('buckaroo3extended')->logException($e);
|
113 |
+
Mage::throwException($e->getMessage());
|
114 |
+
}
|
115 |
+
|
116 |
+
return $this;
|
117 |
+
}
|
118 |
+
}
|
@@ -228,6 +228,10 @@ class TIG_Buckaroo3Extended_Model_PaymentMethods_PaymentMethod extends Mage_Paym
|
|
228 |
return false;
|
229 |
}
|
230 |
|
|
|
|
|
|
|
|
|
231 |
return parent::isAvailable($quote);
|
232 |
|
233 |
}
|
@@ -269,4 +273,21 @@ class TIG_Buckaroo3Extended_Model_PaymentMethods_PaymentMethod extends Mage_Paym
|
|
269 |
$path = $pathStart.'/'.$this->getCode().'/'.$field;
|
270 |
return Mage::getStoreConfig($path, $storeId);
|
271 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
}
|
228 |
return false;
|
229 |
}
|
230 |
|
231 |
+
if ($this->hideForPosPayment()) {
|
232 |
+
return false;
|
233 |
+
}
|
234 |
+
|
235 |
return parent::isAvailable($quote);
|
236 |
|
237 |
}
|
273 |
$path = $pathStart.'/'.$this->getCode().'/'.$field;
|
274 |
return Mage::getStoreConfig($path, $storeId);
|
275 |
}
|
276 |
+
|
277 |
+
/**
|
278 |
+
* @return bool
|
279 |
+
* @throws Zend_Controller_Request_Exception
|
280 |
+
*/
|
281 |
+
public function hideForPosPayment()
|
282 |
+
{
|
283 |
+
$request = Mage::app()->getRequest();
|
284 |
+
$xHeaderName = TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod::POSPAYMENT_XHEADER;
|
285 |
+
$xHeaderValue = $request->getHeader($xHeaderName);
|
286 |
+
|
287 |
+
if (strlen($xHeaderValue) > 0 && $this->getCode() != 'buckaroo3extended_pospayment') {
|
288 |
+
return true;
|
289 |
+
}
|
290 |
+
|
291 |
+
return false;
|
292 |
+
}
|
293 |
}
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer extends TIG_Buckaroo3Extended_Model_Observer_Abstract
|
33 |
+
{
|
34 |
+
/** @var string */
|
35 |
+
protected $_code = 'buckaroo3extended_pospayment';
|
36 |
+
|
37 |
+
/** @var string */
|
38 |
+
protected $_method = 'pospayment';
|
39 |
+
|
40 |
+
/**
|
41 |
+
* @param Varien_Event_Observer $observer
|
42 |
+
*
|
43 |
+
* @return $this
|
44 |
+
*/
|
45 |
+
public function buckaroo3extended_request_setmethod(Varien_Event_Observer $observer)
|
46 |
+
{
|
47 |
+
if ($this->_isChosenMethod($observer) === false) {
|
48 |
+
return $this;
|
49 |
+
}
|
50 |
+
|
51 |
+
$request = $observer->getRequest();
|
52 |
+
$codeBits = explode('_', $this->_code);
|
53 |
+
|
54 |
+
$code = end($codeBits);
|
55 |
+
$request->setMethod($code);
|
56 |
+
|
57 |
+
return $this;
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* @param Varien_Event_Observer $observer
|
62 |
+
*
|
63 |
+
* @return $this
|
64 |
+
*/
|
65 |
+
public function buckaroo3extended_request_addservices(Varien_Event_Observer $observer)
|
66 |
+
{
|
67 |
+
if ($this->_isChosenMethod($observer) === false) {
|
68 |
+
return $this;
|
69 |
+
}
|
70 |
+
|
71 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
72 |
+
$request = $observer->getRequest();
|
73 |
+
$vars = $request->getVars();
|
74 |
+
|
75 |
+
$array = array(
|
76 |
+
$this->_method => array(
|
77 |
+
'action' => 'Pay',
|
78 |
+
'version' => 2,
|
79 |
+
),
|
80 |
+
);
|
81 |
+
|
82 |
+
if (array_key_exists('services', $vars) && is_array($vars['services'])) {
|
83 |
+
$vars['services'] = array_merge($vars['services'], $array);
|
84 |
+
} else {
|
85 |
+
$vars['services'] = $array;
|
86 |
+
}
|
87 |
+
|
88 |
+
$request->setVars($vars);
|
89 |
+
|
90 |
+
return $this;
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* @param Varien_Event_Observer $observer
|
95 |
+
*
|
96 |
+
* @return $this
|
97 |
+
*/
|
98 |
+
public function buckaroo3extended_request_addcustomvars(Varien_Event_Observer $observer)
|
99 |
+
{
|
100 |
+
if ($this->_isChosenMethod($observer) === false) {
|
101 |
+
return $this;
|
102 |
+
}
|
103 |
+
|
104 |
+
/** @var TIG_Buckaroo3Extended_Model_Request_Abstract $request */
|
105 |
+
$request = $observer->getRequest();
|
106 |
+
$vars = $request->getVars();
|
107 |
+
|
108 |
+
$xHeaderName = TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod::POSPAYMENT_XHEADER;
|
109 |
+
$xHeaderValue = Mage::app()->getRequest()->getHeader($xHeaderName);
|
110 |
+
|
111 |
+
$vars['customVars'][$this->_method]['TerminalID'] = $xHeaderValue;
|
112 |
+
|
113 |
+
$request->setVars($vars);
|
114 |
+
|
115 |
+
return $this;
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* @param Varien_Event_Observer $observer
|
120 |
+
*
|
121 |
+
* @return $this
|
122 |
+
*/
|
123 |
+
public function buckaroo3extended_response_custom_processing(Varien_Event_Observer $observer)
|
124 |
+
{
|
125 |
+
if ($this->_isChosenMethod($observer) === false) {
|
126 |
+
return $this;
|
127 |
+
}
|
128 |
+
|
129 |
+
$returnUrl = Mage::getUrl('buckaroo3extended/checkout/pospaymentPending', array('_secure' => true));
|
130 |
+
|
131 |
+
$responseModel = $observer->getModel();
|
132 |
+
$responseModel->sendDebugEmail();
|
133 |
+
|
134 |
+
Mage::app()->getFrontController()->getResponse()->setRedirect($returnUrl)->sendResponse();
|
135 |
+
exit;
|
136 |
+
}
|
137 |
+
}
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod extends TIG_Buckaroo3Extended_Model_PaymentMethods_PaymentMethod
|
33 |
+
{
|
34 |
+
const POSPAYMENT_XHEADER = 'Pos-Terminal-Id';
|
35 |
+
|
36 |
+
public $allowedCurrencies = array(
|
37 |
+
'EUR',
|
38 |
+
);
|
39 |
+
|
40 |
+
protected $_code = 'buckaroo3extended_pospayment';
|
41 |
+
|
42 |
+
protected $_canOrder = true;
|
43 |
+
protected $_canRefund = false;
|
44 |
+
protected $_canRefundInvoicePartial = false;
|
45 |
+
|
46 |
+
/**
|
47 |
+
* POSPayment may only be used when the terminalid x-header is set and optionally if the User-Agent matches
|
48 |
+
*
|
49 |
+
* {@inheritdoc}
|
50 |
+
*/
|
51 |
+
public function isAvailable($quote = null)
|
52 |
+
{
|
53 |
+
$request = Mage::app()->getRequest();
|
54 |
+
$xHeader = $request->getHeader(self::POSPAYMENT_XHEADER);
|
55 |
+
|
56 |
+
if (strlen($xHeader) <= 0) {
|
57 |
+
return false;
|
58 |
+
}
|
59 |
+
|
60 |
+
$storeId = Mage::app()->getStore()->getId();
|
61 |
+
$userAgent = $request->getHeader('User-Agent');
|
62 |
+
$userAgentConfiguration = trim(Mage::getStoreConfig('buckaroo/' . $this->_code . '/user_agent', $storeId));
|
63 |
+
|
64 |
+
if (strlen($userAgentConfiguration) > 0 && $userAgent != $userAgentConfiguration) {
|
65 |
+
return false;
|
66 |
+
}
|
67 |
+
|
68 |
+
return parent::isAvailable($quote);
|
69 |
+
}
|
70 |
+
}
|
@@ -208,7 +208,7 @@ class TIG_Buckaroo3Extended_Model_Refund_Request_Abstract extends TIG_Buckaroo3E
|
|
208 |
'refund_initiated_in_magento' => 1,
|
209 |
);
|
210 |
|
211 |
-
if (isset($this->_vars['
|
212 |
$this->_vars['customParameters'] = array_merge($this->_vars['customParameters'], $array);
|
213 |
} else {
|
214 |
$this->_vars['customParameters'] = $array;
|
208 |
'refund_initiated_in_magento' => 1,
|
209 |
);
|
210 |
|
211 |
+
if (isset($this->_vars['customParameters'])) {
|
212 |
$this->_vars['customParameters'] = array_merge($this->_vars['customParameters'], $array);
|
213 |
} else {
|
214 |
$this->_vars['customParameters'] = $array;
|
@@ -266,7 +266,6 @@ class TIG_Buckaroo3Extended_Model_Response_Abstract extends TIG_Buckaroo3Extende
|
|
266 |
|
267 |
$parsedResponse = $this->_parseResponse();
|
268 |
$billingCountry = $this->_order->getBillingAddress()->getCountry();
|
269 |
-
$serviceCode = $this->_response->ServiceCode;
|
270 |
|
271 |
$errorMessage = $this->_getCorrectFailureMessage($message);
|
272 |
|
266 |
|
267 |
$parsedResponse = $this->_parseResponse();
|
268 |
$billingCountry = $this->_order->getBillingAddress()->getCountry();
|
|
|
269 |
|
270 |
$errorMessage = $this->_getCorrectFailureMessage($message);
|
271 |
|
@@ -354,7 +354,13 @@ class TIG_Buckaroo3Extended_Model_Response_Push extends TIG_Buckaroo3Extended_Mo
|
|
354 |
} else {
|
355 |
$currencyCode = $this->_order->getOrderCurrencyCode();
|
356 |
}
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
|
359 |
if ($paymentMethod->getConfigPaymentAction() != Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE) {
|
360 |
$description .= 'Total amount of ' . $brqAmount . ' has been paid';
|
354 |
} else {
|
355 |
$currencyCode = $this->_order->getOrderCurrencyCode();
|
356 |
}
|
357 |
+
|
358 |
+
$amountToCurrency = $this->_postArray['brq_amount'];
|
359 |
+
if (!isset($this->_postArray['brq_amount']) || $this->_postArray['brq_amount'] <= 0) {
|
360 |
+
$amountToCurrency = $this->_order->getGrandTotal();
|
361 |
+
}
|
362 |
+
|
363 |
+
$brqAmount = Mage::app()->getLocale()->currency($currencyCode)->toCurrency($amountToCurrency);
|
364 |
|
365 |
if ($paymentMethod->getConfigPaymentAction() != Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE) {
|
366 |
$description .= 'Total amount of ' . $brqAmount . ' has been paid';
|
@@ -140,6 +140,11 @@ final class TIG_Buckaroo3Extended_Model_Soap extends TIG_Buckaroo3Extended_Model
|
|
140 |
}
|
141 |
}
|
142 |
|
|
|
|
|
|
|
|
|
|
|
143 |
$client->thumbprint = $this->_vars['thumbprint'];
|
144 |
|
145 |
// Get the order so we can get the storeId relevant for this order
|
@@ -371,6 +376,7 @@ final class TIG_Buckaroo3Extended_Model_Soap extends TIG_Buckaroo3Extended_Model
|
|
371 |
$requestParameter = new RequestParameter();
|
372 |
$requestParameter->Name = $articleName;
|
373 |
$requestParameter->GroupID = $groupId;
|
|
|
374 |
$requestParameter->_ = $articleValue['value'];
|
375 |
$requestParameters[] = $requestParameter;
|
376 |
}
|
140 |
}
|
141 |
}
|
142 |
|
143 |
+
// The channel set in the vars takes precedence over the above condition
|
144 |
+
if (isset($this->_vars['channel'])) {
|
145 |
+
$requestChannel = $this->_vars['channel'];
|
146 |
+
}
|
147 |
+
|
148 |
$client->thumbprint = $this->_vars['thumbprint'];
|
149 |
|
150 |
// Get the order so we can get the storeId relevant for this order
|
376 |
$requestParameter = new RequestParameter();
|
377 |
$requestParameter->Name = $articleName;
|
378 |
$requestParameter->GroupID = $groupId;
|
379 |
+
$requestParameter->Group = "Article";
|
380 |
$requestParameter->_ = $articleValue['value'];
|
381 |
$requestParameters[] = $requestParameter;
|
382 |
}
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_Sources_Klarna_AvailableCurrencies
|
33 |
+
{
|
34 |
+
/**
|
35 |
+
* @return array
|
36 |
+
*/
|
37 |
+
public function toOptionArray()
|
38 |
+
{
|
39 |
+
$paymentModel = Mage::getModel('buckaroo3extended/paymentMethods_klarna_paymentMethod');
|
40 |
+
$allowedCurrencies = $paymentModel->getAllowedCurrencies();
|
41 |
+
|
42 |
+
$array = array();
|
43 |
+
foreach ($allowedCurrencies as $allowedCurrency) {
|
44 |
+
$array[] = array('value' => $allowedCurrency, 'label' => $allowedCurrency);
|
45 |
+
}
|
46 |
+
|
47 |
+
return $array;
|
48 |
+
}
|
49 |
+
}
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_Sources_Klarna_SendInvoiceBy
|
33 |
+
{
|
34 |
+
const ACTION_EMAIL = 'email';
|
35 |
+
const ACTION_MAIL = 'mail';
|
36 |
+
|
37 |
+
/**
|
38 |
+
* @return array
|
39 |
+
*/
|
40 |
+
public function toOptionArray()
|
41 |
+
{
|
42 |
+
$helper = Mage::helper('buckaroo3extended');
|
43 |
+
|
44 |
+
$array = array(
|
45 |
+
array(
|
46 |
+
'value' => self::ACTION_EMAIL,
|
47 |
+
'label' => $helper->__('By e-mail')
|
48 |
+
),
|
49 |
+
array(
|
50 |
+
'value' => self::ACTION_MAIL,
|
51 |
+
'label' => $helper->__('By mail (Includes fee from Klarna)')
|
52 |
+
),
|
53 |
+
);
|
54 |
+
|
55 |
+
return $array;
|
56 |
+
}
|
57 |
+
}
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Model_Sources_Pospayment_AvailableCurrencies
|
33 |
+
{
|
34 |
+
/**
|
35 |
+
* @return array
|
36 |
+
*/
|
37 |
+
public function toOptionArray()
|
38 |
+
{
|
39 |
+
/** @var TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod $paymentModel */
|
40 |
+
$paymentModel = Mage::getModel('buckaroo3extended/paymentMethods_pospayment_paymentMethod');
|
41 |
+
$allowedCurrencies = $paymentModel->getAllowedCurrencies();
|
42 |
+
|
43 |
+
$array = array();
|
44 |
+
|
45 |
+
foreach ($allowedCurrencies as $allowedCurrency) {
|
46 |
+
$array[] = array(
|
47 |
+
'value' => $allowedCurrency,
|
48 |
+
'label' => $allowedCurrency
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
+
return $array;
|
53 |
+
}
|
54 |
+
}
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
service_name: travis-pro
|
2 |
+
coverage_clover:
|
3 |
+
- build/logs/clover-unit.xml
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env bash
|
2 |
+
|
3 |
+
set -e
|
4 |
+
set -x
|
5 |
+
|
6 |
+
if [ "$CODE_COVERAGE" = "true" ]; then
|
7 |
+
mv /tmp/magento/public/.modman/project/app/code/community/TIG/Buckaroo3Extended/Test/build/ ${TRAVIS_BUILD_DIR}
|
8 |
+
|
9 |
+
sed -i -e "s|/tmp/magento/public/.modman/project/|${TRAVIS_BUILD_DIR}/|g" ${TRAVIS_BUILD_DIR}/build/logs/clover-*.xml
|
10 |
+
|
11 |
+
coveralls -vvv --config app/code/community/TIG/Buckaroo3Extended/Test/.coveralls.yml
|
12 |
+
fi
|
@@ -3,6 +3,7 @@
|
|
3 |
#set -e
|
4 |
set -x
|
5 |
|
|
|
6 |
COMPOSER_REQUIRE="";
|
7 |
|
8 |
which n98-magerun
|
@@ -15,6 +16,21 @@ if [ $? != "0" ]; then
|
|
15 |
COMPOSER_REQUIRE="${COMPOSER_REQUIRE} colinmollenhour/modman"
|
16 |
fi
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
if [ ! -z "${COMPOSER_REQUIRE}" ]; then
|
19 |
composer global require ${COMPOSER_REQUIRE}
|
20 |
else
|
3 |
#set -e
|
4 |
set -x
|
5 |
|
6 |
+
COMPOSER_HOME="$HOME/.composer/vendor/bin/";
|
7 |
COMPOSER_REQUIRE="";
|
8 |
|
9 |
which n98-magerun
|
16 |
COMPOSER_REQUIRE="${COMPOSER_REQUIRE} colinmollenhour/modman"
|
17 |
fi
|
18 |
|
19 |
+
which coveralls
|
20 |
+
if [ $? != "0" ] && [ "${CODE_COVERAGE}" = "true" ]; then
|
21 |
+
COMPOSER_REQUIRE="${COMPOSER_REQUIRE} satooshi/php-coveralls"
|
22 |
+
fi
|
23 |
+
|
24 |
+
if [ ! -f "${COMPOSER_HOME}phpunit" ]; then
|
25 |
+
PHPUNIT_VERSION="4.8.35"
|
26 |
+
|
27 |
+
if [ ${TRAVIS_PHP_VERSION} == "5.6" ] || [ ${TRAVIS_PHP_VERSION} == "7.0" ] || [ ${TRAVIS_PHP_VERSION} == "7.1" ]; then
|
28 |
+
PHPUNIT_VERSION="5.7.15"
|
29 |
+
fi
|
30 |
+
|
31 |
+
COMPOSER_REQUIRE="${COMPOSER_REQUIRE} phpunit/phpunit ${PHPUNIT_VERSION}"
|
32 |
+
fi
|
33 |
+
|
34 |
if [ ! -z "${COMPOSER_REQUIRE}" ]; then
|
35 |
composer global require ${COMPOSER_REQUIRE}
|
36 |
else
|
@@ -12,6 +12,7 @@ CURRENT_DIR=`pwd`
|
|
12 |
BUILDENV="/tmp/magento"
|
13 |
mkdir -p ${BUILDENV}
|
14 |
PUBLIC_DIR="${BUILDENV}/public/"
|
|
|
15 |
|
16 |
mkdir -p "${PUBLIC_DIR}"
|
17 |
|
@@ -46,4 +47,4 @@ cd "${PUBLIC_DIR}/.modman/project";
|
|
46 |
mkdir -p "${PUBLIC_DIR}var/session";
|
47 |
chmod -R 777 "${PUBLIC_DIR}var/session";
|
48 |
|
49 |
-
phpunit -c "${PUBLIC_DIR}/app/code/community/TIG/Buckaroo3Extended/Test/phpunit.xml"
|
12 |
BUILDENV="/tmp/magento"
|
13 |
mkdir -p ${BUILDENV}
|
14 |
PUBLIC_DIR="${BUILDENV}/public/"
|
15 |
+
COMPOSER_HOME="$HOME/.composer/vendor/bin/"
|
16 |
|
17 |
mkdir -p "${PUBLIC_DIR}"
|
18 |
|
47 |
mkdir -p "${PUBLIC_DIR}var/session";
|
48 |
chmod -R 777 "${PUBLIC_DIR}var/session";
|
49 |
|
50 |
+
${COMPOSER_HOME}phpunit -c "${PUBLIC_DIR}/app/code/community/TIG/Buckaroo3Extended/Test/phpunit.xml"
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Block_PaymentMethods_Klarna_Adminhtml_System_Config_AdvancedbtnTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Block_PaymentMethods_Klarna_Adminhtml_System_Config_Advancedbtn */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return null|TIG_Buckaroo3Extended_Block_PaymentMethods_Klarna_Adminhtml_System_Config_Advancedbtn
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Block_PaymentMethods_Klarna_Adminhtml_System_Config_Advancedbtn();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function testRender()
|
51 |
+
{
|
52 |
+
$instance = $this->_getInstance();
|
53 |
+
$result = $instance->toHtml();
|
54 |
+
|
55 |
+
$this->assertInternalType('string', $result);
|
56 |
+
}
|
57 |
+
}
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Block_PaymentMethods_Pospayment_Adminhtml_System_Config_AdvancedbtnTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Block_PaymentMethods_Pospayment_Adminhtml_System_Config_Advancedbtn */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return TIG_Buckaroo3Extended_Block_PaymentMethods_Pospayment_Adminhtml_System_Config_Advancedbtn
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Block_PaymentMethods_Pospayment_Adminhtml_System_Config_Advancedbtn();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function testRender()
|
51 |
+
{
|
52 |
+
$instance = $this->_getInstance();
|
53 |
+
$result = $instance->toHtml();
|
54 |
+
|
55 |
+
$this->assertInternalType('string', $result);
|
56 |
+
}
|
57 |
+
}
|
@@ -112,6 +112,11 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_Observer_CancelAuthorizeTest extends
|
|
112 |
'buckaroo3extended_afterpay',
|
113 |
'never'
|
114 |
),
|
|
|
|
|
|
|
|
|
|
|
115 |
array(
|
116 |
Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE,
|
117 |
'buckaroo3extended_notAllowedMethod',
|
112 |
'buckaroo3extended_afterpay',
|
113 |
'never'
|
114 |
),
|
115 |
+
array(
|
116 |
+
Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE,
|
117 |
+
'buckaroo3extended_klarna',
|
118 |
+
'once'
|
119 |
+
),
|
120 |
array(
|
121 |
Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE,
|
122 |
'buckaroo3extended_notAllowedMethod',
|
@@ -75,10 +75,7 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay_PaymentMetho
|
|
75 |
protected function _getInstance()
|
76 |
{
|
77 |
if ($this->_instance === null) {
|
78 |
-
$this->_instance =
|
79 |
-
->getMockBuilder('TIG_Buckaroo3Extended_Model_PaymentMethods_Afterpay_PaymentMethod')
|
80 |
-
->setMethods(array('getConfigPaymentAction', 'getInfoInstance'))
|
81 |
-
->getMock();
|
82 |
}
|
83 |
|
84 |
return $this->_instance;
|
@@ -158,10 +155,7 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay_PaymentMetho
|
|
158 |
public function testCanCapture($paymentAction, $expected)
|
159 |
{
|
160 |
$instance = $this->_getInstance();
|
161 |
-
|
162 |
-
->method('getConfigPaymentAction')
|
163 |
-
->will($this->returnValue($paymentAction));
|
164 |
-
|
165 |
$result = $instance->canCapture();
|
166 |
|
167 |
$this->assertEquals($expected, $result);
|
@@ -184,10 +178,10 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay_PaymentMetho
|
|
184 |
public function testShouldThrowAnExceptionIfCantCapture()
|
185 |
{
|
186 |
$instance = $this->_getInstance();
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
$instance->capture(new Varien_Object(), 0);
|
192 |
}
|
193 |
|
@@ -196,9 +190,7 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay_PaymentMetho
|
|
196 |
$mockPaymentInfo = $this->_getMockPayment();
|
197 |
|
198 |
$instance = $this->_getInstance();
|
199 |
-
$instance->
|
200 |
-
->method('getInfoInstance')
|
201 |
-
->will($this->returnValue($mockPaymentInfo));
|
202 |
|
203 |
$postData = array(
|
204 |
$instance->getCode() . '_bpe_accept' => 'checked',
|
75 |
protected function _getInstance()
|
76 |
{
|
77 |
if ($this->_instance === null) {
|
78 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_PaymentMethods_Afterpay_PaymentMethod();
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
return $this->_instance;
|
155 |
public function testCanCapture($paymentAction, $expected)
|
156 |
{
|
157 |
$instance = $this->_getInstance();
|
158 |
+
Mage::app()->getStore()->setConfig('buckaroo/buckaroo3extended_afterpay/payment_action', $paymentAction);
|
|
|
|
|
|
|
159 |
$result = $instance->canCapture();
|
160 |
|
161 |
$this->assertEquals($expected, $result);
|
178 |
public function testShouldThrowAnExceptionIfCantCapture()
|
179 |
{
|
180 |
$instance = $this->_getInstance();
|
181 |
+
Mage::app()->getStore()->setConfig(
|
182 |
+
'buckaroo/buckaroo3extended_afterpay/payment_action',
|
183 |
+
Mage_Payment_Model_Method_Abstract::ACTION_ORDER
|
184 |
+
);
|
185 |
$instance->capture(new Varien_Object(), 0);
|
186 |
}
|
187 |
|
190 |
$mockPaymentInfo = $this->_getMockPayment();
|
191 |
|
192 |
$instance = $this->_getInstance();
|
193 |
+
$instance->setData('info_instance', $mockPaymentInfo);
|
|
|
|
|
194 |
|
195 |
$postData = array(
|
196 |
$instance->getCode() . '_bpe_accept' => 'checked',
|
@@ -75,10 +75,7 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay2_PaymentMeth
|
|
75 |
protected function _getInstance()
|
76 |
{
|
77 |
if ($this->_instance === null) {
|
78 |
-
$this->_instance =
|
79 |
-
->getMockBuilder('TIG_Buckaroo3Extended_Model_PaymentMethods_Afterpay2_PaymentMethod')
|
80 |
-
->setMethods(array('getConfigPaymentAction', 'getInfoInstance'))
|
81 |
-
->getMock();
|
82 |
}
|
83 |
|
84 |
return $this->_instance;
|
@@ -158,10 +155,7 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay2_PaymentMeth
|
|
158 |
public function testCanCapture($paymentAction, $expected)
|
159 |
{
|
160 |
$instance = $this->_getInstance();
|
161 |
-
|
162 |
-
->method('getConfigPaymentAction')
|
163 |
-
->will($this->returnValue($paymentAction));
|
164 |
-
|
165 |
$result = $instance->canCapture();
|
166 |
|
167 |
$this->assertEquals($expected, $result);
|
@@ -184,10 +178,10 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay2_PaymentMeth
|
|
184 |
public function testShouldThrowAnExceptionIfCantCapture()
|
185 |
{
|
186 |
$instance = $this->_getInstance();
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
$instance->capture(new Varien_Object(), 0);
|
192 |
}
|
193 |
|
@@ -196,9 +190,7 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Afterpay2_PaymentMeth
|
|
196 |
$mockPaymentInfo = $this->_getMockPayment();
|
197 |
|
198 |
$instance = $this->_getInstance();
|
199 |
-
$instance->
|
200 |
-
->method('getInfoInstance')
|
201 |
-
->will($this->returnValue($mockPaymentInfo));
|
202 |
|
203 |
$postData = array(
|
204 |
$instance->getCode() . '_bpe_accept' => 'checked',
|
75 |
protected function _getInstance()
|
76 |
{
|
77 |
if ($this->_instance === null) {
|
78 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_PaymentMethods_Afterpay2_PaymentMethod();
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
return $this->_instance;
|
155 |
public function testCanCapture($paymentAction, $expected)
|
156 |
{
|
157 |
$instance = $this->_getInstance();
|
158 |
+
Mage::app()->getStore()->setConfig('buckaroo/buckaroo3extended_afterpay2/payment_action', $paymentAction);
|
|
|
|
|
|
|
159 |
$result = $instance->canCapture();
|
160 |
|
161 |
$this->assertEquals($expected, $result);
|
178 |
public function testShouldThrowAnExceptionIfCantCapture()
|
179 |
{
|
180 |
$instance = $this->_getInstance();
|
181 |
+
Mage::app()->getStore()->setConfig(
|
182 |
+
'buckaroo/buckaroo3extended_afterpay2/payment_action',
|
183 |
+
Mage_Payment_Model_Method_Abstract::ACTION_ORDER
|
184 |
+
);
|
185 |
$instance->capture(new Varien_Object(), 0);
|
186 |
}
|
187 |
|
190 |
$mockPaymentInfo = $this->_getMockPayment();
|
191 |
|
192 |
$instance = $this->_getInstance();
|
193 |
+
$instance->setData('info_instance', $mockPaymentInfo);
|
|
|
|
|
194 |
|
195 |
$postData = array(
|
196 |
$instance->getCode() . '_bpe_accept' => 'checked',
|
@@ -0,0 +1,613 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Klarna_ObserverTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return null|TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* @return PHPUnit_Framework_MockObject_MockObject|Mage_Sales_Model_Order
|
52 |
+
*/
|
53 |
+
private function getMockOrder()
|
54 |
+
{
|
55 |
+
$mockOrderAddress = $this->getMockBuilder('Mage_Sales_Model_Order_Address')->setMethods(null)->getMock();
|
56 |
+
|
57 |
+
$mockPayment = $this->getMockBuilder('Mage_Sales_Model_Order_Payment')
|
58 |
+
->setMethods(array('getMethod'))
|
59 |
+
->getMock();
|
60 |
+
$mockPayment->expects($this->any())->method('getMethod')->willReturn('buckaroo3extended_klarna');
|
61 |
+
|
62 |
+
$mockOrder = $this->getMockBuilder('Mage_Sales_Model_Order')
|
63 |
+
->setMethods(array(
|
64 |
+
'getPayment',
|
65 |
+
'getPaymentMethodUsedForTransaction',
|
66 |
+
'getBillingAddress',
|
67 |
+
'getShippingAddress'
|
68 |
+
))
|
69 |
+
->getMock();
|
70 |
+
$mockOrder->expects($this->any())->method('getPayment')->will($this->returnValue($mockPayment));
|
71 |
+
$mockOrder->expects($this->any())->method('getPaymentMethodUsedForTransaction')->willReturn(false);
|
72 |
+
$mockOrder->expects($this->any())->method('getBillingAddress')->willReturn($mockOrderAddress);
|
73 |
+
$mockOrder->expects($this->any())->method('getShippingAddress')->willReturn($mockOrderAddress);
|
74 |
+
|
75 |
+
return $mockOrder;
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* @return PHPUnit_Framework_MockObject_MockObject|Varien_Event_Observer
|
80 |
+
*/
|
81 |
+
private function getMockObserver()
|
82 |
+
{
|
83 |
+
$mockOrder = $this->getMockOrder();
|
84 |
+
|
85 |
+
$mockRequest = $this->getMockBuilder('TIG_Buckaroo3Extended_Model_Request_Abstract')
|
86 |
+
->setMethods(array('getOrder'))
|
87 |
+
->getMock();
|
88 |
+
$mockRequest->expects($this->any())->method('getOrder')->willReturn($mockOrder);
|
89 |
+
|
90 |
+
$mockObserver = $this->getMockBuilder('Varien_Event_Observer')
|
91 |
+
->setMethods(array('getOrder', 'getRequest'))
|
92 |
+
->getMock();
|
93 |
+
$mockObserver->expects($this->any())->method('getOrder')->willReturn($mockOrder);
|
94 |
+
$mockObserver->expects($this->any())->method('getRequest')->willReturn($mockRequest);
|
95 |
+
|
96 |
+
return $mockObserver;
|
97 |
+
}
|
98 |
+
|
99 |
+
public function testBuckaroo3extended_request_setmethod()
|
100 |
+
{
|
101 |
+
$mockObserver = $this->getMockObserver();
|
102 |
+
|
103 |
+
$instance = $this->_getInstance();
|
104 |
+
$result = $instance->buckaroo3extended_request_setmethod($mockObserver);
|
105 |
+
$requestMethodResult = $mockObserver->getRequest()->getMethod();
|
106 |
+
|
107 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
108 |
+
$this->assertEquals('klarna', $requestMethodResult);
|
109 |
+
}
|
110 |
+
|
111 |
+
public function testBuckaroo3extended_request_addservices()
|
112 |
+
{
|
113 |
+
$mockObserver = $this->getMockObserver();
|
114 |
+
|
115 |
+
$instance = $this->_getInstance();
|
116 |
+
$result = $instance->buckaroo3extended_request_addservices($mockObserver);
|
117 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
118 |
+
|
119 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
120 |
+
$this->assertEquals('DataRequest', $requestVarsResult['request_type']);
|
121 |
+
$this->assertEquals('Reserve', $requestVarsResult['services']['klarna']['action']);
|
122 |
+
}
|
123 |
+
|
124 |
+
public function testBuckaroo3extended_request_addcustomvars()
|
125 |
+
{
|
126 |
+
$randOrdernumber = rand(1000, 9999);
|
127 |
+
|
128 |
+
$mockObserver = $this->getMockObserver();
|
129 |
+
$mockRequest = $mockObserver->getRequest();
|
130 |
+
$mockRequest->setVars(array('orderId' => $randOrdernumber));
|
131 |
+
|
132 |
+
$instance = $this->_getInstance();
|
133 |
+
$result = $instance->buckaroo3extended_request_addcustomvars($mockObserver);
|
134 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
135 |
+
|
136 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
137 |
+
$this->assertArrayHasKey('customVars', $requestVarsResult);
|
138 |
+
$this->assertArrayHasKey('Articles', $requestVarsResult['customVars']['klarna']);
|
139 |
+
|
140 |
+
$this->assertEquals($randOrdernumber, $requestVarsResult['invoiceId']);
|
141 |
+
$this->assertArrayNotHasKey('amountCredit', $requestVarsResult);
|
142 |
+
$this->assertArrayNotHasKey('amountDebit', $requestVarsResult);
|
143 |
+
$this->assertArrayNotHasKey('orderId', $requestVarsResult);
|
144 |
+
}
|
145 |
+
|
146 |
+
public function testBuckaroo3extended_refund_request_addservices()
|
147 |
+
{
|
148 |
+
$mockObserver = $this->getMockObserver();
|
149 |
+
|
150 |
+
$instance = $this->_getInstance();
|
151 |
+
$result = $instance->buckaroo3extended_refund_request_addservices($mockObserver);
|
152 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
153 |
+
|
154 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
155 |
+
$this->assertEquals('Refund', $requestVarsResult['services']['klarna']['action']);
|
156 |
+
}
|
157 |
+
|
158 |
+
public function testBuckaroo3extended_refund_request_addcustomvars()
|
159 |
+
{
|
160 |
+
$mockObserver = $this->getMockObserver();
|
161 |
+
|
162 |
+
$instance = $this->_getInstance();
|
163 |
+
$result = $instance->buckaroo3extended_refund_request_addcustomvars($mockObserver);
|
164 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
165 |
+
|
166 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
167 |
+
$this->assertEquals('Web', $requestVarsResult['channel']);
|
168 |
+
}
|
169 |
+
|
170 |
+
public function testBuckaroo3extended_capture_request_addservices()
|
171 |
+
{
|
172 |
+
$mockObserver = $this->getMockObserver();
|
173 |
+
|
174 |
+
$instance = $this->_getInstance();
|
175 |
+
$result = $instance->buckaroo3extended_capture_request_addservices($mockObserver);
|
176 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
177 |
+
|
178 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
179 |
+
$this->assertEquals('Pay', $requestVarsResult['services']['klarna']['action']);
|
180 |
+
}
|
181 |
+
|
182 |
+
public function testBuckaroo3extended_capture_request_addcustomvars()
|
183 |
+
{
|
184 |
+
$mockObserver = $this->getMockObserver();
|
185 |
+
|
186 |
+
$instance = $this->_getInstance();
|
187 |
+
$result = $instance->buckaroo3extended_capture_request_addcustomvars($mockObserver);
|
188 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
189 |
+
|
190 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
191 |
+
$this->assertArrayHasKey('customVars', $requestVarsResult);
|
192 |
+
$this->assertArrayHasKey('Articles', $requestVarsResult['customVars']['klarna']);
|
193 |
+
$this->assertArrayNotHasKey('OriginalTransactionKey', $requestVarsResult);
|
194 |
+
}
|
195 |
+
|
196 |
+
public function testBuckaroo3extended_cancelauthorize_request_addservices()
|
197 |
+
{
|
198 |
+
$mockObserver = $this->getMockObserver();
|
199 |
+
|
200 |
+
$instance = $this->_getInstance();
|
201 |
+
$result = $instance->buckaroo3extended_cancelauthorize_request_addservices($mockObserver);
|
202 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
203 |
+
|
204 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
205 |
+
$this->assertEquals('CancelReservation', $requestVarsResult['services']['klarna']['action']);
|
206 |
+
}
|
207 |
+
|
208 |
+
public function testBuckaroo3extended_cancelauthorize_request_addcustomvars()
|
209 |
+
{
|
210 |
+
$mockObserver = $this->getMockObserver();
|
211 |
+
|
212 |
+
$instance = $this->_getInstance();
|
213 |
+
$result = $instance->buckaroo3extended_cancelauthorize_request_addcustomvars($mockObserver);
|
214 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
215 |
+
|
216 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_Observer', $result);
|
217 |
+
|
218 |
+
$this->assertArrayHasKey('customVars', $requestVarsResult);
|
219 |
+
$this->assertArrayHasKey('ReservationNumber', $requestVarsResult['customVars']['klarna']);
|
220 |
+
|
221 |
+
$this->assertArrayNotHasKey('amountCredit', $requestVarsResult);
|
222 |
+
$this->assertArrayNotHasKey('OriginalTransactionKey', $requestVarsResult);
|
223 |
+
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* @return array
|
227 |
+
*/
|
228 |
+
public function shippingSameAsBillingProvider()
|
229 |
+
{
|
230 |
+
return array(
|
231 |
+
'Same Addresses' => array(
|
232 |
+
array(
|
233 |
+
'street' => 'kabelweg',
|
234 |
+
'zipcode' => '1014BA'
|
235 |
+
),
|
236 |
+
array(
|
237 |
+
'street' => 'kabelweg',
|
238 |
+
'zipcode' => '1014BA'
|
239 |
+
),
|
240 |
+
'true'
|
241 |
+
),
|
242 |
+
'Different Addresses' => array(
|
243 |
+
array(
|
244 |
+
'street' => 'kabelweg',
|
245 |
+
'zipcode' => '1014BA'
|
246 |
+
),
|
247 |
+
array(
|
248 |
+
'street' => 'abc street',
|
249 |
+
'zipcode' => '1234 DC'
|
250 |
+
),
|
251 |
+
'false'
|
252 |
+
)
|
253 |
+
);
|
254 |
+
}
|
255 |
+
|
256 |
+
/**
|
257 |
+
* @param $billingData
|
258 |
+
* @param $shippingData
|
259 |
+
* @param $expected
|
260 |
+
*
|
261 |
+
* @dataProvider shippingSameAsBillingProvider
|
262 |
+
*/
|
263 |
+
public function testShippingSameAsBilling($billingData, $shippingData, $expected)
|
264 |
+
{
|
265 |
+
$mockBillingAddress = $this->getMockBuilder('Mage_Sales_Model_Order_Address')
|
266 |
+
->setMethods(array('getData'))
|
267 |
+
->getMock();
|
268 |
+
$mockBillingAddress->expects($this->any())->method('getData')->willReturn($billingData);
|
269 |
+
|
270 |
+
$mockShippingAddress = $this->getMockBuilder('Mage_Sales_Model_Order_Address')
|
271 |
+
->setMethods(array('getData'))
|
272 |
+
->getMock();
|
273 |
+
$mockShippingAddress->expects($this->any())->method('getData')->willReturn($shippingData);
|
274 |
+
|
275 |
+
$mockOrder = $this->getMockBuilder('Mage_Sales_Model_Order')
|
276 |
+
->setMethods(array('getBillingAddress', 'getShippingAddress'))
|
277 |
+
->getMock();
|
278 |
+
$mockOrder->expects($this->any())->method('getBillingAddress')->willReturn($mockBillingAddress);
|
279 |
+
$mockOrder->expects($this->any())->method('getShippingAddress')->willReturn($mockShippingAddress);
|
280 |
+
|
281 |
+
$instance = $this->_getInstance();
|
282 |
+
$this->setProperty('_order', $mockOrder, $instance);
|
283 |
+
$result = $this->invokeMethod($instance, 'shippingSameAsBilling');
|
284 |
+
|
285 |
+
$this->assertEquals($expected, $result);
|
286 |
+
}
|
287 |
+
|
288 |
+
/**
|
289 |
+
* @return array
|
290 |
+
*/
|
291 |
+
public function processAddressProvider()
|
292 |
+
{
|
293 |
+
return array(
|
294 |
+
'only street' => array(
|
295 |
+
'Kabelweg',
|
296 |
+
array(
|
297 |
+
'street' => 'Kabelweg',
|
298 |
+
'house_number' => '',
|
299 |
+
'number_addition' => ''
|
300 |
+
)
|
301 |
+
),
|
302 |
+
'with housenumber' => array(
|
303 |
+
'Kabelweg 37',
|
304 |
+
array(
|
305 |
+
'street' => 'Kabelweg',
|
306 |
+
'house_number' => '37',
|
307 |
+
'number_addition' => ''
|
308 |
+
)
|
309 |
+
),
|
310 |
+
'with number addition' => array(
|
311 |
+
'Kabelweg 37 A',
|
312 |
+
array(
|
313 |
+
'street' => 'Kabelweg',
|
314 |
+
'house_number' => '37',
|
315 |
+
'number_addition' => 'A'
|
316 |
+
)
|
317 |
+
),
|
318 |
+
);
|
319 |
+
}
|
320 |
+
|
321 |
+
/**
|
322 |
+
* @param $fullStreet
|
323 |
+
* @param $expected
|
324 |
+
*
|
325 |
+
* @dataProvider processAddressProvider
|
326 |
+
*/
|
327 |
+
public function testProcessAddress($fullStreet, $expected)
|
328 |
+
{
|
329 |
+
$instance = $this->_getInstance();
|
330 |
+
$result = $this->invokeMethod($instance, 'processAddress', array($fullStreet));
|
331 |
+
|
332 |
+
$this->assertEquals($expected, $result);
|
333 |
+
}
|
334 |
+
|
335 |
+
/**
|
336 |
+
* @return array
|
337 |
+
*/
|
338 |
+
public function processPhoneNumberProvider()
|
339 |
+
{
|
340 |
+
return array(
|
341 |
+
'phone 13 length' => array(
|
342 |
+
'0031201234567',
|
343 |
+
'0031201234567',
|
344 |
+
false
|
345 |
+
),
|
346 |
+
'mobile 13 length' => array(
|
347 |
+
'0031612345678',
|
348 |
+
'0031612345678',
|
349 |
+
true
|
350 |
+
),
|
351 |
+
'phone 12 length' => array(
|
352 |
+
'+31201234567',
|
353 |
+
'0031201234567',
|
354 |
+
false
|
355 |
+
),
|
356 |
+
'mobile 12 length' => array(
|
357 |
+
'+31612345678',
|
358 |
+
'0031612345678',
|
359 |
+
true
|
360 |
+
),
|
361 |
+
'phone 11 length' => array(
|
362 |
+
'31201234567',
|
363 |
+
'0031201234567',
|
364 |
+
false
|
365 |
+
),
|
366 |
+
'mobile 11 length' => array(
|
367 |
+
'31612345678',
|
368 |
+
'0031612345678',
|
369 |
+
true
|
370 |
+
),
|
371 |
+
'phone 10 length' => array(
|
372 |
+
'0201234567',
|
373 |
+
'0031201234567',
|
374 |
+
false
|
375 |
+
),
|
376 |
+
'mobile 10 length' => array(
|
377 |
+
'0612345678',
|
378 |
+
'0031612345678',
|
379 |
+
true
|
380 |
+
),
|
381 |
+
);
|
382 |
+
}
|
383 |
+
|
384 |
+
/**
|
385 |
+
* @param $telephoneNumber
|
386 |
+
* @param $expectedClean
|
387 |
+
* @param $expectedMobile
|
388 |
+
*
|
389 |
+
* @dataProvider processPhoneNumberProvider
|
390 |
+
*/
|
391 |
+
public function testProcessPhoneNumber($telephoneNumber, $expectedClean, $expectedMobile)
|
392 |
+
{
|
393 |
+
$instance = $this->_getInstance();
|
394 |
+
$result = $this->invokeMethod($instance, 'processPhoneNumber', array($telephoneNumber));
|
395 |
+
|
396 |
+
$this->assertEquals($expectedClean, $result['clean']);
|
397 |
+
$this->assertEquals($expectedMobile, $result['mobile']);
|
398 |
+
}
|
399 |
+
|
400 |
+
/**
|
401 |
+
* @return array
|
402 |
+
*/
|
403 |
+
public function processPhoneNumberBeProvider()
|
404 |
+
{
|
405 |
+
return array(
|
406 |
+
'phone 13 length' => array(
|
407 |
+
'003212345678',
|
408 |
+
'003212345678',
|
409 |
+
false
|
410 |
+
),
|
411 |
+
'mobile 13 length' => array(
|
412 |
+
'0032461234567',
|
413 |
+
'0032461234567',
|
414 |
+
true
|
415 |
+
),
|
416 |
+
'phone 12 length' => array(
|
417 |
+
'+3212345678',
|
418 |
+
'003212345678',
|
419 |
+
false
|
420 |
+
),
|
421 |
+
'mobile 12 length' => array(
|
422 |
+
'+32461234567',
|
423 |
+
'0032461234567',
|
424 |
+
true
|
425 |
+
),
|
426 |
+
'phone 11 length' => array(
|
427 |
+
'3212345678',
|
428 |
+
'003212345678',
|
429 |
+
false
|
430 |
+
),
|
431 |
+
'mobile 11 length' => array(
|
432 |
+
'32461234567',
|
433 |
+
'0032461234567',
|
434 |
+
true
|
435 |
+
),
|
436 |
+
'phone 10 length' => array(
|
437 |
+
'012345678',
|
438 |
+
'003212345678',
|
439 |
+
false
|
440 |
+
),
|
441 |
+
'mobile 10 length' => array(
|
442 |
+
'0461234567',
|
443 |
+
'0032461234567',
|
444 |
+
true
|
445 |
+
),
|
446 |
+
);
|
447 |
+
}
|
448 |
+
|
449 |
+
/**
|
450 |
+
* @param $telephoneNumber
|
451 |
+
* @param $expectedClean
|
452 |
+
* @param $expectedMobile
|
453 |
+
*
|
454 |
+
* @dataProvider processPhoneNumberBeProvider
|
455 |
+
*/
|
456 |
+
public function testProcessPhoneNumberBe($telephoneNumber, $expectedClean, $expectedMobile)
|
457 |
+
{
|
458 |
+
$instance = $this->_getInstance();
|
459 |
+
$result = $this->invokeMethod($instance, 'processPhoneNumberBe', array($telephoneNumber));
|
460 |
+
|
461 |
+
$this->assertEquals($expectedClean, $result['clean']);
|
462 |
+
$this->assertEquals($expectedMobile, $result['mobile']);
|
463 |
+
}
|
464 |
+
|
465 |
+
/**
|
466 |
+
* @return array
|
467 |
+
*/
|
468 |
+
public function getPaymentFeeLineProvider()
|
469 |
+
{
|
470 |
+
return array(
|
471 |
+
'excl fee' => array(
|
472 |
+
0,
|
473 |
+
false
|
474 |
+
),
|
475 |
+
'incl fee' => array(
|
476 |
+
2,
|
477 |
+
array(
|
478 |
+
'ArticleNumber' => array('value' => 1),
|
479 |
+
'ArticlePrice' => array('value' => 2),
|
480 |
+
'ArticleQuantity' => array('value' => 1),
|
481 |
+
'ArticleTitle' => array('value' => 'Servicekosten'),
|
482 |
+
'ArticleVat' => array('value' => 0.00),
|
483 |
+
)
|
484 |
+
)
|
485 |
+
);
|
486 |
+
}
|
487 |
+
|
488 |
+
/**
|
489 |
+
* @param $fee
|
490 |
+
* @param $expected
|
491 |
+
*
|
492 |
+
* @dataProvider getPaymentFeeLineProvider
|
493 |
+
*/
|
494 |
+
public function testGetPaymentFeeLine($fee, $expected)
|
495 |
+
{
|
496 |
+
$mockOrder = $this->getMockOrder();
|
497 |
+
$mockOrder->setBuckarooFee($fee);
|
498 |
+
|
499 |
+
$instance = $this->_getInstance();
|
500 |
+
$this->setProperty('_order', $mockOrder, $instance);
|
501 |
+
$result = $this->invokeMethod($instance, 'getPaymentFeeLine');
|
502 |
+
|
503 |
+
$this->assertEquals($expected, $result);
|
504 |
+
}
|
505 |
+
|
506 |
+
/**
|
507 |
+
* @return array
|
508 |
+
*/
|
509 |
+
public function getShipmentCostsLineProvider()
|
510 |
+
{
|
511 |
+
return array(
|
512 |
+
'excl shipment costs' => array(
|
513 |
+
0,
|
514 |
+
false
|
515 |
+
),
|
516 |
+
'incl shipment costs' => array(
|
517 |
+
1.50,
|
518 |
+
array(
|
519 |
+
'ArticleNumber' => array('value' => 2),
|
520 |
+
'ArticlePrice' => array('value' => 1.50),
|
521 |
+
'ArticleQuantity' => array('value' => 1),
|
522 |
+
'ArticleTitle' => array('value' => 'Verzendkosten'),
|
523 |
+
'ArticleVat' => array('value' => 0.00),
|
524 |
+
)
|
525 |
+
)
|
526 |
+
);
|
527 |
+
}
|
528 |
+
|
529 |
+
/**
|
530 |
+
* @param $shipmentCosts
|
531 |
+
* @param $expected
|
532 |
+
*
|
533 |
+
* @dataProvider getShipmentCostsLineProvider
|
534 |
+
*/
|
535 |
+
public function testGetShipmentCostsLine($shipmentCosts, $expected)
|
536 |
+
{
|
537 |
+
$mockOrder = $this->getMockOrder();
|
538 |
+
$mockOrder->setBaseShippingInclTax($shipmentCosts);
|
539 |
+
|
540 |
+
$instance = $this->_getInstance();
|
541 |
+
$this->setProperty('_order', $mockOrder, $instance);
|
542 |
+
$result = $this->invokeMethod($instance, 'getShipmentCostsLine');
|
543 |
+
|
544 |
+
$this->assertEquals($expected, $result);
|
545 |
+
}
|
546 |
+
|
547 |
+
/**
|
548 |
+
* @return array
|
549 |
+
*/
|
550 |
+
public function getReservationNumberProvider()
|
551 |
+
{
|
552 |
+
return array(
|
553 |
+
'no parameters' => array(
|
554 |
+
(Object)array(),
|
555 |
+
null
|
556 |
+
),
|
557 |
+
'single parameter' => array(
|
558 |
+
(Object)array(
|
559 |
+
'Name' => 'ReservationNumber',
|
560 |
+
'_' => '12345'
|
561 |
+
),
|
562 |
+
'12345'
|
563 |
+
),
|
564 |
+
'single parameter without reservation number' => array(
|
565 |
+
(Object)array(
|
566 |
+
'Name' => 'orderId',
|
567 |
+
'_' => '54321'
|
568 |
+
),
|
569 |
+
null
|
570 |
+
),
|
571 |
+
'multiple parameters' => array(
|
572 |
+
(Object)array(
|
573 |
+
(Object)array(
|
574 |
+
'Name' => 'transactionId',
|
575 |
+
'_' => 'abc321def654'
|
576 |
+
),
|
577 |
+
(Object)array(
|
578 |
+
'Name' => 'ReservationNumber',
|
579 |
+
'_' => '67890'
|
580 |
+
)
|
581 |
+
),
|
582 |
+
'67890'
|
583 |
+
),
|
584 |
+
'multiple parameters without reservation number' => array(
|
585 |
+
(Object)array(
|
586 |
+
(Object)array(
|
587 |
+
'Name' => 'transactionId',
|
588 |
+
'_' => 'abc321def654'
|
589 |
+
),
|
590 |
+
(Object)array(
|
591 |
+
'Name' => 'orderId',
|
592 |
+
'_' => '54321'
|
593 |
+
)
|
594 |
+
),
|
595 |
+
null
|
596 |
+
)
|
597 |
+
);
|
598 |
+
}
|
599 |
+
|
600 |
+
/**
|
601 |
+
* @param $parameters
|
602 |
+
* @param $expected
|
603 |
+
*
|
604 |
+
* @dataProvider getReservationNumberProvider
|
605 |
+
*/
|
606 |
+
public function testGetReservationNumber($parameters, $expected)
|
607 |
+
{
|
608 |
+
$instance = $this->_getInstance();
|
609 |
+
$result = $this->invokeMethod($instance, 'getReservationNumber', array($parameters));
|
610 |
+
|
611 |
+
$this->assertEquals($expected, $result);
|
612 |
+
}
|
613 |
+
}
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Klarna_PaymentMethodTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_PaymentMethod */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return null|TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_PaymentMethod
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_PaymentMethod();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* @return mixed
|
52 |
+
*/
|
53 |
+
protected function _getMockPayment()
|
54 |
+
{
|
55 |
+
$mockOrderAddress = $this->getMockBuilder('Mage_Sales_Model_Order_Address')->getMock();
|
56 |
+
|
57 |
+
$mockOrder = $this->getMockBuilder('Mage_Sales_Model_Order')
|
58 |
+
->setMethods(array('getPayment', 'getBillingAddress', 'getShippingAddress'))
|
59 |
+
->getMock();
|
60 |
+
$mockOrder->expects($this->any())
|
61 |
+
->method('getBillingAddress')
|
62 |
+
->will($this->returnValue($mockOrderAddress));
|
63 |
+
$mockOrder->expects($this->any())
|
64 |
+
->method('getShippingAddress')
|
65 |
+
->will($this->returnValue($mockOrderAddress));
|
66 |
+
|
67 |
+
$mockPaymentInfo = $this->getMockBuilder('Mage_Sales_Model_Order_Payment')
|
68 |
+
->setMethods(array('getOrder'))
|
69 |
+
->getMock();
|
70 |
+
$mockPaymentInfo->expects($this->any())
|
71 |
+
->method('getOrder')
|
72 |
+
->willReturn($mockOrder);
|
73 |
+
|
74 |
+
$mockOrder->expects($this->any())
|
75 |
+
->method('getPayment')
|
76 |
+
->willReturn($mockPaymentInfo);
|
77 |
+
|
78 |
+
return $mockPaymentInfo;
|
79 |
+
}
|
80 |
+
|
81 |
+
public function testGetAllowedCurrencies()
|
82 |
+
{
|
83 |
+
$instance = $this->_getInstance();
|
84 |
+
$result = $instance->getAllowedCurrencies();
|
85 |
+
|
86 |
+
$this->assertInternalType('array', $result);
|
87 |
+
$this->assertContains('EUR', $result);
|
88 |
+
}
|
89 |
+
|
90 |
+
public function testGetCode()
|
91 |
+
{
|
92 |
+
$instance = $this->_getInstance();
|
93 |
+
$result = $instance->getCode();
|
94 |
+
|
95 |
+
$this->assertEquals('buckaroo3extended_klarna', $result);
|
96 |
+
}
|
97 |
+
|
98 |
+
public function testGetFormBlockType()
|
99 |
+
{
|
100 |
+
$instance = $this->_getInstance();
|
101 |
+
$result = $instance->getFormBlockType();
|
102 |
+
|
103 |
+
$this->assertEquals('buckaroo3extended/paymentMethods_klarna_checkout_form', $result);
|
104 |
+
}
|
105 |
+
|
106 |
+
public function testGetOrderPlaceRedirectUrl()
|
107 |
+
{
|
108 |
+
$postArray = array(
|
109 |
+
'payment' => array(
|
110 |
+
'buckaroo3extended_klarna' => array(
|
111 |
+
'year' => '1970',
|
112 |
+
'month' => '07',
|
113 |
+
'day' => '10'
|
114 |
+
)
|
115 |
+
),
|
116 |
+
'buckaroo3extended_klarna_BPE_customer_gender' => 1,
|
117 |
+
'buckaroo3extended_klarna_BPE_customer_phonenumber' => '0612345678',
|
118 |
+
);
|
119 |
+
|
120 |
+
Mage::app()->getRequest()->setPost($postArray);
|
121 |
+
|
122 |
+
$instance = $this->_getInstance();
|
123 |
+
$functionResult = $instance->getOrderPlaceRedirectUrl();
|
124 |
+
|
125 |
+
$this->assertInternalType('string', $functionResult);
|
126 |
+
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
* @return array
|
130 |
+
*/
|
131 |
+
public function getConfigDataProvider()
|
132 |
+
{
|
133 |
+
return array(
|
134 |
+
'payment_action field' => array(
|
135 |
+
'payment_action',
|
136 |
+
Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE
|
137 |
+
),
|
138 |
+
'any other field' => array(
|
139 |
+
'some_config_field',
|
140 |
+
null
|
141 |
+
)
|
142 |
+
);
|
143 |
+
}
|
144 |
+
|
145 |
+
/**
|
146 |
+
* @param $field
|
147 |
+
* @param $expected
|
148 |
+
*
|
149 |
+
* @dataProvider getConfigDataProvider
|
150 |
+
*/
|
151 |
+
public function testGetConfigData($field, $expected)
|
152 |
+
{
|
153 |
+
$instance = $this->_getInstance();
|
154 |
+
$result = $instance->getConfigData($field);
|
155 |
+
|
156 |
+
$this->assertEquals($expected, $result);
|
157 |
+
}
|
158 |
+
|
159 |
+
public function testCapture()
|
160 |
+
{
|
161 |
+
$mockPaymentInfo = $this->_getMockPayment();
|
162 |
+
$instance = $this->_getInstance();
|
163 |
+
|
164 |
+
$result = $instance->capture($mockPaymentInfo, 0);
|
165 |
+
|
166 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Klarna_PaymentMethod', $result);
|
167 |
+
}
|
168 |
+
}
|
@@ -103,4 +103,51 @@ class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_PaymentMethodTest ext
|
|
103 |
|
104 |
$this->assertEquals($expected, $result);
|
105 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
103 |
|
104 |
$this->assertEquals($expected, $result);
|
105 |
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* @return array
|
109 |
+
*/
|
110 |
+
public function hideForPosPaymentProvider()
|
111 |
+
{
|
112 |
+
return array(
|
113 |
+
'no header, not pospayment' => array(
|
114 |
+
null,
|
115 |
+
'buckaroo3extended_tig',
|
116 |
+
false
|
117 |
+
),
|
118 |
+
'with header, not pospayment' => array(
|
119 |
+
'1234567',
|
120 |
+
'buckaroo3extended_tig',
|
121 |
+
true
|
122 |
+
),
|
123 |
+
'no header, is pospayment' => array(
|
124 |
+
null,
|
125 |
+
'buckaroo3extended_pospayment',
|
126 |
+
false
|
127 |
+
),
|
128 |
+
'with header, is pospayment' => array(
|
129 |
+
'8901234',
|
130 |
+
'buckaroo3extended_pospayment',
|
131 |
+
false
|
132 |
+
)
|
133 |
+
);
|
134 |
+
}
|
135 |
+
|
136 |
+
/**
|
137 |
+
* @param $terminalid
|
138 |
+
* @param $methodCode
|
139 |
+
* @param $expected
|
140 |
+
*
|
141 |
+
* @dataProvider hideForPosPaymentProvider
|
142 |
+
*/
|
143 |
+
public function testHideForPosPayment($terminalid, $methodCode, $expected)
|
144 |
+
{
|
145 |
+
$_SERVER['HTTP_POS_TERMINAL_ID'] = $terminalid;
|
146 |
+
|
147 |
+
$instance = $this->_getInstance();
|
148 |
+
$this->setProperty('_code', $methodCode, $instance);
|
149 |
+
|
150 |
+
$result = $instance->hideForPosPayment();
|
151 |
+
$this->assertEquals($expected, $result);
|
152 |
+
}
|
153 |
}
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Pospayment_ObserverTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* @return PHPUnit_Framework_MockObject_MockObject|Mage_Sales_Model_Order
|
52 |
+
*/
|
53 |
+
private function getMockOrder()
|
54 |
+
{
|
55 |
+
$mockPayment = $this->getMockBuilder('Mage_Sales_Model_Order_Payment')
|
56 |
+
->setMethods(array('getMethod'))
|
57 |
+
->getMock();
|
58 |
+
$mockPayment->expects($this->any())->method('getMethod')->willReturn('buckaroo3extended_pospayment');
|
59 |
+
|
60 |
+
$mockOrder = $this->getMockBuilder('Mage_Sales_Model_Order')
|
61 |
+
->setMethods(array(
|
62 |
+
'getPayment',
|
63 |
+
'getPaymentMethodUsedForTransaction'
|
64 |
+
))
|
65 |
+
->getMock();
|
66 |
+
|
67 |
+
$mockOrder->expects($this->any())->method('getPayment')->will($this->returnValue($mockPayment));
|
68 |
+
$mockOrder->expects($this->any())->method('getPaymentMethodUsedForTransaction')->willReturn(false);
|
69 |
+
|
70 |
+
return $mockOrder;
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* @return PHPUnit_Framework_MockObject_MockObject|Varien_Event_Observer
|
75 |
+
*/
|
76 |
+
private function getMockObserver()
|
77 |
+
{
|
78 |
+
$mockOrder = $this->getMockOrder();
|
79 |
+
|
80 |
+
$mockRequest = $this->getMockBuilder('TIG_Buckaroo3Extended_Model_Request_Abstract')
|
81 |
+
->setMethods(array('getOrder'))
|
82 |
+
->getMock();
|
83 |
+
$mockRequest->expects($this->any())->method('getOrder')->willReturn($mockOrder);
|
84 |
+
|
85 |
+
$mockObserver = $this->getMockBuilder('Varien_Event_Observer')
|
86 |
+
->setMethods(array('getRequest', 'getOrder'))
|
87 |
+
->getMock();
|
88 |
+
$mockObserver->expects($this->any())->method('getOrder')->willReturn($mockOrder);
|
89 |
+
$mockObserver->expects($this->any())->method('getRequest')->willReturn($mockRequest);
|
90 |
+
|
91 |
+
return $mockObserver;
|
92 |
+
}
|
93 |
+
|
94 |
+
public function testBuckaroo3extended_request_setmethod()
|
95 |
+
{
|
96 |
+
$mockObserver = $this->getMockObserver();
|
97 |
+
|
98 |
+
$instance = $this->_getInstance();
|
99 |
+
$result = $instance->buckaroo3extended_request_setmethod($mockObserver);
|
100 |
+
$requestMethodResult = $mockObserver->getRequest()->getMethod();
|
101 |
+
|
102 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer', $result);
|
103 |
+
$this->assertEquals('pospayment', $requestMethodResult);
|
104 |
+
}
|
105 |
+
|
106 |
+
public function testBuckaroo3extended_request_addservices()
|
107 |
+
{
|
108 |
+
$mockObserver = $this->getMockObserver();
|
109 |
+
|
110 |
+
$instance = $this->_getInstance();
|
111 |
+
$result = $instance->buckaroo3extended_request_addservices($mockObserver);
|
112 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
113 |
+
|
114 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer', $result);
|
115 |
+
$this->assertEquals('Pay', $requestVarsResult['services']['pospayment']['action']);
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* @return array
|
120 |
+
*/
|
121 |
+
public function buckaroo3extended_request_addcustomvarsProvider()
|
122 |
+
{
|
123 |
+
return array(
|
124 |
+
array(
|
125 |
+
'abcd1234',
|
126 |
+
array(
|
127 |
+
'customVars' => array(
|
128 |
+
'pospayment' => array(
|
129 |
+
'TerminalID' => 'abcd1234'
|
130 |
+
)
|
131 |
+
)
|
132 |
+
)
|
133 |
+
),
|
134 |
+
array(
|
135 |
+
'ef56gh78',
|
136 |
+
array(
|
137 |
+
'customVars' => array(
|
138 |
+
'pospayment' => array(
|
139 |
+
'TerminalID' => 'ef56gh78'
|
140 |
+
)
|
141 |
+
)
|
142 |
+
)
|
143 |
+
),
|
144 |
+
array(
|
145 |
+
'9021ijkl',
|
146 |
+
array(
|
147 |
+
'customVars' => array(
|
148 |
+
'pospayment' => array(
|
149 |
+
'TerminalID' => '9021ijkl'
|
150 |
+
)
|
151 |
+
)
|
152 |
+
)
|
153 |
+
),
|
154 |
+
);
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* @param $terminalid
|
159 |
+
* @param $expected
|
160 |
+
*
|
161 |
+
* @dataProvider buckaroo3extended_request_addcustomvarsProvider
|
162 |
+
*/
|
163 |
+
public function testBuckaroo3extended_request_addcustomvars($terminalid, $expected)
|
164 |
+
{
|
165 |
+
$_SERVER['HTTP_POS_TERMINAL_ID'] = $terminalid;
|
166 |
+
$mockObserver = $this->getMockObserver();
|
167 |
+
|
168 |
+
$instance = $this->_getInstance();
|
169 |
+
$result = $instance->buckaroo3extended_request_addcustomvars($mockObserver);
|
170 |
+
$requestVarsResult = $mockObserver->getRequest()->getVars();
|
171 |
+
|
172 |
+
$this->assertInstanceOf('TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_Observer', $result);
|
173 |
+
$this->assertEquals($expected, $requestVarsResult);
|
174 |
+
}
|
175 |
+
}
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_PaymentMethods_Pospayment_PaymentMethodTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_PaymentMethods_Pospayment_PaymentMethod();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function testGetAllowedCurrencies()
|
51 |
+
{
|
52 |
+
$instance = $this->_getInstance();
|
53 |
+
$result = $instance->getAllowedCurrencies();
|
54 |
+
|
55 |
+
$this->assertInternalType('array', $result);
|
56 |
+
$this->assertContains('EUR', $result);
|
57 |
+
}
|
58 |
+
|
59 |
+
public function testGetCode()
|
60 |
+
{
|
61 |
+
$instance = $this->_getInstance();
|
62 |
+
$result = $instance->getCode();
|
63 |
+
|
64 |
+
$this->assertEquals('buckaroo3extended_pospayment', $result);
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* @return array
|
69 |
+
*/
|
70 |
+
public function isAvailableProvider()
|
71 |
+
{
|
72 |
+
return array(
|
73 |
+
'no headers' => array(
|
74 |
+
null,
|
75 |
+
'abc',
|
76 |
+
null,
|
77 |
+
false
|
78 |
+
),
|
79 |
+
'with terminalid header, no user agent configured' => array(
|
80 |
+
'1234567',
|
81 |
+
'def',
|
82 |
+
null,
|
83 |
+
true
|
84 |
+
),
|
85 |
+
'with terminalid header, wrong user agent' => array(
|
86 |
+
'8901234',
|
87 |
+
'ghi',
|
88 |
+
'jkl',
|
89 |
+
false
|
90 |
+
),
|
91 |
+
'with terminalid header, correct user agent' => array(
|
92 |
+
'5678901',
|
93 |
+
'mno',
|
94 |
+
'mno',
|
95 |
+
true
|
96 |
+
),
|
97 |
+
);
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
* @param $terminalid
|
102 |
+
* @param $userAgent
|
103 |
+
* @param $configuredUserAgent
|
104 |
+
* @param $expected
|
105 |
+
*
|
106 |
+
* @dataProvider isAvailableProvider
|
107 |
+
*/
|
108 |
+
public function testIsAvailable($terminalid, $userAgent, $configuredUserAgent, $expected)
|
109 |
+
{
|
110 |
+
$_SERVER['HTTP_POS_TERMINAL_ID'] = $terminalid;
|
111 |
+
$_SERVER['HTTP_USER_AGENT'] = $userAgent;
|
112 |
+
|
113 |
+
$pospaymentPath = 'buckaroo/buckaroo3extended_pospayment/';
|
114 |
+
Mage::app()->getStore()->setConfig($pospaymentPath . 'user_agent', $configuredUserAgent);
|
115 |
+
Mage::app()->getStore()->setConfig($pospaymentPath . 'active', 1);
|
116 |
+
Mage::app()->getStore()->setConfig('buckaroo/buckaroo3extended/key', 1);
|
117 |
+
Mage::app()->getStore()->setConfig('buckaroo/buckaroo3extended/thumbprint', 1);
|
118 |
+
|
119 |
+
$quoteMock = $this->getMockBuilder('Mage_Sales_Model_Quote')->setMethods(array('getBaseGrandTotal'))->getMock();
|
120 |
+
$quoteMock->expects($this->any())->method('getBaseGrandTotal')->willReturn(1);
|
121 |
+
|
122 |
+
$instance = $this->_getInstance();
|
123 |
+
$result = $instance->isAvailable($quoteMock);
|
124 |
+
|
125 |
+
$this->assertEquals($expected, $result);
|
126 |
+
}
|
127 |
+
}
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_Response_AbstractTest extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
33 |
+
{
|
34 |
+
/** @var null|TIG_Buckaroo3Extended_Model_Response_Abstract */
|
35 |
+
protected $_instance = null;
|
36 |
+
|
37 |
+
protected function _getInstance()
|
38 |
+
{
|
39 |
+
if ($this->_instance === null) {
|
40 |
+
$parameters = array(
|
41 |
+
'debugEmail' => '',
|
42 |
+
'response' => false,
|
43 |
+
'XML' => false
|
44 |
+
);
|
45 |
+
|
46 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_Response_Abstract($parameters);
|
47 |
+
}
|
48 |
+
|
49 |
+
return $this->_instance;
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* @return array
|
54 |
+
*/
|
55 |
+
public function getResponseFailureMessageProvider()
|
56 |
+
{
|
57 |
+
return array(
|
58 |
+
'no failure message' => array(
|
59 |
+
(Object)array('ServiceCode' => 'invalid_service_code'),
|
60 |
+
null
|
61 |
+
),
|
62 |
+
'afterpay failure message with colon' => array(
|
63 |
+
(Object)array(
|
64 |
+
'ServiceCode' => 'afterpaydigiaccept',
|
65 |
+
'TransactionType' => 'C011',
|
66 |
+
'Status' => (Object)array(
|
67 |
+
'Code' => (Object)array(
|
68 |
+
'Code' => '490'
|
69 |
+
),
|
70 |
+
'SubCode' => (Object)array(
|
71 |
+
'Code' => 'S996',
|
72 |
+
'_' => 'And error occured: Telefoonnummer is onjuist'
|
73 |
+
)
|
74 |
+
)
|
75 |
+
),
|
76 |
+
'Telefoonnummer is onjuist'
|
77 |
+
),
|
78 |
+
'afterpay failure message without colon' => array(
|
79 |
+
(Object)array(
|
80 |
+
'ServiceCode' => 'afterpayacceptgiro',
|
81 |
+
'TransactionType' => 'C016',
|
82 |
+
'Status' => (Object)array(
|
83 |
+
'Code' => (Object)array(
|
84 |
+
'Code' => '490'
|
85 |
+
),
|
86 |
+
'SubCode' => (Object)array(
|
87 |
+
'Code' => 'S996',
|
88 |
+
'_' => 'Address gegevens zijn onjuist'
|
89 |
+
)
|
90 |
+
)
|
91 |
+
),
|
92 |
+
'Address gegevens zijn onjuist'
|
93 |
+
),
|
94 |
+
'afterpay failure message invalid transactiontype' => array(
|
95 |
+
(Object)array(
|
96 |
+
'ServiceCode' => 'afterpaydigiaccept',
|
97 |
+
'TransactionType' => 'I011',
|
98 |
+
'Status' => (Object)array(
|
99 |
+
'Code' => (Object)array(
|
100 |
+
'Code' => '490'
|
101 |
+
),
|
102 |
+
'SubCode' => (Object)array(
|
103 |
+
'Code' => 'S996',
|
104 |
+
'_' => 'Geboortedatum is onjuist'
|
105 |
+
)
|
106 |
+
)
|
107 |
+
),
|
108 |
+
null
|
109 |
+
),
|
110 |
+
'klarna failure message' => array(
|
111 |
+
(Object)array(
|
112 |
+
'ServiceCode' => 'klarna',
|
113 |
+
'ConsumerMessage' => (Object)array(
|
114 |
+
'HtmlText' => 'Klarna payment failure'
|
115 |
+
)
|
116 |
+
),
|
117 |
+
'Klarna payment failure'
|
118 |
+
),
|
119 |
+
);
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
* @param $response
|
124 |
+
* @param $expected
|
125 |
+
*
|
126 |
+
* @dataProvider getResponseFailureMessageProvider
|
127 |
+
*/
|
128 |
+
public function testGetResponseFailureMessage($response, $expected)
|
129 |
+
{
|
130 |
+
$this->registerMockSessions(array('checkout'));
|
131 |
+
|
132 |
+
$instance = $this->_getInstance();
|
133 |
+
$this->setProperty('_response', $response, $instance);
|
134 |
+
$result = $this->invokeMethod($instance, 'getResponseFailureMessage');
|
135 |
+
|
136 |
+
$this->assertEquals($expected, $result);
|
137 |
+
}
|
138 |
+
}
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_Sources_Klarna_AvailableCurrenciesTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_Sources_Klarna_AvailableCurrencies */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return null|TIG_Buckaroo3Extended_Model_Sources_Klarna_AvailableCurrencies
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_Sources_Klarna_AvailableCurrencies();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function testToOptionArray()
|
51 |
+
{
|
52 |
+
$expectedOptions = array('EUR');
|
53 |
+
|
54 |
+
$instance = $this->_getInstance();
|
55 |
+
$result = $instance->toOptionArray();
|
56 |
+
|
57 |
+
$this->assertInternalType('array', $result);
|
58 |
+
|
59 |
+
foreach ($result as $currency) {
|
60 |
+
$this->assertContains($currency['value'], $expectedOptions);
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_Sources_Klarna_SendInvoiceByTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_Sources_Klarna_SendInvoiceBy */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return null|TIG_Buckaroo3Extended_Model_Sources_Klarna_SendInvoiceBy
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_Sources_Klarna_SendInvoiceBy();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function testToOptionArray()
|
51 |
+
{
|
52 |
+
$expectedOptions = array(
|
53 |
+
TIG_Buckaroo3Extended_Model_Sources_Klarna_SendInvoiceBy::ACTION_EMAIL,
|
54 |
+
TIG_Buckaroo3Extended_Model_Sources_Klarna_SendInvoiceBy::ACTION_MAIL
|
55 |
+
);
|
56 |
+
|
57 |
+
$instance = $this->_getInstance();
|
58 |
+
$result = $instance->toOptionArray();
|
59 |
+
|
60 |
+
$this->assertInternalType('array', $result);
|
61 |
+
|
62 |
+
foreach ($result as $currency) {
|
63 |
+
$this->assertContains($currency['value'], $expectedOptions);
|
64 |
+
}
|
65 |
+
}
|
66 |
+
}
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
class TIG_Buckaroo3Extended_Test_Unit_Model_Sources_Pospayment_AvailableCurrenciesTest
|
33 |
+
extends TIG_Buckaroo3Extended_Test_Framework_TIG_Test_TestCase
|
34 |
+
{
|
35 |
+
/** @var null|TIG_Buckaroo3Extended_Model_Sources_Pospayment_AvailableCurrencies */
|
36 |
+
protected $_instance = null;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return TIG_Buckaroo3Extended_Model_Sources_Pospayment_AvailableCurrencies
|
40 |
+
*/
|
41 |
+
protected function _getInstance()
|
42 |
+
{
|
43 |
+
if ($this->_instance === null) {
|
44 |
+
$this->_instance = new TIG_Buckaroo3Extended_Model_Sources_Pospayment_AvailableCurrencies();
|
45 |
+
}
|
46 |
+
|
47 |
+
return $this->_instance;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function testToOptionArray()
|
51 |
+
{
|
52 |
+
$expectedOptions = array('EUR');
|
53 |
+
|
54 |
+
$instance = $this->_getInstance();
|
55 |
+
$result = $instance->toOptionArray();
|
56 |
+
|
57 |
+
$this->assertInternalType('array', $result);
|
58 |
+
|
59 |
+
foreach ($result as $currency) {
|
60 |
+
$this->assertContains($currency['value'], $expectedOptions);
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}
|
@@ -18,4 +18,8 @@
|
|
18 |
<file>../../Buckaroo3Extended/Exception.php</file>
|
19 |
</whitelist>
|
20 |
</filter>
|
|
|
|
|
|
|
|
|
21 |
</phpunit>
|
18 |
<file>../../Buckaroo3Extended/Exception.php</file>
|
19 |
</whitelist>
|
20 |
</filter>
|
21 |
+
|
22 |
+
<logging>
|
23 |
+
<log type="coverage-clover" target="build/logs/clover-unit.xml"/>
|
24 |
+
</logging>
|
25 |
</phpunit>
|
@@ -26,4 +26,77 @@ class TIG_Buckaroo3Extended_CheckoutController extends Mage_Core_Controller_Fron
|
|
26 |
|
27 |
return;
|
28 |
}
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
return;
|
28 |
}
|
29 |
+
|
30 |
+
public function pospaymentPendingAction()
|
31 |
+
{
|
32 |
+
$this->loadLayout();
|
33 |
+
$this->getLayout();
|
34 |
+
$this->renderLayout();
|
35 |
+
}
|
36 |
+
|
37 |
+
public function pospaymentCheckStateAction()
|
38 |
+
{
|
39 |
+
$response = array(
|
40 |
+
'status' => 'new',
|
41 |
+
'returnUrl' => null
|
42 |
+
);
|
43 |
+
|
44 |
+
/** @var TIG_Buckaroo3Extended_Model_Response_Abstract $responseHandler */
|
45 |
+
$responseHandler = Mage::getModel('buckaroo3extended/response_abstract');
|
46 |
+
|
47 |
+
/** @var Mage_Sales_Model_Order $order */
|
48 |
+
$order = $responseHandler->getOrder();
|
49 |
+
$response['status'] = $order->getState();
|
50 |
+
|
51 |
+
switch ($response['status']) {
|
52 |
+
case 'processing':
|
53 |
+
$responseHandler->emptyCart();
|
54 |
+
Mage::getSingleton('core/session')->addSuccess(
|
55 |
+
Mage::helper('buckaroo3extended')->__('Your order has been placed succesfully.')
|
56 |
+
);
|
57 |
+
$response['returnUrl'] = $this->getSuccessUrl($order->getStoreId());
|
58 |
+
break;
|
59 |
+
case 'canceled':
|
60 |
+
$responseHandler->restoreQuote();
|
61 |
+
|
62 |
+
Mage::getSingleton('core/session')->addError(
|
63 |
+
Mage::helper('buckaroo3extended')->__(Mage::getStoreConfig(
|
64 |
+
$responseHandler::BUCK_RESPONSE_DEFAUL_MESSAGE,
|
65 |
+
$order->getStoreId()
|
66 |
+
))
|
67 |
+
);
|
68 |
+
|
69 |
+
$response['returnUrl'] = $this->getFailedUrl($order->getStoreId());
|
70 |
+
break;
|
71 |
+
}
|
72 |
+
|
73 |
+
echo json_encode($response);
|
74 |
+
exit;
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* @param $storeId
|
79 |
+
*
|
80 |
+
* @return string
|
81 |
+
*/
|
82 |
+
protected function getSuccessUrl($storeId)
|
83 |
+
{
|
84 |
+
$returnLocation = Mage::getStoreConfig('buckaroo/buckaroo3extended_advanced/success_redirect', $storeId);
|
85 |
+
$succesUrl = Mage::getUrl($returnLocation, array('_secure' => true));
|
86 |
+
|
87 |
+
return $succesUrl;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* @param $storeId
|
92 |
+
*
|
93 |
+
* @return string
|
94 |
+
*/
|
95 |
+
protected function getFailedUrl($storeId)
|
96 |
+
{
|
97 |
+
$returnLocation = Mage::getStoreConfig('buckaroo/buckaroo3extended_advanced/failure_redirect', $storeId);
|
98 |
+
$failedUrl = Mage::getUrl($returnLocation, array('_secure' => true));
|
99 |
+
|
100 |
+
return $failedUrl;
|
101 |
+
}
|
102 |
+
}
|
@@ -148,6 +148,10 @@ class TIG_Buckaroo3Extended_NotifyController extends Mage_Core_Controller_Front_
|
|
148 |
|
149 |
try {
|
150 |
list($module, $processedPush) = $this->_processPushAccordingToType();
|
|
|
|
|
|
|
|
|
151 |
} catch (Exception $e) {
|
152 |
$this->_debugEmail .= "An Exception occurred: " . $e->getMessage() . "\n";
|
153 |
$this->_debugEmail .= "\nException trace: " . $e->getTraceAsString() . "\n";
|
@@ -247,6 +251,7 @@ class TIG_Buckaroo3Extended_NotifyController extends Mage_Core_Controller_Front_
|
|
247 |
{
|
248 |
if (
|
249 |
$this->_order->getTransactionKey() == $this->_postArray['brq_transactions']
|
|
|
250 |
|| (isset($this->_postArray['brq_relatedtransaction_partialpayment'])
|
251 |
&& $this->_order->getTransactionKey() == $this->_postArray['brq_relatedtransaction_partialpayment'])
|
252 |
) {
|
@@ -257,16 +262,21 @@ class TIG_Buckaroo3Extended_NotifyController extends Mage_Core_Controller_Front_
|
|
257 |
$this->_paymentCode = $this->_order->getPayment()->getMethod();
|
258 |
$merchantKey = Mage::getStoreConfig('buckaroo/buckaroo3extended/key', $this->_order->getStoreId());
|
259 |
|
260 |
-
//fix for payperemail transactions with different transaction keys but belongs to the same order
|
261 |
-
if (
|
262 |
-
|
263 |
-
|
|
|
|
|
|
|
|
|
|
|
264 |
&& $this->_order->getIncrementId() == $this->_postArray['brq_invoicenumber']
|
265 |
&& (
|
266 |
isset($this->_postArray['brq_websitekey'])
|
267 |
&& $merchantKey == $this->_postArray['brq_websitekey']
|
268 |
)
|
269 |
-
){
|
270 |
list($processedPush, $module) = $this->_updateOrderWithKey();
|
271 |
return array($module, $processedPush);
|
272 |
}
|
@@ -303,9 +313,10 @@ class TIG_Buckaroo3Extended_NotifyController extends Mage_Core_Controller_Front_
|
|
303 |
return array($module, $processedPush);
|
304 |
}
|
305 |
|
306 |
-
// C012 and
|
307 |
if ($this->_postArray['brq_transaction_type'] == 'C012'
|
308 |
|| $this->_postArray['brq_transaction_type'] == 'C017'
|
|
|
309 |
) {
|
310 |
list($processedPush, $module) = $this->_updateCapture();
|
311 |
return array($module, $processedPush);
|
@@ -385,21 +396,9 @@ class TIG_Buckaroo3Extended_NotifyController extends Mage_Core_Controller_Front_
|
|
385 |
{
|
386 |
$this->_debugEmail .= "Recieved PUSH to update creditmemo. Unfortunately the module does not support creditmemo updates at this time. The PUSH is ignored.";
|
387 |
|
388 |
-
$
|
389 |
-
if (empty($debugEmailConfig))
|
390 |
-
{
|
391 |
-
return;
|
392 |
-
}
|
393 |
|
394 |
-
|
395 |
-
|
396 |
-
mail(
|
397 |
-
Mage::getStoreConfig('buckaroo/buckaroo3extended_advanced/debug_email', $this->_order->getStoreId()),
|
398 |
-
'Buckaroo 3 Extended Debug Email',
|
399 |
-
$mail
|
400 |
-
);
|
401 |
-
|
402 |
-
return $this;
|
403 |
}
|
404 |
|
405 |
/**
|
@@ -409,21 +408,9 @@ class TIG_Buckaroo3Extended_NotifyController extends Mage_Core_Controller_Front_
|
|
409 |
{
|
410 |
$this->_debugEmail .= "Recieved PUSH to update capture. Unfortunately the module does not support capture updates at this time. The PUSH is ignored.";
|
411 |
|
412 |
-
$
|
413 |
-
if (empty($debugEmailConfig))
|
414 |
-
{
|
415 |
-
return;
|
416 |
-
}
|
417 |
-
|
418 |
-
$mail = $this->_debugEmail;
|
419 |
-
|
420 |
-
mail(
|
421 |
-
Mage::getStoreConfig('buckaroo/buckaroo3extended_advanced/debug_email', $this->_order->getStoreId()),
|
422 |
-
'Buckaroo 3 Extended Debug Email',
|
423 |
-
$mail
|
424 |
-
);
|
425 |
|
426 |
-
return $
|
427 |
}
|
428 |
|
429 |
protected function _newRefund()
|
148 |
|
149 |
try {
|
150 |
list($module, $processedPush) = $this->_processPushAccordingToType();
|
151 |
+
|
152 |
+
if (!is_object(($module))) {
|
153 |
+
$module = Mage::getModel('buckaroo3extended/abstract', $this->_debugEmail);
|
154 |
+
}
|
155 |
} catch (Exception $e) {
|
156 |
$this->_debugEmail .= "An Exception occurred: " . $e->getMessage() . "\n";
|
157 |
$this->_debugEmail .= "\nException trace: " . $e->getTraceAsString() . "\n";
|
251 |
{
|
252 |
if (
|
253 |
$this->_order->getTransactionKey() == $this->_postArray['brq_transactions']
|
254 |
+
|| $this->_order->getTransactionKey() == $this->_postArray['brq_datarequest']
|
255 |
|| (isset($this->_postArray['brq_relatedtransaction_partialpayment'])
|
256 |
&& $this->_order->getTransactionKey() == $this->_postArray['brq_relatedtransaction_partialpayment'])
|
257 |
) {
|
262 |
$this->_paymentCode = $this->_order->getPayment()->getMethod();
|
263 |
$merchantKey = Mage::getStoreConfig('buckaroo/buckaroo3extended/key', $this->_order->getStoreId());
|
264 |
|
265 |
+
//fix for payperemail and klarna transactions with different transaction keys but belongs to the same order
|
266 |
+
if ((
|
267 |
+
($this->_paymentCode == 'buckaroo3extended_payperemail'
|
268 |
+
&& $this->_postArray['brq_transaction_method'] != 'payperemail'
|
269 |
+
)
|
270 |
+
|| ($this->_paymentCode == 'buckaroo3extended_klarna'
|
271 |
+
&& $this->_postArray['brq_primary_service'] == 'klarna'
|
272 |
+
)
|
273 |
+
)
|
274 |
&& $this->_order->getIncrementId() == $this->_postArray['brq_invoicenumber']
|
275 |
&& (
|
276 |
isset($this->_postArray['brq_websitekey'])
|
277 |
&& $merchantKey == $this->_postArray['brq_websitekey']
|
278 |
)
|
279 |
+
) {
|
280 |
list($processedPush, $module) = $this->_updateOrderWithKey();
|
281 |
return array($module, $processedPush);
|
282 |
}
|
313 |
return array($module, $processedPush);
|
314 |
}
|
315 |
|
316 |
+
// C012, C017 and C700 are Afterpay and Klarna Capture transactions which don't need an update
|
317 |
if ($this->_postArray['brq_transaction_type'] == 'C012'
|
318 |
|| $this->_postArray['brq_transaction_type'] == 'C017'
|
319 |
+
|| $this->_postArray['brq_transaction_type'] == 'C700'
|
320 |
) {
|
321 |
list($processedPush, $module) = $this->_updateCapture();
|
322 |
return array($module, $processedPush);
|
396 |
{
|
397 |
$this->_debugEmail .= "Recieved PUSH to update creditmemo. Unfortunately the module does not support creditmemo updates at this time. The PUSH is ignored.";
|
398 |
|
399 |
+
$module = Mage::getModel('buckaroo3extended/abstract', $this->_debugEmail);
|
|
|
|
|
|
|
|
|
400 |
|
401 |
+
return array(true, $module);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
}
|
403 |
|
404 |
/**
|
408 |
{
|
409 |
$this->_debugEmail .= "Recieved PUSH to update capture. Unfortunately the module does not support capture updates at this time. The PUSH is ignored.";
|
410 |
|
411 |
+
$module = Mage::getModel('buckaroo3extended/abstract', $this->_debugEmail);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
|
413 |
+
return array(true, $module);
|
414 |
}
|
415 |
|
416 |
protected function _newRefund()
|
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<TIG_Buckaroo3Extended>
|
5 |
-
<version>4.
|
6 |
</TIG_Buckaroo3Extended>
|
7 |
</modules>
|
8 |
<tig>
|
@@ -361,6 +361,11 @@
|
|
361 |
<class>buckaroo3extended/paymentMethods_bancontactmrcash_observer</class>
|
362 |
<method>buckaroo3extended_refund_request_setmethod</method>
|
363 |
</buckaroo3extended_paymentmethod_observer_bancontactmrcash>
|
|
|
|
|
|
|
|
|
|
|
364 |
</observers>
|
365 |
</buckaroo3extended_refund_request_setmethod>
|
366 |
<buckaroo3extended_refund_request_addservices>
|
@@ -470,6 +475,11 @@
|
|
470 |
<class>buckaroo3extended/paymentMethods_bancontactmrcash_observer</class>
|
471 |
<method>buckaroo3extended_refund_request_addservices</method>
|
472 |
</buckaroo3extended_paymentmethod_observer_bancontactmrcash>
|
|
|
|
|
|
|
|
|
|
|
473 |
</observers>
|
474 |
</buckaroo3extended_refund_request_addservices>
|
475 |
<buckaroo3extended_refund_request_addcustomvars>
|
@@ -579,6 +589,11 @@
|
|
579 |
<class>buckaroo3extended/paymentMethods_bancontactmrcash_observer</class>
|
580 |
<method>buckaroo3extended_refund_request_addcustomvars</method>
|
581 |
</buckaroo3extended_paymentmethod_observer_bancontactmrcash>
|
|
|
|
|
|
|
|
|
|
|
582 |
</observers>
|
583 |
</buckaroo3extended_refund_request_addcustomvars>
|
584 |
<buckaroo3extended_refund_response_custom_processing>
|
@@ -746,6 +761,16 @@
|
|
746 |
<class>buckaroo3extended/paymentMethods_masterpassLightbox_observer</class>
|
747 |
<method>buckaroo3extended_request_addservices</method>
|
748 |
</buckaroo3extended_paymentmethod_observer_masterpass_lightbox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
</observers>
|
750 |
</buckaroo3extended_request_addservices>
|
751 |
<buckaroo3extended_request_addcustomvars>
|
@@ -880,6 +905,16 @@
|
|
880 |
<class>buckaroo3extended/paymentMethods_masterpassLightbox_observer</class>
|
881 |
<method>buckaroo3extended_request_addcustomvars</method>
|
882 |
</buckaroo3extended_paymentmethod_observer_masterpass_lightbox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
883 |
</observers>
|
884 |
</buckaroo3extended_request_addcustomvars>
|
885 |
<buckaroo3extended_request_setmethod>
|
@@ -1014,6 +1049,16 @@
|
|
1014 |
<class>buckaroo3extended/paymentMethods_masterpassLightbox_observer</class>
|
1015 |
<method>buckaroo3extended_request_setmethod</method>
|
1016 |
</buckaroo3extended_paymentmethod_observer_masterpass_lightbox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1017 |
</observers>
|
1018 |
</buckaroo3extended_request_setmethod>
|
1019 |
<buckaroo3extended_push_custom_processing>
|
@@ -1050,6 +1095,13 @@
|
|
1050 |
<method>buckaroo3extended_push_custom_processing</method>
|
1051 |
</buckaroo3extended_paymentmethod_observer_giftcard>
|
1052 |
</observers>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1053 |
</buckaroo3extended_push_custom_processing>
|
1054 |
<buckaroo3extended_return_custom_processing>
|
1055 |
<observers>
|
@@ -1139,6 +1191,16 @@
|
|
1139 |
<class>buckaroo3extended/paymentMethods_paymentguarantee_observer</class>
|
1140 |
<method>buckaroo3extended_response_custom_processing</method>
|
1141 |
</buckaroo3extended_paymentmethod_observer_paymentguarantee>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1142 |
</observers>
|
1143 |
</buckaroo3extended_response_custom_processing>
|
1144 |
<buckaroo3extended_capture_request_addservices>
|
@@ -1153,6 +1215,11 @@
|
|
1153 |
<class>buckaroo3extended/paymentMethods_afterpay2_observer</class>
|
1154 |
<method>buckaroo3extended_capture_request_addservices</method>
|
1155 |
</buckaroo3extended_paymentmethod_observer_afterpay2>
|
|
|
|
|
|
|
|
|
|
|
1156 |
</observers>
|
1157 |
</buckaroo3extended_capture_request_addservices>
|
1158 |
<buckaroo3extended_capture_request_addcustomvars>
|
@@ -1167,6 +1234,11 @@
|
|
1167 |
<class>buckaroo3extended/paymentMethods_afterpay2_observer</class>
|
1168 |
<method>buckaroo3extended_capture_request_addcustomvars</method>
|
1169 |
</buckaroo3extended_paymentmethod_observer_afterpay2>
|
|
|
|
|
|
|
|
|
|
|
1170 |
</observers>
|
1171 |
</buckaroo3extended_capture_request_addcustomvars>
|
1172 |
<buckaroo3extended_cancelauthorize_request_addservices>
|
@@ -1181,8 +1253,22 @@
|
|
1181 |
<class>buckaroo3extended/paymentMethods_afterpay2_observer</class>
|
1182 |
<method>buckaroo3extended_cancelauthorize_request_addservices</method>
|
1183 |
</buckaroo3extended_paymentmethod_observer_afterpay2>
|
|
|
|
|
|
|
|
|
|
|
1184 |
</observers>
|
1185 |
</buckaroo3extended_cancelauthorize_request_addservices>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1186 |
</events>
|
1187 |
</global>
|
1188 |
<default>
|
@@ -1370,6 +1456,20 @@
|
|
1370 |
<sort_order>210</sort_order>
|
1371 |
<group>buckaroo3extended</group>
|
1372 |
</buckaroo3extended_masterpass_lightbox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1373 |
<buckaroo2012ideal>
|
1374 |
<active>0</active>
|
1375 |
<model>buckaroo3extended/oldPaymentMethods_oldPaymentMethod</model>
|
@@ -1936,6 +2036,37 @@
|
|
1936 |
<payment_fee_label>Fee</payment_fee_label>
|
1937 |
<order_email>1</order_email>
|
1938 |
</buckaroo3extended_masterpass_lightbox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1939 |
</buckaroo>
|
1940 |
<tax>
|
1941 |
<calculation>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<TIG_Buckaroo3Extended>
|
5 |
+
<version>4.17.0</version>
|
6 |
</TIG_Buckaroo3Extended>
|
7 |
</modules>
|
8 |
<tig>
|
361 |
<class>buckaroo3extended/paymentMethods_bancontactmrcash_observer</class>
|
362 |
<method>buckaroo3extended_refund_request_setmethod</method>
|
363 |
</buckaroo3extended_paymentmethod_observer_bancontactmrcash>
|
364 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
365 |
+
<type>Singleton</type>
|
366 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
367 |
+
<method>buckaroo3extended_request_setmethod</method>
|
368 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
369 |
</observers>
|
370 |
</buckaroo3extended_refund_request_setmethod>
|
371 |
<buckaroo3extended_refund_request_addservices>
|
475 |
<class>buckaroo3extended/paymentMethods_bancontactmrcash_observer</class>
|
476 |
<method>buckaroo3extended_refund_request_addservices</method>
|
477 |
</buckaroo3extended_paymentmethod_observer_bancontactmrcash>
|
478 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
479 |
+
<type>Singleton</type>
|
480 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
481 |
+
<method>buckaroo3extended_refund_request_addservices</method>
|
482 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
483 |
</observers>
|
484 |
</buckaroo3extended_refund_request_addservices>
|
485 |
<buckaroo3extended_refund_request_addcustomvars>
|
589 |
<class>buckaroo3extended/paymentMethods_bancontactmrcash_observer</class>
|
590 |
<method>buckaroo3extended_refund_request_addcustomvars</method>
|
591 |
</buckaroo3extended_paymentmethod_observer_bancontactmrcash>
|
592 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
593 |
+
<type>Singleton</type>
|
594 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
595 |
+
<method>buckaroo3extended_refund_request_addcustomvars</method>
|
596 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
597 |
</observers>
|
598 |
</buckaroo3extended_refund_request_addcustomvars>
|
599 |
<buckaroo3extended_refund_response_custom_processing>
|
761 |
<class>buckaroo3extended/paymentMethods_masterpassLightbox_observer</class>
|
762 |
<method>buckaroo3extended_request_addservices</method>
|
763 |
</buckaroo3extended_paymentmethod_observer_masterpass_lightbox>
|
764 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
765 |
+
<type>Singleton</type>
|
766 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
767 |
+
<method>buckaroo3extended_request_addservices</method>
|
768 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
769 |
+
<buckaroo3extended_paymentmethod_observer_pospayment>
|
770 |
+
<type>Singleton</type>
|
771 |
+
<class>buckaroo3extended/paymentMethods_pospayment_observer</class>
|
772 |
+
<method>buckaroo3extended_request_addservices</method>
|
773 |
+
</buckaroo3extended_paymentmethod_observer_pospayment>
|
774 |
</observers>
|
775 |
</buckaroo3extended_request_addservices>
|
776 |
<buckaroo3extended_request_addcustomvars>
|
905 |
<class>buckaroo3extended/paymentMethods_masterpassLightbox_observer</class>
|
906 |
<method>buckaroo3extended_request_addcustomvars</method>
|
907 |
</buckaroo3extended_paymentmethod_observer_masterpass_lightbox>
|
908 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
909 |
+
<type>Singleton</type>
|
910 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
911 |
+
<method>buckaroo3extended_request_addcustomvars</method>
|
912 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
913 |
+
<buckaroo3extended_paymentmethod_observer_pospayment>
|
914 |
+
<type>Singleton</type>
|
915 |
+
<class>buckaroo3extended/paymentMethods_pospayment_observer</class>
|
916 |
+
<method>buckaroo3extended_request_addcustomvars</method>
|
917 |
+
</buckaroo3extended_paymentmethod_observer_pospayment>
|
918 |
</observers>
|
919 |
</buckaroo3extended_request_addcustomvars>
|
920 |
<buckaroo3extended_request_setmethod>
|
1049 |
<class>buckaroo3extended/paymentMethods_masterpassLightbox_observer</class>
|
1050 |
<method>buckaroo3extended_request_setmethod</method>
|
1051 |
</buckaroo3extended_paymentmethod_observer_masterpass_lightbox>
|
1052 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1053 |
+
<type>Singleton</type>
|
1054 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1055 |
+
<method>buckaroo3extended_request_setmethod</method>
|
1056 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1057 |
+
<buckaroo3extended_paymentmethod_observer_pospayment>
|
1058 |
+
<type>Singleton</type>
|
1059 |
+
<class>buckaroo3extended/paymentMethods_pospayment_observer</class>
|
1060 |
+
<method>buckaroo3extended_request_setmethod</method>
|
1061 |
+
</buckaroo3extended_paymentmethod_observer_pospayment>
|
1062 |
</observers>
|
1063 |
</buckaroo3extended_request_setmethod>
|
1064 |
<buckaroo3extended_push_custom_processing>
|
1095 |
<method>buckaroo3extended_push_custom_processing</method>
|
1096 |
</buckaroo3extended_paymentmethod_observer_giftcard>
|
1097 |
</observers>
|
1098 |
+
<observers>
|
1099 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1100 |
+
<type>Singleton</type>
|
1101 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1102 |
+
<method>buckaroo3extended_push_custom_processing</method>
|
1103 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1104 |
+
</observers>
|
1105 |
</buckaroo3extended_push_custom_processing>
|
1106 |
<buckaroo3extended_return_custom_processing>
|
1107 |
<observers>
|
1191 |
<class>buckaroo3extended/paymentMethods_paymentguarantee_observer</class>
|
1192 |
<method>buckaroo3extended_response_custom_processing</method>
|
1193 |
</buckaroo3extended_paymentmethod_observer_paymentguarantee>
|
1194 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1195 |
+
<type>Singleton</type>
|
1196 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1197 |
+
<method>buckaroo3extended_response_custom_processing</method>
|
1198 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1199 |
+
<buckaroo3extended_paymentmethod_observer_pospayment>
|
1200 |
+
<type>Singleton</type>
|
1201 |
+
<class>buckaroo3extended/paymentMethods_pospayment_observer</class>
|
1202 |
+
<method>buckaroo3extended_response_custom_processing</method>
|
1203 |
+
</buckaroo3extended_paymentmethod_observer_pospayment>
|
1204 |
</observers>
|
1205 |
</buckaroo3extended_response_custom_processing>
|
1206 |
<buckaroo3extended_capture_request_addservices>
|
1215 |
<class>buckaroo3extended/paymentMethods_afterpay2_observer</class>
|
1216 |
<method>buckaroo3extended_capture_request_addservices</method>
|
1217 |
</buckaroo3extended_paymentmethod_observer_afterpay2>
|
1218 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1219 |
+
<type>Singleton</type>
|
1220 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1221 |
+
<method>buckaroo3extended_capture_request_addservices</method>
|
1222 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1223 |
</observers>
|
1224 |
</buckaroo3extended_capture_request_addservices>
|
1225 |
<buckaroo3extended_capture_request_addcustomvars>
|
1234 |
<class>buckaroo3extended/paymentMethods_afterpay2_observer</class>
|
1235 |
<method>buckaroo3extended_capture_request_addcustomvars</method>
|
1236 |
</buckaroo3extended_paymentmethod_observer_afterpay2>
|
1237 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1238 |
+
<type>Singleton</type>
|
1239 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1240 |
+
<method>buckaroo3extended_capture_request_addcustomvars</method>
|
1241 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1242 |
</observers>
|
1243 |
</buckaroo3extended_capture_request_addcustomvars>
|
1244 |
<buckaroo3extended_cancelauthorize_request_addservices>
|
1253 |
<class>buckaroo3extended/paymentMethods_afterpay2_observer</class>
|
1254 |
<method>buckaroo3extended_cancelauthorize_request_addservices</method>
|
1255 |
</buckaroo3extended_paymentmethod_observer_afterpay2>
|
1256 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1257 |
+
<type>Singleton</type>
|
1258 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1259 |
+
<method>buckaroo3extended_cancelauthorize_request_addservices</method>
|
1260 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1261 |
</observers>
|
1262 |
</buckaroo3extended_cancelauthorize_request_addservices>
|
1263 |
+
<buckaroo3extended_cancelauthorize_request_addcustomvars>
|
1264 |
+
<observers>
|
1265 |
+
<buckaroo3extended_paymentmethod_observer_klarna>
|
1266 |
+
<type>Singleton</type>
|
1267 |
+
<class>buckaroo3extended/paymentMethods_klarna_observer</class>
|
1268 |
+
<method>buckaroo3extended_cancelauthorize_request_addcustomvars</method>
|
1269 |
+
</buckaroo3extended_paymentmethod_observer_klarna>
|
1270 |
+
</observers>
|
1271 |
+
</buckaroo3extended_cancelauthorize_request_addcustomvars>
|
1272 |
</events>
|
1273 |
</global>
|
1274 |
<default>
|
1456 |
<sort_order>210</sort_order>
|
1457 |
<group>buckaroo3extended</group>
|
1458 |
</buckaroo3extended_masterpass_lightbox>
|
1459 |
+
<buckaroo3extended_klarna>
|
1460 |
+
<active>1</active>
|
1461 |
+
<model>buckaroo3extended/paymentMethods_klarna_paymentMethod</model>
|
1462 |
+
<title>Klarna</title>
|
1463 |
+
<sort_order>220</sort_order>
|
1464 |
+
<group>buckaroo3extended</group>
|
1465 |
+
</buckaroo3extended_klarna>
|
1466 |
+
<buckaroo3extended_pospayment>
|
1467 |
+
<active>1</active>
|
1468 |
+
<model>buckaroo3extended/paymentMethods_pospayment_paymentMethod</model>
|
1469 |
+
<title>POSPayment</title>
|
1470 |
+
<sort_order>230</sort_order>
|
1471 |
+
<group>buckaroo3extended</group>
|
1472 |
+
</buckaroo3extended_pospayment>
|
1473 |
<buckaroo2012ideal>
|
1474 |
<active>0</active>
|
1475 |
<model>buckaroo3extended/oldPaymentMethods_oldPaymentMethod</model>
|
2036 |
<payment_fee_label>Fee</payment_fee_label>
|
2037 |
<order_email>1</order_email>
|
2038 |
</buckaroo3extended_masterpass_lightbox>
|
2039 |
+
|
2040 |
+
<buckaroo3extended_klarna>
|
2041 |
+
<active>0</active>
|
2042 |
+
<mode>0</mode>
|
2043 |
+
<title>Klarna</title>
|
2044 |
+
<allowspecific>0</allowspecific>
|
2045 |
+
<specificcountry></specificcountry>
|
2046 |
+
<order_status_success></order_status_success>
|
2047 |
+
<order_status_failed></order_status_failed>
|
2048 |
+
<sort_order>210</sort_order>
|
2049 |
+
<limit_by_ip>0</limit_by_ip>
|
2050 |
+
<allowed_currencies>EUR</allowed_currencies>
|
2051 |
+
<payment_fee_label>Fee</payment_fee_label>
|
2052 |
+
<order_email>1</order_email>
|
2053 |
+
<send_invoice_by>email</send_invoice_by>
|
2054 |
+
</buckaroo3extended_klarna>
|
2055 |
+
|
2056 |
+
<buckaroo3extended_pospayment>
|
2057 |
+
<active>0</active>
|
2058 |
+
<mode>0</mode>
|
2059 |
+
<title>POSPayment</title>
|
2060 |
+
<allowspecific>0</allowspecific>
|
2061 |
+
<specificcountry></specificcountry>
|
2062 |
+
<order_status_success></order_status_success>
|
2063 |
+
<order_status_failed></order_status_failed>
|
2064 |
+
<sort_order>220</sort_order>
|
2065 |
+
<limit_by_ip>0</limit_by_ip>
|
2066 |
+
<allowed_currencies>EUR</allowed_currencies>
|
2067 |
+
<payment_fee_label>Fee</payment_fee_label>
|
2068 |
+
<order_email>1</order_email>
|
2069 |
+
</buckaroo3extended_pospayment>
|
2070 |
</buckaroo>
|
2071 |
<tax>
|
2072 |
<calculation>
|
@@ -6452,6 +6452,461 @@
|
|
6452 |
</limit_by_ip>
|
6453 |
</fields>
|
6454 |
</buckaroo3extended_masterpass>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6455 |
<buckaroo3extended_refund translate="label">
|
6456 |
<label>Refunding</label>
|
6457 |
<sort_order>20500</sort_order>
|
6452 |
</limit_by_ip>
|
6453 |
</fields>
|
6454 |
</buckaroo3extended_masterpass>
|
6455 |
+
<buckaroo3extended_klarna translate="label">
|
6456 |
+
<label>Klarna</label>
|
6457 |
+
<sort_order>20250</sort_order>
|
6458 |
+
<show_in_default>1</show_in_default>
|
6459 |
+
<show_in_website>1</show_in_website>
|
6460 |
+
<show_in_store>1</show_in_store>
|
6461 |
+
<fields>
|
6462 |
+
<active translate="label comment">
|
6463 |
+
<label>Enabled</label>
|
6464 |
+
<comment>Enable or disable this payment method.</comment>
|
6465 |
+
<frontend_type>select</frontend_type>
|
6466 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6467 |
+
<sort_order>10</sort_order>
|
6468 |
+
<show_in_default>1</show_in_default>
|
6469 |
+
<show_in_website>1</show_in_website>
|
6470 |
+
<show_in_store>1</show_in_store>
|
6471 |
+
</active>
|
6472 |
+
<mode translate="label comment">
|
6473 |
+
<label>Payment modus</label>
|
6474 |
+
<comment>! Test transactions are registered in Payment plaza !</comment>
|
6475 |
+
<frontend_type>select</frontend_type>
|
6476 |
+
<source_model>buckaroo3extended/sources_testLive</source_model>
|
6477 |
+
<sort_order>20</sort_order>
|
6478 |
+
<show_in_default>1</show_in_default>
|
6479 |
+
<show_in_website>1</show_in_website>
|
6480 |
+
<show_in_store>1</show_in_store>
|
6481 |
+
</mode>
|
6482 |
+
<title translate="label comment">
|
6483 |
+
<label>Frontend label</label>
|
6484 |
+
<comment>Determines the frontend label shown.</comment>
|
6485 |
+
<frontend_type>text</frontend_type>
|
6486 |
+
<sort_order>30</sort_order>
|
6487 |
+
<show_in_default>1</show_in_default>
|
6488 |
+
<show_in_website>1</show_in_website>
|
6489 |
+
<show_in_store>1</show_in_store>
|
6490 |
+
</title>
|
6491 |
+
<sort_order translate="label comment">
|
6492 |
+
<label>Frontend sort order</label>
|
6493 |
+
<comment>Determines the sorting of payment methods.</comment>
|
6494 |
+
<frontend_type>text</frontend_type>
|
6495 |
+
<sort_order>40</sort_order>
|
6496 |
+
<show_in_default>1</show_in_default>
|
6497 |
+
<show_in_website>1</show_in_website>
|
6498 |
+
<show_in_store>1</show_in_store>
|
6499 |
+
</sort_order>
|
6500 |
+
<send_invoice_by translate="label comment">
|
6501 |
+
<label>Send invoice by</label>
|
6502 |
+
<comment>Select how Klarna should send the invoice. Please note that Klarna charges a fee when the invoice is send by mail.</comment>
|
6503 |
+
<frontend_type>select</frontend_type>
|
6504 |
+
<source_model>buckaroo3extended/sources_klarna_sendInvoiceBy</source_model>
|
6505 |
+
<sort_order>50</sort_order>
|
6506 |
+
<show_in_default>1</show_in_default>
|
6507 |
+
<show_in_website>1</show_in_website>
|
6508 |
+
<show_in_store>1</show_in_store>
|
6509 |
+
</send_invoice_by>
|
6510 |
+
<order_email translate="label comment">
|
6511 |
+
<label>Send order confirmation email</label>
|
6512 |
+
<comment>Activate to send an order confirmation e-mail when the order has been successfully placed. Specific for this payment method. This does not automatically mean that the payment has been made (yet).</comment>
|
6513 |
+
<frontend_type>select</frontend_type>
|
6514 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6515 |
+
<sort_order>60</sort_order>
|
6516 |
+
<show_in_default>1</show_in_default>
|
6517 |
+
<show_in_website>1</show_in_website>
|
6518 |
+
<show_in_store>1</show_in_store>
|
6519 |
+
</order_email>
|
6520 |
+
<show_advanced translate="label comment">
|
6521 |
+
<comment>Enable or disable advanced options.</comment>
|
6522 |
+
<frontend_type>select</frontend_type>
|
6523 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6524 |
+
<sort_order>70</sort_order>
|
6525 |
+
<show_in_default>1</show_in_default>
|
6526 |
+
<show_in_website>1</show_in_website>
|
6527 |
+
<show_in_store>1</show_in_store>
|
6528 |
+
</show_advanced>
|
6529 |
+
<payment_fee translate="label comment" module="buckaroo3extended">
|
6530 |
+
<label>Fee</label>
|
6531 |
+
<comment>The above amount is calculated based on de Tax settings in System > Configuration > Sales > Tax.</comment>
|
6532 |
+
<frontend_type>text</frontend_type>
|
6533 |
+
<sort_order>80</sort_order>
|
6534 |
+
<show_in_default>1</show_in_default>
|
6535 |
+
<show_in_website>1</show_in_website>
|
6536 |
+
<show_in_store>1</show_in_store>
|
6537 |
+
<validate>validate-not-negative-number</validate>
|
6538 |
+
<depends>
|
6539 |
+
<show_advanced>1</show_advanced>
|
6540 |
+
</depends>
|
6541 |
+
</payment_fee>
|
6542 |
+
<payment_fee_label translate="label comment" module="buckaroo3extended">
|
6543 |
+
<label>Fee label</label>
|
6544 |
+
<comment>This label will be displayed next to the fee on the checkout, order, invoice and creditmemo pages and pdfs.</comment>
|
6545 |
+
<frontend_type>text</frontend_type>
|
6546 |
+
<sort_order>90</sort_order>
|
6547 |
+
<show_in_default>1</show_in_default>
|
6548 |
+
<show_in_website>1</show_in_website>
|
6549 |
+
<show_in_store>1</show_in_store>
|
6550 |
+
<validate>required-entry</validate>
|
6551 |
+
<depends>
|
6552 |
+
<show_advanced>1</show_advanced>
|
6553 |
+
</depends>
|
6554 |
+
</payment_fee_label>
|
6555 |
+
<active_status translate="label comment">
|
6556 |
+
<label>Method specific status enabled</label>
|
6557 |
+
<comment>Enable or disable specific status.</comment>
|
6558 |
+
<frontend_type>select</frontend_type>
|
6559 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6560 |
+
<sort_order>100</sort_order>
|
6561 |
+
<show_in_default>1</show_in_default>
|
6562 |
+
<show_in_website>1</show_in_website>
|
6563 |
+
<show_in_store>1</show_in_store>
|
6564 |
+
<depends>
|
6565 |
+
<show_advanced>1</show_advanced>
|
6566 |
+
</depends>
|
6567 |
+
</active_status>
|
6568 |
+
<order_status_success translate="label comment tooltip">
|
6569 |
+
<label>Method specific success status</label>
|
6570 |
+
<comment>Leave empty to use default 'success' status.</comment>
|
6571 |
+
<tooltip>To make a new status available it needs to be assigned to the correct state. See Magento documentation about state and status.</tooltip>
|
6572 |
+
<frontend_type>select</frontend_type>
|
6573 |
+
<source_model>buckaroo3extended/sources_statusesSuccess</source_model>
|
6574 |
+
<sort_order>110</sort_order>
|
6575 |
+
<show_in_default>1</show_in_default>
|
6576 |
+
<show_in_website>1</show_in_website>
|
6577 |
+
<show_in_store>1</show_in_store>
|
6578 |
+
<validate>buckaroo3extended_klarna_advanced</validate>
|
6579 |
+
<depends>
|
6580 |
+
<show_advanced>1</show_advanced>
|
6581 |
+
<active_status>1</active_status>
|
6582 |
+
</depends>
|
6583 |
+
</order_status_success>
|
6584 |
+
<order_status_failed translate="label comment tooltip">
|
6585 |
+
<label>Method specific failed status</label>
|
6586 |
+
<comment>Leave empty to use default 'failed' status.</comment>
|
6587 |
+
<tooltip>To make a new status available it needs to be assigned to the correct state. See Magento documentation about state and status.</tooltip>
|
6588 |
+
<frontend_type>select</frontend_type>
|
6589 |
+
<source_model>buckaroo3extended/sources_statusesFailed</source_model>
|
6590 |
+
<sort_order>120</sort_order>
|
6591 |
+
<show_in_default>1</show_in_default>
|
6592 |
+
<show_in_website>1</show_in_website>
|
6593 |
+
<show_in_store>1</show_in_store>
|
6594 |
+
<validate>buckaroo3extended_klarna_advanced</validate>
|
6595 |
+
<depends>
|
6596 |
+
<show_advanced>1</show_advanced>
|
6597 |
+
<active_status>1</active_status>
|
6598 |
+
</depends>
|
6599 |
+
</order_status_failed>
|
6600 |
+
<max_amount translate="label comment tooltip">
|
6601 |
+
<label>Max order amount (in Base Currency)</label>
|
6602 |
+
<comment>Maximum order amount allowed.</comment>
|
6603 |
+
<tooltip>The payment method show only for orders with an order amount smaller then the maximum amount.</tooltip>
|
6604 |
+
<frontend_type>text</frontend_type>
|
6605 |
+
<sort_order>130</sort_order>
|
6606 |
+
<show_in_default>1</show_in_default>
|
6607 |
+
<show_in_website>1</show_in_website>
|
6608 |
+
<show_in_store>1</show_in_store>
|
6609 |
+
<depends>
|
6610 |
+
<show_advanced>1</show_advanced>
|
6611 |
+
</depends>
|
6612 |
+
</max_amount>
|
6613 |
+
<min_amount translate="label comment tooltip">
|
6614 |
+
<label>Min order amount (in Base Currency)</label>
|
6615 |
+
<comment>Minimum order amount allowed.</comment>
|
6616 |
+
<tooltip>The payment method show only for orders with an order amount greater than the minimum amount.</tooltip>
|
6617 |
+
<frontend_type>text</frontend_type>
|
6618 |
+
<sort_order>140</sort_order>
|
6619 |
+
<show_in_default>1</show_in_default>
|
6620 |
+
<show_in_website>1</show_in_website>
|
6621 |
+
<show_in_store>1</show_in_store>
|
6622 |
+
<depends>
|
6623 |
+
<show_advanced>1</show_advanced>
|
6624 |
+
</depends>
|
6625 |
+
</min_amount>
|
6626 |
+
<allowed_currencies translate="label comment tooltip">
|
6627 |
+
<label>Allowed currencies</label>
|
6628 |
+
<comment>Select payment method specific currencies.</comment>
|
6629 |
+
<tooltip>Your contract with Buckaroo must allow for the selected currencies to be used with this payment method.</tooltip>
|
6630 |
+
<frontend_type>multiselect</frontend_type>
|
6631 |
+
<source_model>buckaroo3extended/sources_klarna_availableCurrencies</source_model>
|
6632 |
+
<sort_order>150</sort_order>
|
6633 |
+
<show_in_default>1</show_in_default>
|
6634 |
+
<show_in_website>1</show_in_website>
|
6635 |
+
<show_in_store>1</show_in_store>
|
6636 |
+
<validate>buckaroo3extended_klarna_advanced</validate>
|
6637 |
+
<depends>
|
6638 |
+
<show_advanced>1</show_advanced>
|
6639 |
+
</depends>
|
6640 |
+
</allowed_currencies>
|
6641 |
+
<allowspecific translate="label">
|
6642 |
+
<label>Payment from applicable countries</label>
|
6643 |
+
<frontend_type>allowspecific</frontend_type>
|
6644 |
+
<source_model>buckaroo3extended/sources_allspecificcountries</source_model>
|
6645 |
+
<sort_order>160</sort_order>
|
6646 |
+
<show_in_default>1</show_in_default>
|
6647 |
+
<show_in_website>1</show_in_website>
|
6648 |
+
<show_in_store>1</show_in_store>
|
6649 |
+
<depends>
|
6650 |
+
<show_advanced>1</show_advanced>
|
6651 |
+
</depends>
|
6652 |
+
</allowspecific>
|
6653 |
+
<specificcountry translate="label comment">
|
6654 |
+
<label>Payment from Specific Country</label>
|
6655 |
+
<comment>Only available when set to 'specific countries'.</comment>
|
6656 |
+
<frontend_type>multiselect</frontend_type>
|
6657 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
6658 |
+
<sort_order>170</sort_order>
|
6659 |
+
<show_in_default>1</show_in_default>
|
6660 |
+
<show_in_website>1</show_in_website>
|
6661 |
+
<show_in_store>1</show_in_store>
|
6662 |
+
<depends>
|
6663 |
+
<show_advanced>1</show_advanced>
|
6664 |
+
<allowspecific>1</allowspecific>
|
6665 |
+
</depends>
|
6666 |
+
</specificcountry>
|
6667 |
+
<limit_by_ip translate="label comment">
|
6668 |
+
<label>Display only for selected IP's</label>
|
6669 |
+
<comment>Show method only to Magento set IP's.</comment>
|
6670 |
+
<tooltip>Magento developer client restrictions.</tooltip>
|
6671 |
+
<frontend_type>select</frontend_type>
|
6672 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6673 |
+
<sort_order>180</sort_order>
|
6674 |
+
<show_in_default>1</show_in_default>
|
6675 |
+
<show_in_website>1</show_in_website>
|
6676 |
+
<show_in_store>1</show_in_store>
|
6677 |
+
<depends>
|
6678 |
+
<show_advanced>1</show_advanced>
|
6679 |
+
</depends>
|
6680 |
+
</limit_by_ip>
|
6681 |
+
</fields>
|
6682 |
+
</buckaroo3extended_klarna>
|
6683 |
+
<buckaroo3extended_pospayment translate="label">
|
6684 |
+
<label>POSPpayment</label>
|
6685 |
+
<sort_order>20300</sort_order>
|
6686 |
+
<show_in_default>1</show_in_default>
|
6687 |
+
<show_in_website>1</show_in_website>
|
6688 |
+
<show_in_store>1</show_in_store>
|
6689 |
+
<fields>
|
6690 |
+
<active translate="label comment">
|
6691 |
+
<label>Enabled</label>
|
6692 |
+
<comment>Enable or disable this payment method.</comment>
|
6693 |
+
<frontend_type>select</frontend_type>
|
6694 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6695 |
+
<sort_order>10</sort_order>
|
6696 |
+
<show_in_default>1</show_in_default>
|
6697 |
+
<show_in_website>1</show_in_website>
|
6698 |
+
<show_in_store>1</show_in_store>
|
6699 |
+
</active>
|
6700 |
+
<mode translate="label comment">
|
6701 |
+
<label>Payment modus</label>
|
6702 |
+
<comment>! Test transactions are registered in Payment plaza !</comment>
|
6703 |
+
<frontend_type>select</frontend_type>
|
6704 |
+
<source_model>buckaroo3extended/sources_testLive</source_model>
|
6705 |
+
<sort_order>20</sort_order>
|
6706 |
+
<show_in_default>1</show_in_default>
|
6707 |
+
<show_in_website>1</show_in_website>
|
6708 |
+
<show_in_store>1</show_in_store>
|
6709 |
+
</mode>
|
6710 |
+
<title translate="label comment">
|
6711 |
+
<label>Frontend label</label>
|
6712 |
+
<comment>Determines the frontend label shown.</comment>
|
6713 |
+
<frontend_type>text</frontend_type>
|
6714 |
+
<sort_order>30</sort_order>
|
6715 |
+
<show_in_default>1</show_in_default>
|
6716 |
+
<show_in_website>1</show_in_website>
|
6717 |
+
<show_in_store>1</show_in_store>
|
6718 |
+
</title>
|
6719 |
+
<sort_order translate="label comment">
|
6720 |
+
<label>Frontend sort order</label>
|
6721 |
+
<comment>Determines the sorting of payment methods.</comment>
|
6722 |
+
<frontend_type>text</frontend_type>
|
6723 |
+
<sort_order>40</sort_order>
|
6724 |
+
<show_in_default>1</show_in_default>
|
6725 |
+
<show_in_website>1</show_in_website>
|
6726 |
+
<show_in_store>1</show_in_store>
|
6727 |
+
</sort_order>
|
6728 |
+
<order_email translate="label comment">
|
6729 |
+
<label>Send order confirmation email</label>
|
6730 |
+
<comment>Activate to send an order confirmation e-mail when the order has been successfully placed. Specific for this payment method. This does not automatically mean that the payment has been made (yet).</comment>
|
6731 |
+
<frontend_type>select</frontend_type>
|
6732 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6733 |
+
<sort_order>50</sort_order>
|
6734 |
+
<show_in_default>1</show_in_default>
|
6735 |
+
<show_in_website>1</show_in_website>
|
6736 |
+
<show_in_store>1</show_in_store>
|
6737 |
+
</order_email>
|
6738 |
+
<user_agent translate="label comment">
|
6739 |
+
<label>Unique User-Agent</label>
|
6740 |
+
<comment>The payment method will be shown only when the User-Agent matches this configuration value. The payment method will always be shown when this value is empty.</comment>
|
6741 |
+
<frontend_type>text</frontend_type>
|
6742 |
+
<sort_order>70</sort_order>
|
6743 |
+
<show_in_default>1</show_in_default>
|
6744 |
+
<show_in_website>1</show_in_website>
|
6745 |
+
<show_in_store>1</show_in_store>
|
6746 |
+
</user_agent>
|
6747 |
+
<show_advanced translate="label comment">
|
6748 |
+
<comment>Enable or disable advanced options.</comment>
|
6749 |
+
<frontend_type>select</frontend_type>
|
6750 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6751 |
+
<sort_order>80</sort_order>
|
6752 |
+
<show_in_default>1</show_in_default>
|
6753 |
+
<show_in_website>1</show_in_website>
|
6754 |
+
<show_in_store>1</show_in_store>
|
6755 |
+
</show_advanced>
|
6756 |
+
<payment_fee translate="label comment" module="buckaroo3extended">
|
6757 |
+
<label>Fee</label>
|
6758 |
+
<comment>The above amount is calculated based on de Tax settings in System > Configuration > Sales > Tax.</comment>
|
6759 |
+
<frontend_type>text</frontend_type>
|
6760 |
+
<sort_order>90</sort_order>
|
6761 |
+
<show_in_default>1</show_in_default>
|
6762 |
+
<show_in_website>1</show_in_website>
|
6763 |
+
<show_in_store>1</show_in_store>
|
6764 |
+
<validate>validate-not-negative-number</validate>
|
6765 |
+
<depends>
|
6766 |
+
<show_advanced>1</show_advanced>
|
6767 |
+
</depends>
|
6768 |
+
</payment_fee>
|
6769 |
+
<payment_fee_label translate="label comment" module="buckaroo3extended">
|
6770 |
+
<label>Fee label</label>
|
6771 |
+
<comment>This label will be displayed next to the fee on the checkout, order, invoice and creditmemo pages and pdfs.</comment>
|
6772 |
+
<frontend_type>text</frontend_type>
|
6773 |
+
<sort_order>100</sort_order>
|
6774 |
+
<show_in_default>1</show_in_default>
|
6775 |
+
<show_in_website>1</show_in_website>
|
6776 |
+
<show_in_store>1</show_in_store>
|
6777 |
+
<validate>required-entry</validate>
|
6778 |
+
<depends>
|
6779 |
+
<show_advanced>1</show_advanced>
|
6780 |
+
</depends>
|
6781 |
+
</payment_fee_label>
|
6782 |
+
<max_amount translate="label comment tooltip">
|
6783 |
+
<label>Max order amount (in Base Currency)</label>
|
6784 |
+
<comment>Maximum order amount allowed.</comment>
|
6785 |
+
<tooltip>The payment method show only for orders with an order amount smaller then the maximum amount.</tooltip>
|
6786 |
+
<frontend_type>text</frontend_type>
|
6787 |
+
<sort_order>110</sort_order>
|
6788 |
+
<show_in_default>1</show_in_default>
|
6789 |
+
<show_in_website>1</show_in_website>
|
6790 |
+
<show_in_store>1</show_in_store>
|
6791 |
+
<depends>
|
6792 |
+
<show_advanced>1</show_advanced>
|
6793 |
+
</depends>
|
6794 |
+
</max_amount>
|
6795 |
+
<min_amount translate="label comment tooltip">
|
6796 |
+
<label>Min order amount (in Base Currency)</label>
|
6797 |
+
<comment>Minimum order amount allowed.</comment>
|
6798 |
+
<tooltip>The payment method show only for orders with an order amount greater than the minimum amount.</tooltip>
|
6799 |
+
<frontend_type>text</frontend_type>
|
6800 |
+
<sort_order>120</sort_order>
|
6801 |
+
<show_in_default>1</show_in_default>
|
6802 |
+
<show_in_website>1</show_in_website>
|
6803 |
+
<show_in_store>1</show_in_store>
|
6804 |
+
<depends>
|
6805 |
+
<show_advanced>1</show_advanced>
|
6806 |
+
</depends>
|
6807 |
+
</min_amount>
|
6808 |
+
<active_status translate="label comment">
|
6809 |
+
<label>Method specific status enabled</label>
|
6810 |
+
<comment>Enable or disable specific status.</comment>
|
6811 |
+
<frontend_type>select</frontend_type>
|
6812 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6813 |
+
<sort_order>130</sort_order>
|
6814 |
+
<show_in_default>1</show_in_default>
|
6815 |
+
<show_in_website>1</show_in_website>
|
6816 |
+
<show_in_store>1</show_in_store>
|
6817 |
+
<depends>
|
6818 |
+
<show_advanced>1</show_advanced>
|
6819 |
+
</depends>
|
6820 |
+
</active_status>
|
6821 |
+
<order_status_success translate="label comment tooltip">
|
6822 |
+
<label>Method specific success status</label>
|
6823 |
+
<comment>Leave empty to use default 'success' status.</comment>
|
6824 |
+
<tooltip>To make a new status available it needs to be assigned to the correct state. See Magento documentation about state and status.</tooltip>
|
6825 |
+
<frontend_type>select</frontend_type>
|
6826 |
+
<source_model>buckaroo3extended/sources_statusesSuccess</source_model>
|
6827 |
+
<sort_order>140</sort_order>
|
6828 |
+
<show_in_default>1</show_in_default>
|
6829 |
+
<show_in_website>1</show_in_website>
|
6830 |
+
<show_in_store>1</show_in_store>
|
6831 |
+
<validate>buckaroo3extended_ideal_advanced</validate>
|
6832 |
+
<depends>
|
6833 |
+
<show_advanced>1</show_advanced>
|
6834 |
+
<active_status>1</active_status>
|
6835 |
+
</depends>
|
6836 |
+
</order_status_success>
|
6837 |
+
<order_status_failed translate="label comment tooltip">
|
6838 |
+
<label>Method specific failed status</label>
|
6839 |
+
<comment>Leave empty to use default 'failed' status.</comment>
|
6840 |
+
<tooltip>To make a new status available it needs to be assigned to the correct state. See Magento documentation about state and status.</tooltip>
|
6841 |
+
<frontend_type>select</frontend_type>
|
6842 |
+
<source_model>buckaroo3extended/sources_statusesFailed</source_model>
|
6843 |
+
<sort_order>150</sort_order>
|
6844 |
+
<show_in_default>1</show_in_default>
|
6845 |
+
<show_in_website>1</show_in_website>
|
6846 |
+
<show_in_store>1</show_in_store>
|
6847 |
+
<validate>buckaroo3extended_ideal_advanced</validate>
|
6848 |
+
<depends>
|
6849 |
+
<show_advanced>1</show_advanced>
|
6850 |
+
<active_status>1</active_status>
|
6851 |
+
</depends>
|
6852 |
+
</order_status_failed>
|
6853 |
+
<allowed_currencies translate="label comment tooltip">
|
6854 |
+
<label>Allowed currencies</label>
|
6855 |
+
<comment>Select payment method specific currencies.</comment>
|
6856 |
+
<tooltip>Your contract with Buckaroo must allow for the selected currencies to be used with this payment method.</tooltip>
|
6857 |
+
<frontend_type>multiselect</frontend_type>
|
6858 |
+
<source_model>buckaroo3extended/sources_pospayment_availableCurrencies</source_model>
|
6859 |
+
<sort_order>160</sort_order>
|
6860 |
+
<show_in_default>1</show_in_default>
|
6861 |
+
<show_in_website>1</show_in_website>
|
6862 |
+
<show_in_store>1</show_in_store>
|
6863 |
+
<validate>buckaroo3extended_ideal_advanced</validate>
|
6864 |
+
<depends>
|
6865 |
+
<show_advanced>1</show_advanced>
|
6866 |
+
</depends>
|
6867 |
+
</allowed_currencies>
|
6868 |
+
<allowspecific translate="label">
|
6869 |
+
<label>Payment from applicable countries</label>
|
6870 |
+
<frontend_type>allowspecific</frontend_type>
|
6871 |
+
<source_model>buckaroo3extended/sources_allspecificcountries</source_model>
|
6872 |
+
<sort_order>170</sort_order>
|
6873 |
+
<show_in_default>1</show_in_default>
|
6874 |
+
<show_in_website>1</show_in_website>
|
6875 |
+
<show_in_store>1</show_in_store>
|
6876 |
+
<depends>
|
6877 |
+
<show_advanced>1</show_advanced>
|
6878 |
+
</depends>
|
6879 |
+
</allowspecific>
|
6880 |
+
<specificcountry translate="label comment">
|
6881 |
+
<label>Payment from Specific Country</label>
|
6882 |
+
<comment>Only available when set to 'specific countries'.</comment>
|
6883 |
+
<frontend_type>multiselect</frontend_type>
|
6884 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
6885 |
+
<sort_order>180</sort_order>
|
6886 |
+
<show_in_default>1</show_in_default>
|
6887 |
+
<show_in_website>1</show_in_website>
|
6888 |
+
<show_in_store>1</show_in_store>
|
6889 |
+
<depends>
|
6890 |
+
<allowspecific>1</allowspecific>
|
6891 |
+
<show_advanced>1</show_advanced>
|
6892 |
+
</depends>
|
6893 |
+
</specificcountry>
|
6894 |
+
<limit_by_ip translate="label comment">
|
6895 |
+
<label>Display only for selected IP's</label>
|
6896 |
+
<comment>Show method only to Magento set IP's.</comment>
|
6897 |
+
<tooltip>Magento developer client restrictions.</tooltip>
|
6898 |
+
<frontend_type>select</frontend_type>
|
6899 |
+
<source_model>buckaroo3extended/sources_yesno</source_model>
|
6900 |
+
<sort_order>190</sort_order>
|
6901 |
+
<show_in_default>1</show_in_default>
|
6902 |
+
<show_in_website>1</show_in_website>
|
6903 |
+
<show_in_store>1</show_in_store>
|
6904 |
+
<depends>
|
6905 |
+
<show_advanced>1</show_advanced>
|
6906 |
+
</depends>
|
6907 |
+
</limit_by_ip>
|
6908 |
+
</fields>
|
6909 |
+
</buckaroo3extended_pospayment>
|
6910 |
<buckaroo3extended_refund translate="label">
|
6911 |
<label>Refunding</label>
|
6912 |
<sort_order>20500</sort_order>
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
|
33 |
+
/** @var TIG_Buckaroo3Extended_Model_Resource_Setup $installer */
|
34 |
+
$installer = $this;
|
35 |
+
|
36 |
+
$installer->startSetup();
|
37 |
+
$conn = $installer->getConnection();
|
38 |
+
|
39 |
+
$conn->addColumn(
|
40 |
+
$installer->getTable('sales/order'),
|
41 |
+
'buckaroo_reservation_number',
|
42 |
+
'varchar(255) null'
|
43 |
+
);
|
44 |
+
|
45 |
+
$installer->endSetup();
|
@@ -70,6 +70,15 @@
|
|
70 |
</reference>
|
71 |
</onestepcheckout_index_index>
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<sales_order_print>
|
74 |
<reference name="order_totals">
|
75 |
<block type="buckaroo3extended/paymentFee_sales_order_totals_fee" before="tax" name="buckaroo_fee"/>
|
70 |
</reference>
|
71 |
</onestepcheckout_index_index>
|
72 |
|
73 |
+
<buckaroo3extended_checkout_pospaymentpending>
|
74 |
+
<reference name="root">
|
75 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
76 |
+
</reference>
|
77 |
+
<reference name="content">
|
78 |
+
<block type="buckaroo3extended/paymentMethods_pospayment_checkout_pendingPayment" name="buckaroo_postpayment_pendingpayment" template="buckaroo3extended/pospayment/checkout/pendingpayment.phtml" />
|
79 |
+
</reference>
|
80 |
+
</buckaroo3extended_checkout_pospaymentpending>
|
81 |
+
|
82 |
<sales_order_print>
|
83 |
<reference name="order_totals">
|
84 |
<block type="buckaroo3extended/paymentFee_sales_order_totals_fee" before="tax" name="buckaroo_fee"/>
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
<div id="payment-errors" class="validation-advice" style="display:none;"></div>
|
34 |
+
|
35 |
+
<?php $_code = $this->getMethodCode() ?>
|
36 |
+
<fieldset class="form-list buckaroo-method">
|
37 |
+
<ul id="payment_form_<?php echo $_code ?>" style="display:none" class="buckaroo3extended_input">
|
38 |
+
<li>
|
39 |
+
<label for="<?php echo $_code;?>_BPE_Customergender" class="required">
|
40 |
+
<?php echo $this->__('Salutation');?>: <em>*</em>
|
41 |
+
</label>
|
42 |
+
<div class="input-box">
|
43 |
+
<select name="<?php echo $_code;?>_BPE_Customergender" class="validate-select validate-number" title="<?php echo $this->__('Salutation');?>" id="<?php echo $_code;?>_BPE_Customergender">
|
44 |
+
<option value=''>
|
45 |
+
<?php echo $this->__('Select'); ?>
|
46 |
+
</option>
|
47 |
+
<option value="1" <?php echo ($this->getGender()===1)?'selected':'';?>>
|
48 |
+
<?php echo $this->__('Mr.'); ?>
|
49 |
+
</option>
|
50 |
+
<option value="2" <?php echo ($this->getGender()===2)?'selected':'';?>>
|
51 |
+
<?php echo $this->__('Mrs.'); ?>
|
52 |
+
</option>
|
53 |
+
</select>
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
|
57 |
+
<li>
|
58 |
+
<label><?php echo $this->__('Billing name');?>:</label>
|
59 |
+
<div class="input-box">
|
60 |
+
<span class="disabled stylefix" id="<?php echo $_code;?>_BPE_Customername" title="<?php echo $this->__('Name');?>">
|
61 |
+
<?php echo $this->escapeHtml($this->getName()); ?>
|
62 |
+
</span>
|
63 |
+
</div>
|
64 |
+
</li>
|
65 |
+
|
66 |
+
<?php $hasTelephone = ($this->getAddress()->getTelephone() && $this->getAddress()->getTelephone() != '-'); ?>
|
67 |
+
<li<?php echo ($hasTelephone ? ' style="display:none;"' : ''); ?>>
|
68 |
+
<label class="required" for="<?php echo $_code;?>_BPE_Customerphone">
|
69 |
+
<?php echo $this->__('Telephone') ?>: <em>*</em>
|
70 |
+
</label>
|
71 |
+
<div class="input-box">
|
72 |
+
<input class="input-text required-entry"
|
73 |
+
type="text"
|
74 |
+
title="<?php echo $this->__('Telephone') ?>"
|
75 |
+
name="<?php echo $_code;?>_bpe_customer_phone_number"
|
76 |
+
value="<?php echo $this->escapeHtml($this->getPhoneNumber()); ?>"
|
77 |
+
id="<?php echo $_code;?>_BPE_Customerphone"/>
|
78 |
+
</div>
|
79 |
+
</li>
|
80 |
+
|
81 |
+
<li>
|
82 |
+
<?php
|
83 |
+
echo $this->getLayout()->createBlock('buckaroo3extended/customer_widget_dob')
|
84 |
+
->setFieldIdFormat($_code . ':billing:%s')
|
85 |
+
->setFieldNameFormat('payment[' . $_code . '][%s]')
|
86 |
+
->setIsRequired(true)
|
87 |
+
->setPaymentMethodCode($_code)
|
88 |
+
->setDate($this->getCustomer()->getDob())
|
89 |
+
->toHtml();
|
90 |
+
?>
|
91 |
+
</li>
|
92 |
+
|
93 |
+
<li>
|
94 |
+
<?php echo Mage::helper('buckaroo3extended')
|
95 |
+
->__('Please make sure all fields are filled in correctly before proceeding.'); ?>
|
96 |
+
</li>
|
97 |
+
</ul>
|
98 |
+
</fieldset>
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
|
33 |
+
$ajaxUrl = $this->getAjaxUrl();
|
34 |
+
?>
|
35 |
+
|
36 |
+
<?php echo $this->__('You can pay at the cash register now.'); ?><br>
|
37 |
+
<?php echo $this->__('You will be redirected to the next page once the payment has been fullfilled.'); ?>
|
38 |
+
|
39 |
+
<script type="text/javascript">
|
40 |
+
var interval = setInterval(function () {
|
41 |
+
checkOrderState();
|
42 |
+
}, 1000);
|
43 |
+
|
44 |
+
function checkOrderState()
|
45 |
+
{
|
46 |
+
new Ajax.Request('<?php echo $ajaxUrl; ?>',{
|
47 |
+
method: 'post',
|
48 |
+
parameters: null,
|
49 |
+
onComplete: processResponse
|
50 |
+
});
|
51 |
+
}
|
52 |
+
|
53 |
+
function processResponse(data) {
|
54 |
+
var response = JSON.parse(data.responseText);
|
55 |
+
|
56 |
+
if ((response.status == 'processing' || response.status == 'canceled') && response.returnUrl.length > 0) {
|
57 |
+
clearInterval(interval);
|
58 |
+
|
59 |
+
location.href = response.returnUrl;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
</script>
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ..::..
|
5 |
+
* ..::::::::::::..
|
6 |
+
* ::'''''':''::'''''::
|
7 |
+
* ::.. ..: : ....::
|
8 |
+
* :::: ::: : : ::
|
9 |
+
* :::: ::: : ''' ::
|
10 |
+
* ::::..:::..::.....::
|
11 |
+
* ''::::::::::::''
|
12 |
+
* ''::''
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* NOTICE OF LICENSE
|
16 |
+
*
|
17 |
+
* This source file is subject to the Creative Commons License.
|
18 |
+
* It is available through the world-wide-web at this URL:
|
19 |
+
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
20 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
21 |
+
* to servicedesk@tig.nl so we can send you a copy immediately.
|
22 |
+
*
|
23 |
+
* DISCLAIMER
|
24 |
+
*
|
25 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
26 |
+
* versions in the future. If you wish to customize this module for your
|
27 |
+
* needs please contact servicedesk@tig.nl for more information.
|
28 |
+
*
|
29 |
+
* @copyright Copyright (c) Total Internet Group B.V. https://tig.nl/copyright
|
30 |
+
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
<div id="payment-errors" class="validation-advice" style="display:none;"></div>
|
34 |
+
|
35 |
+
<?php $_code = $this->getMethodCode() ?>
|
36 |
+
<ul id="payment_form_<?php echo $_code ?>" style="display:none;" class="buckaroo3extended_input form-list buckaroo-method">
|
37 |
+
<li>
|
38 |
+
<label for="<?php echo $_code;?>_BPE_customer_gender" class="required">
|
39 |
+
<?php echo $this->__('Salutation');?>: <em>*</em>
|
40 |
+
</label>
|
41 |
+
<div class="input-box">
|
42 |
+
<select name="<?php echo $_code;?>_BPE_customer_gender" class="validate-select validate-number" title="<?php echo $this->__('Salutation');?>" id="<?php echo $_code;?>_BPE_Customergender">
|
43 |
+
<option value=''>
|
44 |
+
<?php echo $this->__('Select'); ?>
|
45 |
+
</option>
|
46 |
+
<option value="1" <?php echo ($this->getGender()===1)?'selected':'';?>>
|
47 |
+
<?php echo $this->__('Mr.'); ?>
|
48 |
+
</option>
|
49 |
+
<option value="2" <?php echo ($this->getGender()===2)?'selected':'';?>>
|
50 |
+
<?php echo $this->__('Mrs.'); ?>
|
51 |
+
</option>
|
52 |
+
</select>
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
|
56 |
+
<li>
|
57 |
+
<label><?php echo $this->__('Billing name');?>:</label>
|
58 |
+
<div class="input-box">
|
59 |
+
<span class="disabled stylefix" id="<?php echo $_code;?>_BPE_customer_name" title="<?php echo $this->__('Name');?>">
|
60 |
+
<?php echo $this->escapeHtml($this->getName()); ?>
|
61 |
+
</span>
|
62 |
+
</div>
|
63 |
+
</li>
|
64 |
+
|
65 |
+
<?php $hasTelephone = ($this->getAddress()->getTelephone() && $this->getAddress()->getTelephone() != '-'); ?>
|
66 |
+
<li<?php echo ($hasTelephone ? ' style="display:none;"' : ''); ?>>
|
67 |
+
<label class="required" for="<?php echo $_code;?>_BPE_customer_phonenumber">
|
68 |
+
<?php echo $this->__('Telephone') ?>: <em>*</em>
|
69 |
+
</label>
|
70 |
+
<div class="input-box">
|
71 |
+
<input class="input-text required-entry"
|
72 |
+
type="text"
|
73 |
+
title="<?php echo $this->__('Telephone') ?>"
|
74 |
+
name="<?php echo $_code;?>_BPE_customer_phonenumber"
|
75 |
+
value="<?php echo $this->escapeHtml($this->getPhoneNumber()); ?>"
|
76 |
+
id="<?php echo $_code;?>_BPE_Customerphone"/>
|
77 |
+
</div>
|
78 |
+
</li>
|
79 |
+
|
80 |
+
<li>
|
81 |
+
<?php
|
82 |
+
echo $this->getLayout()->createBlock('buckaroo3extended/customer_widget_dob')
|
83 |
+
->setFieldIdFormat($_code . ':billing:%s')
|
84 |
+
->setFieldNameFormat('payment[' . $_code . '][%s]')
|
85 |
+
->setIsRequired(true)
|
86 |
+
->setPaymentMethodCode($_code)
|
87 |
+
->setDate($this->getCustomer()->getDob())
|
88 |
+
->toHtml();
|
89 |
+
?>
|
90 |
+
</li>
|
91 |
+
|
92 |
+
<li>
|
93 |
+
<?php echo Mage::helper('buckaroo3extended')
|
94 |
+
->__('Please make sure all fields are filled in correctly before proceeding.'); ?>
|
95 |
+
</li>
|
96 |
+
</ul>
|
@@ -151,4 +151,12 @@
|
|
151 |
"here","here"
|
152 |
"Convert your account number to IBAN %s","Convert your account number to IBAN %s."
|
153 |
"Please enter these fields as they appear on your bank account.","Please enter these fields as they appear on your bank account."
|
154 |
-
"BIC number","BIC number"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
"here","here"
|
152 |
"Convert your account number to IBAN %s","Convert your account number to IBAN %s."
|
153 |
"Please enter these fields as they appear on your bank account.","Please enter these fields as they appear on your bank account."
|
154 |
+
"BIC number","BIC number",
|
155 |
+
"Send invoice by","Send invoice by"
|
156 |
+
"Select how Klarna should send the invoice. Please note that Klarna charges a fee when the invoice is send by mail.","Select how Klarna should send the invoice. Please note that Klarna charges a fee when the invoice is send by mail."
|
157 |
+
"By e-mail","By e-mail"
|
158 |
+
"By mail (Includes fee from Klarna)","By mail (Includes fee from Klarna)"
|
159 |
+
"Klarna is doing an additional check. The status will be known within 24 hours.","Klarna is doing an additional check. The status will be known within 24 hours."
|
160 |
+
"Klarna has rejected the payment request. Please check the Buckaroo Payment Plaza for additional information.","Klarna has rejected the payment request. Please check the Buckaroo Payment Plaza for additional information."
|
161 |
+
"Unique User-Agent","Unique User-Agent"
|
162 |
+
"The payment method will be shown only when the User-Agent matches this configuration value. The payment method will always be shown when this value is empty.","The payment method will be shown only when the User-Agent matches this configuration value. The payment method will always be shown when this value is empty."
|
@@ -162,6 +162,7 @@
|
|
162 |
"Salutation","Aanhef"
|
163 |
"Bank account number","IBAN"
|
164 |
"Date of birth","Geboortedatum"
|
|
|
165 |
"Day","Dag"
|
166 |
"DD","DD"
|
167 |
"Month","Maand"
|
@@ -362,4 +363,12 @@ TIG_Buckaroo3Extended::Fee label, Betaaltoeslag label
|
|
362 |
"Payment flow","Betaalflow"
|
363 |
"Whether to use separate authorize and capture calls or to use a combined 'pay' call.","Of er een aparte authorize en capture call gedaan wordt of dat er een samengestelde 'pay' call gebruikt wordt."
|
364 |
"Combined","Samengesteld"
|
365 |
-
"Separate authorize and capture","Losse authorize en capture"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
"Salutation","Aanhef"
|
163 |
"Bank account number","IBAN"
|
164 |
"Date of birth","Geboortedatum"
|
165 |
+
"Date of Birth","Geboortedatum"
|
166 |
"Day","Dag"
|
167 |
"DD","DD"
|
168 |
"Month","Maand"
|
363 |
"Payment flow","Betaalflow"
|
364 |
"Whether to use separate authorize and capture calls or to use a combined 'pay' call.","Of er een aparte authorize en capture call gedaan wordt of dat er een samengestelde 'pay' call gebruikt wordt."
|
365 |
"Combined","Samengesteld"
|
366 |
+
"Separate authorize and capture","Losse authorize en capture"
|
367 |
+
"Send invoice by","Verstuur factuur via"
|
368 |
+
"Select how Klarna should send the invoice. Please note that Klarna charges a fee when the invoice is send by mail.","Selecteer hoe de factuur door Klarna verstuurd wordt. Klarna zal extra kosten rekenen wanneer er via mail verstuurd wordt."
|
369 |
+
"By e-mail","Via e-mail"
|
370 |
+
"By mail (Includes fee from Klarna)","Via mail (Extra kosten van klarna inbegrepen)"
|
371 |
+
"Klarna is doing an additional check. The status will be known within 24 hours.","Klarna voert een extra controle uit. De status zal binnen 24 uur bekend worden."
|
372 |
+
"Klarna has rejected the payment request. Please check the Buckaroo Payment Plaza for additional information.","Klarna heeft de betaling afgewezen. U kunt in de Payment Plaza additionele informatie vinden."
|
373 |
+
"Unique User-Agent","Unieke User-Agent"
|
374 |
+
"The payment method will be shown only when the User-Agent matches this configuration value. The payment method will always be shown when this value is empty.","De betaalmethode zal alleen getoond worden wanneer de User-Agent met deze waarde overeenkomt. De betaalmethode wordt altijd getoond wanneer deze waarde leeg is."
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>tig_buckaroo3extended</name>
|
4 |
-
<version>4.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US">Creative Commons License</license>
|
7 |
<channel>community</channel>
|
@@ -12,31 +12,46 @@
|
|
12 |
By using this extension you will be able to offer your customers all the payment methods that Buckaroo has to offer using the BPE 3.0 gateway.
|
13 |

|
14 |
Payment methods available include:
|
15 |
-
- AfterPay
|
16 |
-
- American Express
|
17 |
-
- Mr. Cash
|
18 |
-
- Direct debit
|
19 |
-
- EPS
|
20 |
-
- Giftcards
|
21 |
-
- Giropay
|
22 |
- iDEAL
|
23 |
-
-
|
24 |
-
-
|
25 |
-
-
|
26 |
-
-
|
27 |
-
-
|
28 |
-
-
|
29 |
-
-
|
30 |
-
- Sofort
|
31 |
-
- Transfer
|
32 |
- Visa
|
33 |
- Visa Electron
|
34 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |

|
36 |
Other services offered by this extension include refunds and paymentfee.</description>
|
37 |
-
<notes>===== 4.
|
38 |
-

|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
Partial Refund is nu mogelijk met Afterpay
|
41 |
De refund gerelateerde notices en warnings zijn opgelost
|
42 |
Mogelijke melding Uncaught ReferenceError: jQuery is not defined in de checkout opgelost
|
@@ -143,9 +158,9 @@ Ondersteuning Giftwrap toeslag (Enterprise) in combinatie met AfterPay
|
|
143 |
==== Bug fixes ====
|
144 |
- Fixed a problem where the order ID would stay reserved after a payment had failed, causing errors.</notes>
|
145 |
<authors><author><name>TIG</name><user>supporttotal</user><email>servicedesk@tig.nl</email></author></authors>
|
146 |
-
<date>2017-
|
147 |
-
<time>
|
148 |
-
<contents><target name="magecommunity"><dir name="TIG"><dir name="Buckaroo3Extended"><dir name="Block"><dir name="Adminhtml"><dir name="Giftcard"><dir name="Edit"><file name="Form.php" hash="cec5b5d92f5f710693e4cb8495cfb6a8"/></dir><file name="Edit.php" hash="28d90558574b93a6cb360b7270991016"/><file name="Grid.php" hash="a3d1b809a0a5c88fb3ff9b74d6b3dd5c"/></dir><file name="Giftcard.php" hash="a3937f82be98c507a28b6fcad86313ee"/><dir name="Sales"><dir name="Order"><dir name="Create"><dir name="Totals"><file name="Fee.php" hash="84d71b5c883b67baa84c2df0bcd8142b"/></dir></dir><dir name="Creditmemo"><dir name="Create"><file name="Fee.php" hash="c294febe98243a2c1f0f74417e07d094"/></dir><dir name="Totals"><file name="Fee.php" hash="9e7ce33537256a4ee24928932a6de670"/></dir></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="02b3285322aaffc4601110d3af652958"/></dir></dir><dir name="Totals"><file name="Fee.php" hash="6864e33af4fa09ef3bdeb35686701623"/></dir></dir></dir><dir name="System"><dir name="Config"><file name="Hint.php" hash="4586b3c5e42706c2bb3099abcf768b20"/><file name="KlarnaCheck.php" hash="4af2d295960ab6b130d5a00679743973"/><file name="Paymentmethodbanner.php" hash="517693650534e8069de9839c0f5f90f4"/><file name="Responsehint.php" hash="863d4dc447ba4f0cf40d9c6299a21d16"/><file name="SellersProtectionCheck.php" hash="fc531673aa166098a19b5c8919c1b992"/><file name="Singlehint.php" hash="78f13dec86b716a2fb6e136c4efbd34f"/><file name="SupportTab.php" hash="72af8448a699279c08314cc409aa7e60"/></dir></dir></dir><dir name="Customer"><dir name="Widget"><file name="Dob.php" hash="c0b2de80572d3acf4228c6e04d5a8a50"/></dir></dir><dir name="PaymentFee"><dir name="Checkout"><dir name="Total"><file name="Fee.php" hash="859c52bdb843bd2a5dca69c1a96b9d85"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><dir name="Totals"><file name="Fee.php" hash="40556128c469edfc7514e8eb46668360"/></dir></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="99993c8778754a2aa551a0f263745225"/></dir></dir><dir name="Totals"><file name="Fee.php" hash="f731faca357e5eab220df5c7b0df6d3d"/></dir></dir></dir></dir><dir name="PaymentMethods"><dir name="Afterpay"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="6e3c0bd9eee2fe2be538d221ec96f8f8"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="56ebbf7666fec6fdbac2ce281df624b4"/></dir></dir><dir name="Afterpay2"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="89317daa2c708f7a29c515be5381ab80"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="1ae3de4c8e3c9d86a0da556181a1ca20"/></dir></dir><dir name="Amex"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="97996a4a4a6c6b18958147bfcef42de4"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="8dace9e0c5aef7aa47423d37beced0fa"/></dir></dir><dir name="Bancontactmrcash"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="4ecf67c7a2bd57135915105db9d48e39"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="1f7eb6ec2ba19917a46ef9ae877fa453"/></dir></dir><dir name="Cartebancaire"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5cf43693480003815e8e3b05ac192ab4"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="660156b59b61152aa60d2a5b5b96af89"/></dir></dir><dir name="Cartebleue"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="9f11bef74e08bdf03b3648d216c59de3"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="224854a2564636708415b06a9ac83b08"/></dir></dir><dir name="Checkout"><dir name="Form"><file name="Abstract.php" hash="ca58bdd7d2e9e99735527eef123d3fa4"/></dir></dir><dir name="Directdebit"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="8d0f3a1ffd3f2920cb38b7283c8f7a47"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="ed6db2005ec69b7a54e928a0d33e7f00"/></dir><file name="Info.php" hash="dcf3f19dcd8fdcf6db3113439ccfd5b6"/></dir><dir name="Empayment"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="460d4674e572573c5738ce87bf201202"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="ddb8cb90231659f17c5c7ba38ad969b7"/></dir></dir><dir name="Eps"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="a329209f134afe361ef7d9adf957745a"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="01058a7858b1007bc56d2acd08e3274e"/></dir></dir><dir name="Giftcards"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="97996a4a4a6c6b18958147bfcef42de4"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="27eb0ffa3bf234b1326d2618ab479f77"/></dir></dir><dir name="Giropay"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="a384d5ca6369442901387ac5555b061e"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="5956caafb68cb45543a93a02d8d16efa"/></dir></dir><dir name="Ideal"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="98506d7cf7339a1a3bd51aff75a2d41d"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="3faffbb86131ff8d6776af24c05f45f0"/></dir></dir><dir name="Maestro"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="7a9476690ad27d5516fb2d094b361626"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="fd5b8435c163c21d889417f2035f6434"/></dir></dir><dir name="Mastercard"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="e1a5f220e48ae8ac0a6f844b16207a51"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="4514ef760ad660a9525fa87e13f068f2"/></dir></dir><dir name="Masterpass"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="f474094f2b38459d29e5d9eaf945a422"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="00cd5f45d68b9253fda9d28ea44ca553"/></dir></dir><dir name="Onlinegiro"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5ae5ce5ebf3041535bf17f2711a4f445"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="52f89dd09f299949411ba572e20becc0"/></dir></dir><dir name="Paymentguarantee"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="250e5f514cd312e895aaa6926bff353a"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="6b885fd2a46d3fecde873e76941cb1c2"/></dir></dir><dir name="Paypal"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="20153fa7827484b096d609bf341c5515"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="41dbb35224e46842c01eeea1b2fa1c2f"/></dir></dir><dir name="Payperemail"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="cf526aa3604fc2e59f74840fb6de3acd"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="a4e6609168127b0200df2c9a200ae8c5"/></dir></dir><dir name="Paysafecard"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="ddbccd2574c89997aaed10b08131782b"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="aa28693fe1c5f3e874efc38b15733ee9"/></dir></dir><dir name="Sofortueberweisung"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="a9953aa93ace25c4615e11ca2f5e06c5"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="85fc73af91aab1b43704cac56539e1b3"/></dir></dir><dir name="Transfer"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5cb8050c05c683f8661cac7e66a3e9ca"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="1ddf724fa739e6ebb402de143f763106"/></dir></dir><dir name="Visa"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="1d9d4dc8aef79cefdd4682bebdc9b0fb"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="53d775fe383da75293031b8b93019f48"/></dir></dir><dir name="Visaelectron"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="f406d49fd695718e620397fe82f66196"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="3cbb7e02bba4eaa57099e8bd6de91511"/></dir></dir><dir name="Vpay"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="0de8e8b98f01fab7e770f5b419d2ff79"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="2cd464f9298f30249baa85d5e9f8233b"/></dir></dir></dir><dir name="Refund"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="NoOptionsAvailable.php" hash="f40e0935fc520a46d16c6d2d93c65a02"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="52dcedb162abe6fe2dd122f22fc08a38"/><file name="StateCodes.php" hash="b2c6d80d88c652415341c1babede7c57"/></dir><dir name="Model"><file name="Abstract.php" hash="4c40873ec4ee2c4ca8376e3bf0aff76b"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Buckaroo"><file name="Certificate.php" hash="81662b088ecdd765c6d3219fae334af1"/><file name="Fee.php" hash="3e98f9441b4ceee3ed10f29590243a6a"/></dir></dir></dir></dir></dir><dir name="Certificate"><file name="Certificate.php" hash="ff3ede1ae2fc24b0fb8657f6262ddcca"/></dir><file name="Certificate.php" hash="4f0c237526e019a188b0abd58820ab2a"/><file name="Giftcard.php" hash="8c3125cece761673aef50307e4f6b398"/><dir name="Masterpass"><file name="V06.php" hash="b1d34af77b257b0dd56962751dddc2f7"/></dir><dir name="Mysql4"><file name="Setup.php" hash="fede9dbd2f1b214a12aa98bd895018b9"/></dir><dir name="Observer"><file name="Abstract.php" hash="0da92e66f696841c6cd5a38c7d97bcd0"/><file name="BackendOrder.php" hash="4efdbd37d08621f508d0c4b1e81548ec"/><file name="CancelAuthorize.php" hash="95467a0bba4ef1866b776e6e9f5b04bb"/></dir><file name="Observer.php" hash="48b3c0744ecad5fbfc6bb87f3aecda85"/><dir name="OldPaymentMethods"><file name="OldPaymentMethod.php" hash="528157a9379be2299d4db7170d59cb4e"/></dir><dir name="PaymentFee"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><dir name="Fee"><file name="Abstract.php" hash="7a735d2cdd496f1ab39b5e7fa39385eb"/></dir><file name="Fee.php" hash="3e23ca47e8cf258c66634641b6cc7341"/><file name="FeeTax.php" hash="de53ceeec529fe83d61a440397e5ae8f"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Fee.php" hash="c3c18aedec2ec4f8626643db53c7ac67"/><file name="FeeTax.php" hash="55260378223e3bb0e6daace9388e2e03"/><file name="Subtotal.php" hash="2e44bed3b438dc0a44a4fc5c9bb8b426"/></dir></dir><dir name="Pdf"><dir name="Total"><file name="Fee.php" hash="2f837fd9e9c55a921fd505e0b6b34d1d"/><file name="Grandtotal.php" hash="f31d624fffaa5b35c81ced7a251c5c97"/><file name="Tax.php" hash="f0d2374a156c19a88b37f9d76ad56c55"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><dir name="Fee"><file name="Abstract.php" hash="4d4a5e078ed2fb568ac28ce736321d59"/></dir><file name="Fee.php" hash="0a7ec955f8bfe4b42c3482b53dfaa98c"/><file name="FeeTax.php" hash="970b285c1df9ad676b426946b3b21603"/></dir></dir></dir><file name="Service.php" hash="38d9ea54efba391312d6f3b28686d9e7"/><dir name="System"><dir name="Config"><dir name="Source"><file name="FeeTaxClass.php" hash="13fd7cb66310ce16d3f073ff39d108de"/></dir></dir></dir></dir><dir name="PaymentMethods"><dir name="Afterpay"><file name="Observer.php" hash="be27cfaeb5c896107fe91bb1c76abe3f"/><file name="PaymentMethod.php" hash="50d7193485a3707fd6161da5ed7b3060"/></dir><dir name="Afterpay2"><file name="Observer.php" hash="fc491fd84036c1b971e8b45b64a8703c"/><file name="PaymentMethod.php" hash="5b2dede30a1f0e5030f6d6d3a8a738f0"/></dir><dir name="Amex"><file name="Observer.php" hash="7d1822fd50bcb7cf0870e25e6f23dc22"/><file name="PaymentMethod.php" hash="76aad7b5b1b5eec3565596a46b0bad92"/></dir><dir name="Bancontactmrcash"><file name="Observer.php" hash="95fb14bf2c3f2ecfebac34d8a001c33b"/><file name="PaymentMethod.php" hash="03f087c748eb59b4c08f12524f88474b"/></dir><dir name="Cartebancaire"><file name="Observer.php" hash="db1c2c5db148ad30bc7761479b3a8846"/><file name="PaymentMethod.php" hash="8133e6b1b3f68e879200e233fbd88b68"/></dir><dir name="Cartebleue"><file name="Observer.php" hash="a9fa28a790f5f12e5a526c3cb6adbfbd"/><file name="PaymentMethod.php" hash="f6174e8aaa6b9425ef56096fe31a2279"/></dir><dir name="Directdebit"><file name="Observer.php" hash="d69fea8936a47b872022f8d983e9be4a"/><file name="PaymentMethod.php" hash="b59d4e9b1e42d6d676a15862ea4c3f61"/></dir><dir name="Empayment"><file name="Observer.php" hash="b50935e06c48f1288250df3a89c1937a"/><file name="PaymentMethod.php" hash="d870c837eff76d921251c1ae77f7da91"/></dir><dir name="Eps"><file name="Observer.php" hash="beab5315b271c662b88de70f4c37e437"/><file name="PaymentMethod.php" hash="9fdaac7fe5d631e7433d96e44b0a352c"/></dir><dir name="Giftcards"><file name="Observer.php" hash="3fff3090241dee02cc181562ccc0be98"/><file name="PaymentMethod.php" hash="c13e50817ea4b175459aa00ef55ceb99"/></dir><dir name="Giropay"><file name="Observer.php" hash="150c3f7e14fa48582e79c4de971d77fc"/><file name="PaymentMethod.php" hash="597f7589be437f9cc5543a492c944fb1"/></dir><dir name="Ideal"><file name="Observer.php" hash="6e3fe42e721da075efa8911a83626596"/><file name="PaymentMethod.php" hash="887eb231ed601e191a8d96c8e1c6f1ea"/></dir><dir name="Maestro"><file name="Observer.php" hash="b5679881bfd06e5c98e6acac05343382"/><file name="PaymentMethod.php" hash="726ab3653211cde3a67d8814ad7fceb2"/></dir><dir name="Mastercard"><file name="Observer.php" hash="69fd392ab40081481ad39e1b617b85d9"/><file name="PaymentMethod.php" hash="3d84627f57dbe5492e85caf35e4d9834"/></dir><dir name="Masterpass"><file name="Observer.php" hash="ba554ffffe8ec4480736d18f0020b4be"/><file name="PaymentMethod.php" hash="352549517053d396ef2e13743970932c"/></dir><dir name="MasterpassLightbox"><file name="Observer.php" hash="cc05e04c811371b248c9276548254ac6"/><file name="PaymentMethod.php" hash="0bbdfcaf60690820bf5833d020786a1a"/></dir><dir name="Onlinegiro"><file name="Observer.php" hash="d8a90c5c36a45dc5845f3f38d86015e7"/><file name="PaymentMethod.php" hash="8e90b5a32e15865f89219c6304ac7eda"/></dir><file name="PaymentMethod.php" hash="f6fe4765524e29482cf5cab93b2110bf"/><dir name="Paymentguarantee"><file name="Observer.php" hash="82783861718c2ac222106247ef7bc610"/><file name="PaymentMethod.php" hash="c37dceb8dbf9c1a7d83bc1cd6431f1a0"/></dir><dir name="Paypal"><file name="Observer.php" hash="42a860b3cd28d3dae91bf0cdcf6cbf29"/><file name="PaymentMethod.php" hash="8034f02e364ee7ac274a1e787008966f"/></dir><dir name="Payperemail"><file name="Observer.php" hash="76591424a703b18948dd60be7c6e5b12"/><file name="PaymentMethod.php" hash="2fd55a378ddede3897da5dccf642e486"/></dir><dir name="Paysafecard"><file name="Observer.php" hash="5954a4b4bf9dd4febd8d84988e7282b9"/><file name="PaymentMethod.php" hash="771fe27ce89c1451bb03d1fb2b3c569e"/></dir><dir name="Sofortueberweisung"><file name="Observer.php" hash="96a4db03f99ed03bfc91ab3b315cc1da"/><file name="PaymentMethod.php" hash="fae36ddacd55c479d7f409ca92295eb5"/></dir><dir name="Transfer"><file name="Observer.php" hash="eea70837020fcc703d2eb383f7926765"/><file name="PaymentMethod.php" hash="d1f2ca5a359e6457e9b861a30b547c48"/></dir><dir name="Visa"><file name="Observer.php" hash="27ea4f86eafdecc760e74211f40b4b4b"/><file name="PaymentMethod.php" hash="cc082b4d6adfc96bf9a3c8b10500aea0"/></dir><dir name="Visaelectron"><file name="Observer.php" hash="ca9f4a9b94b2c3bd00733df160c4493e"/><file name="PaymentMethod.php" hash="1c6c4206cd80c4fcd0c02fd510d322f4"/></dir><dir name="Vpay"><file name="Observer.php" hash="61d59a900b732bb15f82dacb9a59407f"/><file name="PaymentMethod.php" hash="318085aa11380ca26d8486d3e40ab49c"/></dir></dir><file name="Process.php" hash="c457000e41690596888188b96f704040"/><dir name="Refund"><file name="Creditmemo.php" hash="07b3af614309ae8657d0d32415ef18ab"/><file name="Observer.php" hash="5b9ad329867e037eb75c4e287cb96530"/><dir name="Request"><file name="Abstract.php" hash="5a251e085934061d776d910ee4c18ecd"/></dir><dir name="Response"><file name="Abstract.php" hash="c3c365b8c0a4c3a40d029ff75fb6b78d"/><file name="Push.php" hash="2a68805f66dcb9d710184b5d4831a168"/></dir><dir name="Sources"><file name="StatusesClosedFailed.php" hash="4972f40ca79890943b064dde78ce4dcd"/><file name="StatusesClosedSuccess.php" hash="ee554ae7199ce719ff3752821a3bdd08"/><file name="StatusesCompleteFailed.php" hash="2cdf858b2802f4c7219d47b3ad74f723"/><file name="StatusesCompleteSuccess.php" hash="82e0c3cc3e5464d52382f5d0c283b3fe"/><file name="StatusesProcessingFailed.php" hash="1e312bcc824623a3346bed6f64f1e170"/><file name="StatusesProcessingSuccess.php" hash="4f5fe2bbb1423bf24b595bb76d489cec"/></dir></dir><dir name="Request"><file name="Abstract.php" hash="60c0dedb91ff754268cec523355a3b48"/><file name="Availability.php" hash="40e8eea102893209b430196372c1b5a6"/><file name="CancelAuthorize.php" hash="31bd2563fb5fdd4870f23110a237521e"/><file name="Capture.php" hash="6afa5b8fde10a42d3d6d5c162115c987"/><file name="Quote.php" hash="be0df87844e191275fcfd03047d6289c"/><file name="QuoteFinal.php" hash="f827a4953d6adc0d8681970351ffda84"/></dir><dir name="Resource"><dir name="Certificate"><file name="Collection.php" hash="793d24a8b45acfd95a86cb56f10c4af9"/></dir><file name="Certificate.php" hash="2944bbd321d00f4530a2ae9f420db461"/><dir name="Giftcard"><file name="Collection.php" hash="3f001857a1b75f42bcbb9af0e9ba8bae"/></dir><file name="Giftcard.php" hash="ce7fe75cca48d71fa78441fb42eb17ff"/><file name="Setup.php" hash="0a1ef7d53f0a597cddbe1ea136cb1b80"/></dir><dir name="Response"><file name="Abstract.php" hash="fbf54096f555bc4a8399567115ecd346"/><file name="BackendOrder.php" hash="5f3df5dfe178efb3999bbe706982f7ff"/><file name="CancelAuthorize.php" hash="9c4a680404f3d56b6ca0175a12ed3f5a"/><file name="Capture.php" hash="9d15f826b32fbdec6ea0afd2c8a0ef26"/><file name="MasterPass.php" hash="dab1fab67ec634d50252e7bcc66b02e5"/><file name="Push.php" hash="adcbad1e5597d4508e68965a84ee1e82"/><file name="Quote.php" hash="6b269a5ddc937fd6e91df49449693bf6"/><file name="Return.php" hash="27539258c2c3040b1d24361a6863bc06"/></dir><file name="Soap.php" hash="5f7eebe6b6393182abcada0af5491113"/><dir name="Sources"><file name="AcceptgiroDirectdebit.php" hash="635aea382493c1fe9497c02ad50dd5c5"/><dir name="Afterpay"><file name="AvailableCurrencies.php" hash="beb11c20245dc8a624df36fa8d2dc543"/></dir><dir name="Afterpay2"><file name="AvailableCurrencies.php" hash="d98e8ed7f4f65f44ee4d7380b02bbca3"/></dir><file name="Allspecificcountries.php" hash="718960abf74dead25882b4c9aed6748b"/><dir name="Amex"><file name="AvailableCurrencies.php" hash="6240bfa85eba943133c0b2ec5d84e703"/></dir><file name="Availablemethods.php" hash="3990954382e47269fc22fcc2ba9d1db5"/><dir name="Bancontactmrcash"><file name="AvailableCurrencies.php" hash="5d1359f1533582c92d59a50f0d3c3b69"/></dir><file name="BusinessToBusiness.php" hash="7433dd041e659bef9d589500a21edc7e"/><dir name="Cartebancaire"><file name="AvailableCurrencies.php" hash="f7e9ab1829a192ecb553422a95c0ba60"/></dir><dir name="Cartebleue"><file name="AvailableCurrencies.php" hash="05dfd6c7bd932c6db5f38f940c217176"/></dir><file name="Certificates.php" hash="17424773cdbdaef39c5961573bd12e47"/><file name="CultureType.php" hash="b77bac794ad88424f0d8bee4b58e57e8"/><dir name="Directdebit"><file name="AvailableCurrencies.php" hash="942251d7321bc013af0067ae61303a20"/></dir><dir name="Empayment"><file name="AvailableCurrencies.php" hash="e1742054645fab1892d1854bf739b548"/></dir><dir name="Eps"><file name="AvailableCurrencies.php" hash="e13ab7ac7dd535bde24b2441ff6a99a4"/></dir><file name="FeePercentageMode.php" hash="c5f13efdcadfb0ecd58a777bd44405c0"/><dir name="Giftcards"><file name="AvailableCards.php" hash="e7ff41b43fd9735391172a6761ce5beb"/><file name="AvailableCurrencies.php" hash="7430c988592a09f106bd0fbc95c87442"/></dir><dir name="Giropay"><file name="AvailableCurrencies.php" hash="ed685c06165b2eb906665a1992d90a4d"/></dir><dir name="Ideal"><file name="AvailableCurrencies.php" hash="f70ac8b2bf244b48865b3607403e5928"/><file name="ServiceVersion.php" hash="d15b8457484c53045d88f1866cd81b95"/></dir><dir name="Maestro"><file name="AvailableCurrencies.php" hash="e18b47ee64702f9d5d45bdf3a3098f55"/></dir><dir name="Mastercard"><file name="AvailableCurrencies.php" hash="c956e85f9da2a52f00978b02a4184391"/></dir><dir name="Masterpass"><file name="AvailableCurrencies.php" hash="e336bae86456987ce7b26121e157282c"/></dir><dir name="Onlinegiro"><file name="AvailableCurrencies.php" hash="6a4009bd81e02367e13c6493c113cec4"/></dir><file name="PaymentFlow.php" hash="8d45a39e39a4f678f7aea4d61aaceb02"/><file name="PaymentMethodArea.php" hash="2fe7d3978305a9fc533129623bc37ef5"/><dir name="Paymentguarantee"><file name="AvailableCurrencies.php" hash="eaab1072f162a21734ee681a8b01aeb3"/></dir><dir name="Paypal"><file name="AvailableCurrencies.php" hash="551f2f942e34da9a93ee4021e93b65a0"/></dir><dir name="Payperemail"><file name="AvailableCurrencies.php" hash="60bf5c055fb3cefb7b986716f1058f61"/></dir><dir name="Paysafecard"><file name="AvailableCurrencies.php" hash="0fa60d24e1a0a8871d856eab408dc1ea"/></dir><file name="ReminderLevel.php" hash="e37cb0ef83fa54d1f034ebec165fd7f6"/><dir name="Sofortueberweisung"><file name="AvailableCurrencies.php" hash="24ddd8be6ec6bee4471b234dcdebde2a"/></dir><file name="States.php" hash="77145e1431f0377b2c7c6812577aae9f"/><file name="StatusesFailed.php" hash="ca0406c3a0d1964b0e99aac3401d4484"/><file name="StatusesPending.php" hash="af8a6a3b57acea25e924090a37efc765"/><file name="StatusesPendingPayment.php" hash="c708bdeab09d6ed426310fb22c8571aa"/><file name="StatusesSuccess.php" hash="932910d9c8f0ae7debfbdaf72d0fd511"/><file name="TaxClasses.php" hash="b3eac25c3c44b3927f3fd5c42f6a84ab"/><file name="TestLive.php" hash="565c66468270e1dfdd2d71b9c80e7e87"/><dir name="Transfer"><file name="AvailableCurrencies.php" hash="a6f184fe5f8084bcfdb738c810149696"/></dir><dir name="Visa"><file name="AvailableCurrencies.php" hash="6b8c04c59ee273f5dbe75c5994153738"/></dir><dir name="Visaelectron"><file name="AvailableCurrencies.php" hash="4d95dc3ec06176f92ea185d8887807f9"/></dir><dir name="Vpay"><file name="AvailableCurrencies.php" hash="a18fe908ab589fd37e178e64683457d6"/></dir><file name="Yesno.php" hash="b7fd7889636bccfbc1e6db14e804c221"/></dir></dir><dir name="Test"><dir name="Framework"><dir name="TIG"><dir name="Test"><file name="Config.php" hash="588f21c9becc52884448a93c113032fd"/><dir name="Http"><file name="Response.php" hash="f5c2da432cc610f2a1e1f90bd5acb8fe"/></dir><file name="TestCase.php" hash="df5cb2bb21d364937fb667102457337d"/></dir></dir></dir><dir name="Scripts"><file name="InstallDependencies.sh" hash="eb8a6342f971170c6879c9912f33c238"/><file name="Setup.sh" hash="5d515327c23f3d5cb67ad78a04bc563c"/></dir><dir name="Unit"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Invoice"><dir name="Totals"><file name="FeeTest.php" hash="5c0085f57b31b56fc64d6906f6ea0180"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><file name="SupportTabTest.php" hash="615f5149e9bceb8e5f98e356c5ca724c"/></dir></dir></dir></dir><dir name="Helper"><file name="DataTest.php" hash="be70da9228b7e3daaacb4f90f8e0866f"/></dir><dir name="Model"><dir name="Observer"><file name="CancelAuthorizeTest.php" hash="b5049222354fa9f3ee98da61bd905251"/></dir><dir name="PaymentFee"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="FeeTest.php" hash="c7824989757f93903596de033c1ccdb8"/></dir></dir></dir></dir><dir name="PaymentMethods"><dir name="Afterpay"><file name="ObserverTest.php" hash="ba3e7b85a62544f0f8e9d9f0fdb95ea4"/><file name="PaymentMethodTest.php" hash="a70137933fdc546a50825fc77eb7dc4f"/></dir><dir name="Afterpay2"><file name="ObserverTest.php" hash="664840ad142890a3b4c6c63c9023f12c"/><file name="PaymentMethodTest.php" hash="97e16221059b0e9492122a784a086356"/></dir><file name="PaymentMethodTest.php" hash="c1977e3376fda06425aad7ae1ade044b"/></dir><dir name="Refund"><file name="CreditmemoTest.php" hash="e2ebcd257c9816316cb919c0d0a63008"/></dir><dir name="Request"><file name="CancelAuthorizeTest.php" hash="ec7b5b3ff11409d17e432c928a6fe7c3"/><file name="CaptureTest.php" hash="ed0d99da7f7742be235132b4941341db"/></dir><dir name="Response"><file name="CancelAuthorizeTest.php" hash="1dbdd699e110afa0945c52c06d785086"/><file name="CaptureTest.php" hash="fbf22b33ff383c6a05677af77a5fef8f"/></dir><dir name="Sources"><file name="PaymentFlowTest.php" hash="314bcaf4fd850976bac9b61172f31c8f"/></dir></dir></dir><file name="bootstrap.php" hash="b8c283971a766a2be8ded61df13dab2d"/><file name="phpunit.xml" hash="c2854e9145988f68b29840e5325083ac"/></dir><dir name="certificate"><file name="Checkout.pem" hash="441f60bb62fdc14434954514b01d0aa3"/></dir><dir name="controllers"><dir name="BuckarooAdminhtml"><file name="GiftcardController.php" hash="5765e2d0040b99d44e22c9fd1827fada"/></dir><file name="CheckoutController.php" hash="1cbd06d3bd0175312a7ce17117f8d892"/><file name="NotifyController.php" hash="32fd050c9c956c3ec5e8402f24028ae0"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cdf9286c052532056b1cc8ced7b6bf8e"/><file name="config.xml" hash="1f1b7a1e339f988b33f7499067c910b6"/><file name="masterpass.xml" hash="025bbcb407a45ac231fff82c58b647ee"/><file name="system.xml" hash="fc72df1855b3c03f3398ad1ed0c53586"/></dir><dir name="lib"><file name="Buckaroo.wsdl" hash="4fc7278e90be66fc8101c699f73b6204"/><file name="Import_1.xsd" hash="32c5184fc8f2010a202b2021e1b7fc00"/><file name="Import_10.xsd" hash="a64b4c201518b512fc6bc1ab78f0102f"/><file name="Import_11.xsd" hash="161e2970900419dc387af04e37f3a8ee"/><file name="Import_12.xsd" hash="146273756bb0a9bfd6ea8f5fba22ee9c"/><file name="Import_13.xsd" hash="1727b36ee762f6b1617c49d3e7597f75"/><file name="Import_14.xsd" hash="815f6849ad9b89b0295ffb48082ff619"/><file name="Import_15.xsd" hash="dc6a0cf5ca0cd6a52c2c0e18b7182f5a"/><file name="Import_16.xsd" hash="6511f38274501935bc847881e9fa27ed"/><file name="Import_17.xsd" hash="3ca8df56825b5a88509138faf79de2f8"/><file name="Import_18.xsd" hash="9be4df50a6bdca4bd196f26d2ae4e429"/><file name="Import_19.xsd" hash="9c4cd9b53bdf09b597e420cb58c32a5c"/><file name="Import_2.xsd" hash="bbeaa3381c5b550d2dfad8c049ba68e8"/><file name="Import_20.xsd" hash="cc7fa2b280b8f2d38da43e9fc7b94f86"/><file name="Import_21.xsd" hash="9ca3b39018c8583aa18ca98340288813"/><file name="Import_22.xsd" hash="dedd6c550d812705832feaaef60c721f"/><file name="Import_23.xsd" hash="c7b8bfae66463e58ce68c7f77eec04a4"/><file name="Import_24.xsd" hash="97ff34ab5da093f868dfd6623d934032"/><file name="Import_25.xsd" hash="52024ab7933277cb56aacc558609e67a"/><file name="Import_3.xsd" hash="dead2627684b2cf45f72f5dd9235738d"/><file name="Import_4.xsd" hash="ad27bf7d8bedc5e44f6a9ef862a05cb5"/><file name="Import_5.xsd" hash="a9c07bdedf700b572b89172e71dac0cd"/><file name="Import_6.xsd" hash="a6b2e2ac238b942b075f8cf186a644ed"/><file name="Import_7.xsd" hash="47193b5224627392508a074dd94c912d"/><file name="Import_8.xsd" hash="d167423bf89d1029a58e78ce4a000c0b"/><file name="Import_9.xsd" hash="52518de0039a5167b6d0bf803916c6e2"/></dir><dir name="sql"><dir name="buckaroo3extended_setup"><file name="mysql4-data-upgrade-4.12.0-4.13.0.php" hash="3d3223602759340631c3be1e41d18ed6"/><file name="mysql4-data-upgrade-4.4.2.0-4.5.0.0.php" hash="3f34113aa093ec80a41c67926bdda27b"/><file name="mysql4-data-upgrade-4.6.1-4.7.0.php" hash="e2ffae63c1533bbe6d12e0e0532866dd"/><file name="mysql4-install-0.1.0.php" hash="60db243184184dd2b8b61adbc92e3032"/><file name="mysql4-upgrade-0.1.0-2.0.2.php" hash="34983df0c6286b761c2e4be9c6cc7952"/><file name="mysql4-upgrade-2.0.2-4.0.0.php" hash="34983df0c6286b761c2e4be9c6cc7952"/><file name="mysql4-upgrade-4.0.3-4.1.0.php" hash="d30fcb21bcd10039a9a77e890cdb519d"/><file name="mysql4-upgrade-4.3.1-4.3.2.php" hash="7affe54620a30f9feb8652c3e3b20696"/><file name="mysql4-upgrade-4.3.3.0-4.4.0.0.php" hash="3f27e188751bcd62c624192a8658c2e8"/><file name="mysql4-upgrade-4.4.0.0-4.4.1.0.php" hash="9353901c8546ed0bd126ee14be081ec6"/><file name="mysql4-upgrade-4.6.1-4.7.0.php" hash="9cfe09a4b22a88390182dd1851d110be"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TIG_Buckaroo3Extended.xml" hash="6a23faf30df008518782b2d2a828c8a4"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="TIG"><file name="buckaroo3extended.xml" hash="888f1e7bfcd3bf57a2c56b7b711b6066"/></dir></dir><dir name="template"><dir name="buckaroo3extended"><dir name="directdebit"><file name="info.phtml" hash="d1ba310ae081037271ee78d696db690f"/></dir><dir name="onlinegiro"><dir name="checkout"><file name="form.phtml" hash="997a24214a955aea9b2b19e18c8cb658"/></dir></dir><dir name="payperemail"><dir name="checkout"><file name="form.phtml" hash="7c547d1c9faa7aa02347ff738c9cc1d1"/></dir></dir><dir name="refund"><dir name="system"><dir name="config"><file name="noOptionsAvailable.phtml" hash="38c734121ab4b8554347c1569e0aae01"/></dir></dir></dir><dir name="sales"><dir name="order"><dir name="create"><file name="js.phtml" hash="3edec4e9d05ac156c3cc3314ceada764"/><dir name="totals"><file name="fee.phtml" hash="9864e20a538296885ae34f772708a90f"/></dir></dir><dir name="creditmemo"><dir name="create"><dir name="totals"><file name="fee.phtml" hash="6292242b0ff50c1187b2829da815e601"/></dir></dir></dir><dir name="totals"><file name="tax.phtml" hash="7db3608df63c4ffaf5e65811599d8cd7"/></dir></dir></dir><dir name="system"><dir name="config"><file name="hint.phtml" hash="9d1628612dfe61352b7ae8240e03b8e8"/><file name="klarnaCheck.phtml" hash="69395e036253f21fbb9f3cc6a494930b"/><file name="paymentmethodbanner.phtml" hash="d4d30e0fabe6484e4c2181fa1074ce12"/><file name="paypalRegionCheck.phtml" hash="170712863a97ce788da8a2c059077b4f"/><file name="responsehint.phtml" hash="83838dea3098a5cad8897cafcf3ed13b"/><file name="singlehint.phtml" hash="f4d4e28c7899e15b6692dcceb975ad77"/><file name="supportTab.phtml" hash="348957b4e0c087b5404341cd16f87fd8"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="TIG"><file name="buckaroo3extended.xml" hash="5815d16f39fba71e12fa0157b7b2ca2a"/></dir></dir><dir name="template"><dir name="buckaroo3extended"><dir name="afterpay"><dir name="checkout"><file name="form.phtml" hash="37975b73101806baf840d1d16771ee73"/></dir></dir><dir name="afterpay2"><dir name="checkout"><file name="form.phtml" hash="37975b73101806baf840d1d16771ee73"/></dir></dir><dir name="amex"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="bancontactmrcash"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="cartebancaire"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="cartebleue"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="checkout"><dir name="total"><file name="buckaroo_fee.phtml" hash="da32523018be24ce13d9a90cc4b763cb"/></dir></dir><dir name="customer"><dir name="widget"><file name="dob.phtml" hash="fe142f7345e1908b8354d20f69023269"/></dir></dir><dir name="directdebit"><dir name="checkout"><file name="form.phtml" hash="dd6426c314a69355760b84a6e5c8ce87"/></dir><file name="info.phtml" hash="f494d2b2d8f27df3a40548b8a5e38a99"/></dir><dir name="empayment"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="eps"><dir name="checkout"><file name="form.phtml" hash="77e7d2894364dbf959c50480b8242ac9"/></dir></dir><dir name="giftcards"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="giropay"><dir name="checkout"><file name="form.phtml" hash="1d5f7d7fb64e7adcbcd980daff0dbf5d"/></dir></dir><dir name="ideal"><dir name="checkout"><file name="form.phtml" hash="5994e8bf263928737f392db6cb75a359"/></dir></dir><file name="jquery.phtml" hash="6b1b0555738c327617c19405f10eeb75"/><dir name="maestro"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="mastercard"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><file name="oneStepCheckout.phtml" hash="bc07be11bfe81f21a38eb332362932e6"/><dir name="onlinegiro"><dir name="checkout"><file name="form.phtml" hash="baa443e095599199b4b435908ce5c9be"/></dir></dir><dir name="paymentFee"><dir name="checkout"><file name="fee.phtml" hash="a980dc262ab66e63ffe2ca7cd5a846bf"/></dir></dir><dir name="paymentguarantee"><dir name="checkout"><file name="form.phtml" hash="9d5d7312832c1214bc0edcd2b8cf0199"/></dir><file name="termsAndConditions.phtml" hash="6f1fd609fc1baf3a541707f6fbe129f7"/></dir><dir name="paypal"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="payperemail"><dir name="checkout"><file name="form.phtml" hash="6407ca9e8d67e2da85f4d7ccf070ea90"/></dir></dir><dir name="paysafecard"><dir name="checkout"><file name="form.phtml" hash="77e7d2894364dbf959c50480b8242ac9"/></dir></dir><file name="saveData.phtml" hash="523e37b63f6a90ac00307551d7bcf3e4"/><dir name="sofortueberweisung"><dir name="checkout"><file name="form.phtml" hash="77e7d2894364dbf959c50480b8242ac9"/></dir></dir><dir name="transfer"><dir name="checkout"><file name="form.phtml" hash="1f7c8034db909e2ca067871f972fb2ba"/></dir></dir><dir name="visa"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="visaelectron"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="vpay"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="buckaroo3extended"><dir name="afterpay"><dir name="checkout"><file name="form.phtml" hash="f095f0393adad6723925df4f6b7a3464"/></dir></dir><dir name="afterpay2"><dir name="checkout"><file name="form.phtml" hash="53f8c2de36bbb143319c2251443b2f0f"/></dir></dir><dir name="amex"><dir name="checkout"><file name="form.phtml" hash="489ab613e6035a0df55d64570c296873"/></dir></dir><dir name="bancontactmrcash"><dir name="checkout"><file name="form.phtml" hash="fc71bc66b3ce270b5f7d3f27edd64cad"/></dir></dir><dir name="cartebancaire"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="cartebleue"><dir name="checkout"><file name="form.phtml" hash="733b3a75405d26a5ee080d73b534d52f"/></dir></dir><dir name="directdebit"><dir name="checkout"><file name="form.phtml" hash="9a593b3b851fba8b20c235b754cb4922"/></dir><file name="info.phtml" hash="f494d2b2d8f27df3a40548b8a5e38a99"/></dir><dir name="empayment"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="eps"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="giftcards"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="giropay"><dir name="checkout"><file name="form.phtml" hash="eb814a8ed955ef8cc9b5ee48284f3fae"/></dir></dir><dir name="ideal"><dir name="checkout"><file name="form.phtml" hash="0af09a938c81a157f11798c410fd3920"/></dir></dir><dir name="maestro"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="mastercard"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="onlinegiro"><dir name="checkout"><file name="form.phtml" hash="3de12383589d167d18922053902103c8"/></dir></dir><dir name="paymentguarantee"><dir name="checkout"><file name="form.phtml" hash="7e540e4870127d8856eb11195aae9ddc"/></dir><file name="termsAndConditions.phtml" hash="6f1fd609fc1baf3a541707f6fbe129f7"/></dir><dir name="paypal"><dir name="checkout"><file name="form.phtml" hash="6fa92b1eb2fb616a99fd1f9d2bc4e141"/></dir></dir><dir name="payperemail"><dir name="checkout"><file name="form.phtml" hash="77f0a46a225cd376f9961c30bc6f87e4"/></dir></dir><dir name="paysafecard"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="sofortueberweisung"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="transfer"><dir name="checkout"><file name="form.phtml" hash="0212c8314291eb9fd9f89a7edaca37bf"/></dir></dir><dir name="visa"><dir name="checkout"><file name="form.phtml" hash="733b3a75405d26a5ee080d73b534d52f"/></dir></dir><dir name="visaelectron"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="vpay"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="tig_buckaroo3extended"><file name="supportTab.css" hash="697af7a62a046a2ed7fe0c0df309470a"/><file name="system_config_edit.css" hash="6b382c7f59572e02d78432d10d9938b6"/></dir></dir><dir name="images"><dir name="tig_buckaroo3extended"><file name="buckaroo_large.png" hash="8ab58aeeaabed3d11f62a8c56f3a9be6"/><file name="buckaroo_logo_medium.gif" hash="a7e5eb51b749720f6fc31d3a4234072e"/><file name="buckaroo_small.png" hash="96ed717a3c3617dd415ccefaef7f81d4"/><file name="glyph_error.gif" hash="a138b803d772f552aa2e49e1c506edbd"/><file name="glyph_info.gif" hash="40f72d28be63ecf2b6ef44c7ea730104"/><file name="glyph_manual.png" hash="771db63b6ffc9de1c06da564796adc6e"/><file name="glyph_pdf.png" hash="a5ea929f4014a88d7320d0293913ace3"/><file name="glyph_success.gif" hash="465a056a3ba3d94367f51c3c0b751391"/><file name="glyph_warning.gif" hash="fa817cb6d49efb9855942ef2b739fc6c"/><file name="legend.gif" hash="d8fb0642901868d489d31b426f3e3406"/><file name="tig_logo_medium.png" hash="780a6b187a34886a3748abbc2eee42a1"/></dir></dir><dir name="js"><dir name="tig_buckaroo3extended"><file name="jquery-1.4.4.min.js" hash="73a9c334c5ca71d70d092b42064f6476"/></dir><dir name="TIG"><dir name="Buckaroo3Extended"><file name="klarnaCheck.js" hash="4aa9345dc7937b177a0de82e09692c27"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="TIG"><dir name="Buckaroo3Extended"><file name="styles_opc.css" hash="f89a6cbf2832d79041a6689c4b829ff8"/><file name="styles_osc.css" hash="b53917c3b2dd8a733a2824df63519527"/></dir></dir></dir><dir name="images"><dir name="tig_buckaroo3extended"><file name="ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="icon_asn.gif" hash="0fbd9493e65ab774cc6859da47c3c8cc"/><file name="logo_abn_s.gif" hash="eb6d7cd949e6fbf671c43cb83c7c3e17"/><file name="logo_bunq_s.gif" hash="22202450a7f8f4ca1c3a1c19254e90c7"/><file name="logo_fortis_s.gif" hash="7f1ad68de127101a83e02c2e5af01fa7"/><file name="logo_friesland_s.gif" hash="d9955dc120b7d4216d9bd19b6d8621c0"/><file name="logo_ing_s.gif" hash="e56fa35285496c73565bfdf82d6967fa"/><file name="logo_knab_s.gif" hash="146e995dbede4e2798c278d6da26b9d2"/><file name="logo_lanschot_s.gif" hash="f68ceb355661c41779d716a6ef8dfdf3"/><file name="logo_rabo_s.gif" hash="8df417edaf2410ff574d9d1ed453c0bc"/><file name="logo_sns_s.gif" hash="78462566d91b21feca3930ccf203e1f4"/><file name="logo_triodos.gif" hash="f3dd4d744232ddf4c1700068a6b3a531"/></dir></dir><dir name="js"><dir name="TIG"><dir name="Buckaroo3Extended"><file name="afterpayObserver.js" hash="60a91402a6eb574b9e12c6a0399fcf40"/><file name="jquery-1.12.3.min.js" hash="c07f2267a050732b752cc3e7a06850ac"/><file name="oneStepCheckout.js" hash="77d8f8c922176fb681ae4295b7e657d1"/><file name="paymentGuaranteeObserver.js" hash="2f679ce4b928874b4ad34fe7b6951912"/><file name="saveData.js" hash="06aa4d9d8b1133ed452f045e850c9fac"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="css"><dir name="TIG"><dir name="Buckaroo3Extended"><file name="styles_opc.css" hash="f89a6cbf2832d79041a6689c4b829ff8"/><file name="styles_osc.css" hash="c7609d8546a9dcaf545abcd8c5e11657"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="nl_NL"><file name="TIG_Buckaroo3Extended.csv" hash="4020f8621ad95d876dcccdd08a3ba23a"/></dir><dir name="en_US"><file name="TIG_Buckaroo3Extended.csv" hash="be4f5d1d56243642e668db3d41fce50a"/></dir></target></contents>
|
149 |
<compatible/>
|
150 |
-
<dependencies><required><php><min>5.2.0</min><max>
|
151 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>tig_buckaroo3extended</name>
|
4 |
+
<version>4.17.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US">Creative Commons License</license>
|
7 |
<channel>community</channel>
|
12 |
By using this extension you will be able to offer your customers all the payment methods that Buckaroo has to offer using the BPE 3.0 gateway.
|
13 |

|
14 |
Payment methods available include:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
- iDEAL
|
16 |
+
- Achteraf betalen
|
17 |
+
- Afterpay
|
18 |
+
- American Express
|
19 |
+
- MasterCard
|
20 |
+
- Carte Bancaire
|
21 |
+
- Carte Bleue
|
22 |
+
- eMaestro
|
|
|
|
|
23 |
- Visa
|
24 |
- Visa Electron
|
25 |
+
- V PAY
|
26 |
+
- PayPal
|
27 |
+
- Overboeking
|
28 |
+
- SEPA machtiging
|
29 |
+
- paysafecard
|
30 |
+
- Bancontact / Mister Cash
|
31 |
+
- sofortbanking
|
32 |
+
- giropay
|
33 |
+
- Gift cards
|
34 |
+
- PayperEmail
|
35 |
+
- online giro
|
36 |
+
- EPS
|
37 |
+
- MasterPass
|
38 |
+
- Klarna
|
39 |
+
- POSPpayment
|
40 |

|
41 |
Other services offered by this extension include refunds and paymentfee.</description>
|
42 |
+
<notes>===== 4.17.0 =====
|
43 |
+
Klarna betaalmethode is toegevoegd
|
44 |
+
POSPayment betaalmethode is toegevoegd
|
45 |
+
Partial refund toegevoegd met buckaroo fee
|
46 |
+
B2B velden worden niet meer getoond voor BE bestellingen
|
47 |
+
KVK en BTW velden voor B2B zijn verwijderd
|
48 |
+
Voor Klarna en Afterpay worden nu de Nederlandse foutmelding van Buckaroo getoond in plaats van de extensie foutmelding
|
49 |
+
Op tablets waar POSPayment gebruikt wordt zal nu alleen POSPayment getoond worden, en niet de andere Buckaroo Betaalmethodes. Let op, dit heeft enkel invloed op de Buckaroo betaalmethodes!
|
50 |
+
De debug mail functionaliteit genereert geen foutmelding meer
|
51 |
+

|
52 |
+
===== 4.16.4 =====
|
53 |
+

|
54 |
+
Authorize &amp; (partial) capture is nu mogelijk met Afterpay
|
55 |
Partial Refund is nu mogelijk met Afterpay
|
56 |
De refund gerelateerde notices en warnings zijn opgelost
|
57 |
Mogelijke melding Uncaught ReferenceError: jQuery is not defined in de checkout opgelost
|
158 |
==== Bug fixes ====
|
159 |
- Fixed a problem where the order ID would stay reserved after a payment had failed, causing errors.</notes>
|
160 |
<authors><author><name>TIG</name><user>supporttotal</user><email>servicedesk@tig.nl</email></author></authors>
|
161 |
+
<date>2017-04-20</date>
|
162 |
+
<time>14:53:30</time>
|
163 |
+
<contents><target name="magecommunity"><dir name="TIG"><dir name="Buckaroo3Extended"><dir name="Block"><dir name="Adminhtml"><dir name="Giftcard"><dir name="Edit"><file name="Form.php" hash="cec5b5d92f5f710693e4cb8495cfb6a8"/></dir><file name="Edit.php" hash="28d90558574b93a6cb360b7270991016"/><file name="Grid.php" hash="a3d1b809a0a5c88fb3ff9b74d6b3dd5c"/></dir><file name="Giftcard.php" hash="a3937f82be98c507a28b6fcad86313ee"/><dir name="Sales"><dir name="Order"><dir name="Create"><dir name="Totals"><file name="Fee.php" hash="84d71b5c883b67baa84c2df0bcd8142b"/></dir></dir><dir name="Creditmemo"><dir name="Create"><file name="Fee.php" hash="c294febe98243a2c1f0f74417e07d094"/></dir><dir name="Totals"><file name="Fee.php" hash="9e7ce33537256a4ee24928932a6de670"/></dir></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="02b3285322aaffc4601110d3af652958"/></dir></dir><dir name="Totals"><file name="Fee.php" hash="6864e33af4fa09ef3bdeb35686701623"/></dir></dir></dir><dir name="System"><dir name="Config"><file name="Hint.php" hash="b1c44da4a1c90e046bc208434dbf3267"/><file name="KlarnaCheck.php" hash="4af2d295960ab6b130d5a00679743973"/><file name="Paymentmethodbanner.php" hash="517693650534e8069de9839c0f5f90f4"/><file name="Responsehint.php" hash="863d4dc447ba4f0cf40d9c6299a21d16"/><file name="SellersProtectionCheck.php" hash="fc531673aa166098a19b5c8919c1b992"/><file name="Singlehint.php" hash="78f13dec86b716a2fb6e136c4efbd34f"/><file name="SupportTab.php" hash="72af8448a699279c08314cc409aa7e60"/></dir></dir></dir><dir name="Customer"><dir name="Widget"><file name="Dob.php" hash="c0b2de80572d3acf4228c6e04d5a8a50"/></dir></dir><dir name="PaymentFee"><dir name="Checkout"><dir name="Total"><file name="Fee.php" hash="859c52bdb843bd2a5dca69c1a96b9d85"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><dir name="Totals"><file name="Fee.php" hash="40556128c469edfc7514e8eb46668360"/></dir></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="99993c8778754a2aa551a0f263745225"/></dir></dir><dir name="Totals"><file name="Fee.php" hash="f731faca357e5eab220df5c7b0df6d3d"/></dir></dir></dir></dir><dir name="PaymentMethods"><dir name="Afterpay"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="6e3c0bd9eee2fe2be538d221ec96f8f8"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="56ebbf7666fec6fdbac2ce281df624b4"/></dir></dir><dir name="Afterpay2"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="89317daa2c708f7a29c515be5381ab80"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="1ae3de4c8e3c9d86a0da556181a1ca20"/></dir></dir><dir name="Amex"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="97996a4a4a6c6b18958147bfcef42de4"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="8dace9e0c5aef7aa47423d37beced0fa"/></dir></dir><dir name="Bancontactmrcash"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="4ecf67c7a2bd57135915105db9d48e39"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="1f7eb6ec2ba19917a46ef9ae877fa453"/></dir></dir><dir name="Cartebancaire"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5cf43693480003815e8e3b05ac192ab4"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="660156b59b61152aa60d2a5b5b96af89"/></dir></dir><dir name="Cartebleue"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="9f11bef74e08bdf03b3648d216c59de3"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="224854a2564636708415b06a9ac83b08"/></dir></dir><dir name="Checkout"><dir name="Form"><file name="Abstract.php" hash="ca58bdd7d2e9e99735527eef123d3fa4"/></dir></dir><dir name="Directdebit"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="8d0f3a1ffd3f2920cb38b7283c8f7a47"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="ed6db2005ec69b7a54e928a0d33e7f00"/></dir><file name="Info.php" hash="dcf3f19dcd8fdcf6db3113439ccfd5b6"/></dir><dir name="Empayment"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="460d4674e572573c5738ce87bf201202"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="ddb8cb90231659f17c5c7ba38ad969b7"/></dir></dir><dir name="Eps"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="a329209f134afe361ef7d9adf957745a"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="01058a7858b1007bc56d2acd08e3274e"/></dir></dir><dir name="Giftcards"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="97996a4a4a6c6b18958147bfcef42de4"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="27eb0ffa3bf234b1326d2618ab479f77"/></dir></dir><dir name="Giropay"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="a384d5ca6369442901387ac5555b061e"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="5956caafb68cb45543a93a02d8d16efa"/></dir></dir><dir name="Ideal"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="98506d7cf7339a1a3bd51aff75a2d41d"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="3faffbb86131ff8d6776af24c05f45f0"/></dir></dir><dir name="Klarna"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5c1dee3ad36418ec7598450902d257da"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="7db64441956430f3b9508a34b1d831bc"/></dir></dir><dir name="Maestro"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="7a9476690ad27d5516fb2d094b361626"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="fd5b8435c163c21d889417f2035f6434"/></dir></dir><dir name="Mastercard"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="e1a5f220e48ae8ac0a6f844b16207a51"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="4514ef760ad660a9525fa87e13f068f2"/></dir></dir><dir name="Masterpass"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="f474094f2b38459d29e5d9eaf945a422"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="00cd5f45d68b9253fda9d28ea44ca553"/></dir></dir><dir name="Onlinegiro"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5ae5ce5ebf3041535bf17f2711a4f445"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="52f89dd09f299949411ba572e20becc0"/></dir></dir><dir name="Paymentguarantee"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="250e5f514cd312e895aaa6926bff353a"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="6b885fd2a46d3fecde873e76941cb1c2"/></dir></dir><dir name="Paypal"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="20153fa7827484b096d609bf341c5515"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="41dbb35224e46842c01eeea1b2fa1c2f"/></dir></dir><dir name="Payperemail"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="cf526aa3604fc2e59f74840fb6de3acd"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="a4e6609168127b0200df2c9a200ae8c5"/></dir></dir><dir name="Paysafecard"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="ddbccd2574c89997aaed10b08131782b"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="aa28693fe1c5f3e874efc38b15733ee9"/></dir></dir><dir name="Pospayment"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="f3ee7beab5b6146d2b62c2d9b84da201"/></dir></dir></dir><dir name="Checkout"><file name="PendingPayment.php" hash="7db54ed4d13dd9a19709ad5a4143d65c"/></dir></dir><dir name="Sofortueberweisung"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="a9953aa93ace25c4615e11ca2f5e06c5"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="85fc73af91aab1b43704cac56539e1b3"/></dir></dir><dir name="Transfer"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="5cb8050c05c683f8661cac7e66a3e9ca"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="1ddf724fa739e6ebb402de143f763106"/></dir></dir><dir name="Visa"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="1d9d4dc8aef79cefdd4682bebdc9b0fb"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="53d775fe383da75293031b8b93019f48"/></dir></dir><dir name="Visaelectron"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="f406d49fd695718e620397fe82f66196"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="3cbb7e02bba4eaa57099e8bd6de91511"/></dir></dir><dir name="Vpay"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Advancedbtn.php" hash="0de8e8b98f01fab7e770f5b419d2ff79"/></dir></dir></dir><dir name="Checkout"><file name="Form.php" hash="2cd464f9298f30249baa85d5e9f8233b"/></dir></dir></dir><dir name="Refund"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="NoOptionsAvailable.php" hash="f40e0935fc520a46d16c6d2d93c65a02"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="52dcedb162abe6fe2dd122f22fc08a38"/><file name="StateCodes.php" hash="b2c6d80d88c652415341c1babede7c57"/></dir><dir name="Model"><file name="Abstract.php" hash="4c40873ec4ee2c4ca8376e3bf0aff76b"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Buckaroo"><file name="Certificate.php" hash="81662b088ecdd765c6d3219fae334af1"/><file name="Fee.php" hash="3e98f9441b4ceee3ed10f29590243a6a"/></dir></dir></dir></dir></dir><dir name="Certificate"><file name="Certificate.php" hash="ff3ede1ae2fc24b0fb8657f6262ddcca"/></dir><file name="Certificate.php" hash="4f0c237526e019a188b0abd58820ab2a"/><file name="Giftcard.php" hash="8c3125cece761673aef50307e4f6b398"/><dir name="Masterpass"><file name="V06.php" hash="b1d34af77b257b0dd56962751dddc2f7"/></dir><dir name="Mysql4"><file name="Setup.php" hash="fede9dbd2f1b214a12aa98bd895018b9"/></dir><dir name="Observer"><file name="Abstract.php" hash="0da92e66f696841c6cd5a38c7d97bcd0"/><file name="BackendOrder.php" hash="4efdbd37d08621f508d0c4b1e81548ec"/><file name="CancelAuthorize.php" hash="de34b579ac62b0f01eefa1610ed03912"/></dir><file name="Observer.php" hash="48b3c0744ecad5fbfc6bb87f3aecda85"/><dir name="OldPaymentMethods"><file name="OldPaymentMethod.php" hash="528157a9379be2299d4db7170d59cb4e"/></dir><dir name="PaymentFee"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><dir name="Fee"><file name="Abstract.php" hash="7a735d2cdd496f1ab39b5e7fa39385eb"/></dir><file name="Fee.php" hash="3e23ca47e8cf258c66634641b6cc7341"/><file name="FeeTax.php" hash="de53ceeec529fe83d61a440397e5ae8f"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Fee.php" hash="c3c18aedec2ec4f8626643db53c7ac67"/><file name="FeeTax.php" hash="55260378223e3bb0e6daace9388e2e03"/><file name="Subtotal.php" hash="2e44bed3b438dc0a44a4fc5c9bb8b426"/></dir></dir><dir name="Pdf"><dir name="Total"><file name="Fee.php" hash="2f837fd9e9c55a921fd505e0b6b34d1d"/><file name="Grandtotal.php" hash="f31d624fffaa5b35c81ced7a251c5c97"/><file name="Tax.php" hash="f0d2374a156c19a88b37f9d76ad56c55"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><dir name="Fee"><file name="Abstract.php" hash="4d4a5e078ed2fb568ac28ce736321d59"/></dir><file name="Fee.php" hash="0a7ec955f8bfe4b42c3482b53dfaa98c"/><file name="FeeTax.php" hash="970b285c1df9ad676b426946b3b21603"/></dir></dir></dir><file name="Service.php" hash="38d9ea54efba391312d6f3b28686d9e7"/><dir name="System"><dir name="Config"><dir name="Source"><file name="FeeTaxClass.php" hash="13fd7cb66310ce16d3f073ff39d108de"/></dir></dir></dir></dir><dir name="PaymentMethods"><dir name="Afterpay"><file name="Observer.php" hash="be27cfaeb5c896107fe91bb1c76abe3f"/><file name="PaymentMethod.php" hash="4cfc98b3d30b50dc38dbfd0f3a5da1b3"/></dir><dir name="Afterpay2"><file name="Observer.php" hash="fc491fd84036c1b971e8b45b64a8703c"/><file name="PaymentMethod.php" hash="5b2dede30a1f0e5030f6d6d3a8a738f0"/></dir><dir name="Amex"><file name="Observer.php" hash="7d1822fd50bcb7cf0870e25e6f23dc22"/><file name="PaymentMethod.php" hash="76aad7b5b1b5eec3565596a46b0bad92"/></dir><dir name="Bancontactmrcash"><file name="Observer.php" hash="95fb14bf2c3f2ecfebac34d8a001c33b"/><file name="PaymentMethod.php" hash="03f087c748eb59b4c08f12524f88474b"/></dir><dir name="Cartebancaire"><file name="Observer.php" hash="db1c2c5db148ad30bc7761479b3a8846"/><file name="PaymentMethod.php" hash="8133e6b1b3f68e879200e233fbd88b68"/></dir><dir name="Cartebleue"><file name="Observer.php" hash="a9fa28a790f5f12e5a526c3cb6adbfbd"/><file name="PaymentMethod.php" hash="f6174e8aaa6b9425ef56096fe31a2279"/></dir><dir name="Directdebit"><file name="Observer.php" hash="d69fea8936a47b872022f8d983e9be4a"/><file name="PaymentMethod.php" hash="b59d4e9b1e42d6d676a15862ea4c3f61"/></dir><dir name="Empayment"><file name="Observer.php" hash="b50935e06c48f1288250df3a89c1937a"/><file name="PaymentMethod.php" hash="d870c837eff76d921251c1ae77f7da91"/></dir><dir name="Eps"><file name="Observer.php" hash="beab5315b271c662b88de70f4c37e437"/><file name="PaymentMethod.php" hash="9fdaac7fe5d631e7433d96e44b0a352c"/></dir><dir name="Giftcards"><file name="Observer.php" hash="3fff3090241dee02cc181562ccc0be98"/><file name="PaymentMethod.php" hash="c13e50817ea4b175459aa00ef55ceb99"/></dir><dir name="Giropay"><file name="Observer.php" hash="150c3f7e14fa48582e79c4de971d77fc"/><file name="PaymentMethod.php" hash="597f7589be437f9cc5543a492c944fb1"/></dir><dir name="Ideal"><file name="Observer.php" hash="6e3fe42e721da075efa8911a83626596"/><file name="PaymentMethod.php" hash="887eb231ed601e191a8d96c8e1c6f1ea"/></dir><dir name="Klarna"><file name="Observer.php" hash="724a74f38696050627db80de52dd9b58"/><file name="PaymentMethod.php" hash="55fc29533819822b6c0cf1e3eb81f423"/></dir><dir name="Maestro"><file name="Observer.php" hash="b5679881bfd06e5c98e6acac05343382"/><file name="PaymentMethod.php" hash="726ab3653211cde3a67d8814ad7fceb2"/></dir><dir name="Mastercard"><file name="Observer.php" hash="69fd392ab40081481ad39e1b617b85d9"/><file name="PaymentMethod.php" hash="3d84627f57dbe5492e85caf35e4d9834"/></dir><dir name="Masterpass"><file name="Observer.php" hash="ba554ffffe8ec4480736d18f0020b4be"/><file name="PaymentMethod.php" hash="352549517053d396ef2e13743970932c"/></dir><dir name="MasterpassLightbox"><file name="Observer.php" hash="cc05e04c811371b248c9276548254ac6"/><file name="PaymentMethod.php" hash="0bbdfcaf60690820bf5833d020786a1a"/></dir><dir name="Onlinegiro"><file name="Observer.php" hash="d8a90c5c36a45dc5845f3f38d86015e7"/><file name="PaymentMethod.php" hash="8e90b5a32e15865f89219c6304ac7eda"/></dir><file name="PaymentMethod.php" hash="10c4965c1e29f44f31a4b46a461cd960"/><dir name="Paymentguarantee"><file name="Observer.php" hash="82783861718c2ac222106247ef7bc610"/><file name="PaymentMethod.php" hash="c37dceb8dbf9c1a7d83bc1cd6431f1a0"/></dir><dir name="Paypal"><file name="Observer.php" hash="42a860b3cd28d3dae91bf0cdcf6cbf29"/><file name="PaymentMethod.php" hash="8034f02e364ee7ac274a1e787008966f"/></dir><dir name="Payperemail"><file name="Observer.php" hash="76591424a703b18948dd60be7c6e5b12"/><file name="PaymentMethod.php" hash="2fd55a378ddede3897da5dccf642e486"/></dir><dir name="Paysafecard"><file name="Observer.php" hash="5954a4b4bf9dd4febd8d84988e7282b9"/><file name="PaymentMethod.php" hash="771fe27ce89c1451bb03d1fb2b3c569e"/></dir><dir name="Pospayment"><file name="Observer.php" hash="a1dfed46a7dc4904276cb17e18097c6c"/><file name="PaymentMethod.php" hash="340d7557f53c33b90a6fcd72943aef54"/></dir><dir name="Sofortueberweisung"><file name="Observer.php" hash="96a4db03f99ed03bfc91ab3b315cc1da"/><file name="PaymentMethod.php" hash="fae36ddacd55c479d7f409ca92295eb5"/></dir><dir name="Transfer"><file name="Observer.php" hash="eea70837020fcc703d2eb383f7926765"/><file name="PaymentMethod.php" hash="d1f2ca5a359e6457e9b861a30b547c48"/></dir><dir name="Visa"><file name="Observer.php" hash="27ea4f86eafdecc760e74211f40b4b4b"/><file name="PaymentMethod.php" hash="cc082b4d6adfc96bf9a3c8b10500aea0"/></dir><dir name="Visaelectron"><file name="Observer.php" hash="ca9f4a9b94b2c3bd00733df160c4493e"/><file name="PaymentMethod.php" hash="1c6c4206cd80c4fcd0c02fd510d322f4"/></dir><dir name="Vpay"><file name="Observer.php" hash="61d59a900b732bb15f82dacb9a59407f"/><file name="PaymentMethod.php" hash="318085aa11380ca26d8486d3e40ab49c"/></dir></dir><file name="Process.php" hash="c457000e41690596888188b96f704040"/><dir name="Refund"><file name="Creditmemo.php" hash="07b3af614309ae8657d0d32415ef18ab"/><file name="Observer.php" hash="5b9ad329867e037eb75c4e287cb96530"/><dir name="Request"><file name="Abstract.php" hash="c12c1fbbe62b1bb0de6fb0c9e02b13f6"/></dir><dir name="Response"><file name="Abstract.php" hash="c3c365b8c0a4c3a40d029ff75fb6b78d"/><file name="Push.php" hash="2a68805f66dcb9d710184b5d4831a168"/></dir><dir name="Sources"><file name="StatusesClosedFailed.php" hash="4972f40ca79890943b064dde78ce4dcd"/><file name="StatusesClosedSuccess.php" hash="ee554ae7199ce719ff3752821a3bdd08"/><file name="StatusesCompleteFailed.php" hash="2cdf858b2802f4c7219d47b3ad74f723"/><file name="StatusesCompleteSuccess.php" hash="82e0c3cc3e5464d52382f5d0c283b3fe"/><file name="StatusesProcessingFailed.php" hash="1e312bcc824623a3346bed6f64f1e170"/><file name="StatusesProcessingSuccess.php" hash="4f5fe2bbb1423bf24b595bb76d489cec"/></dir></dir><dir name="Request"><file name="Abstract.php" hash="60c0dedb91ff754268cec523355a3b48"/><file name="Availability.php" hash="40e8eea102893209b430196372c1b5a6"/><file name="CancelAuthorize.php" hash="31bd2563fb5fdd4870f23110a237521e"/><file name="Capture.php" hash="6afa5b8fde10a42d3d6d5c162115c987"/><file name="Quote.php" hash="be0df87844e191275fcfd03047d6289c"/><file name="QuoteFinal.php" hash="f827a4953d6adc0d8681970351ffda84"/></dir><dir name="Resource"><dir name="Certificate"><file name="Collection.php" hash="793d24a8b45acfd95a86cb56f10c4af9"/></dir><file name="Certificate.php" hash="2944bbd321d00f4530a2ae9f420db461"/><dir name="Giftcard"><file name="Collection.php" hash="3f001857a1b75f42bcbb9af0e9ba8bae"/></dir><file name="Giftcard.php" hash="ce7fe75cca48d71fa78441fb42eb17ff"/><file name="Setup.php" hash="0a1ef7d53f0a597cddbe1ea136cb1b80"/></dir><dir name="Response"><file name="Abstract.php" hash="8fd89a5d3387e9c593382ae72cdb0c80"/><file name="BackendOrder.php" hash="5f3df5dfe178efb3999bbe706982f7ff"/><file name="CancelAuthorize.php" hash="9c4a680404f3d56b6ca0175a12ed3f5a"/><file name="Capture.php" hash="9d15f826b32fbdec6ea0afd2c8a0ef26"/><file name="MasterPass.php" hash="dab1fab67ec634d50252e7bcc66b02e5"/><file name="Push.php" hash="4f34da5c392b1476175e302f8d2500cb"/><file name="Quote.php" hash="6b269a5ddc937fd6e91df49449693bf6"/><file name="Return.php" hash="27539258c2c3040b1d24361a6863bc06"/></dir><file name="Soap.php" hash="f5b0ee02d4e133a7945cac10d0d31be4"/><dir name="Sources"><file name="AcceptgiroDirectdebit.php" hash="635aea382493c1fe9497c02ad50dd5c5"/><dir name="Afterpay"><file name="AvailableCurrencies.php" hash="beb11c20245dc8a624df36fa8d2dc543"/></dir><dir name="Afterpay2"><file name="AvailableCurrencies.php" hash="d98e8ed7f4f65f44ee4d7380b02bbca3"/></dir><file name="Allspecificcountries.php" hash="718960abf74dead25882b4c9aed6748b"/><dir name="Amex"><file name="AvailableCurrencies.php" hash="6240bfa85eba943133c0b2ec5d84e703"/></dir><file name="Availablemethods.php" hash="3990954382e47269fc22fcc2ba9d1db5"/><dir name="Bancontactmrcash"><file name="AvailableCurrencies.php" hash="5d1359f1533582c92d59a50f0d3c3b69"/></dir><file name="BusinessToBusiness.php" hash="7433dd041e659bef9d589500a21edc7e"/><dir name="Cartebancaire"><file name="AvailableCurrencies.php" hash="f7e9ab1829a192ecb553422a95c0ba60"/></dir><dir name="Cartebleue"><file name="AvailableCurrencies.php" hash="05dfd6c7bd932c6db5f38f940c217176"/></dir><file name="Certificates.php" hash="17424773cdbdaef39c5961573bd12e47"/><file name="CultureType.php" hash="b77bac794ad88424f0d8bee4b58e57e8"/><dir name="Directdebit"><file name="AvailableCurrencies.php" hash="942251d7321bc013af0067ae61303a20"/></dir><dir name="Empayment"><file name="AvailableCurrencies.php" hash="e1742054645fab1892d1854bf739b548"/></dir><dir name="Eps"><file name="AvailableCurrencies.php" hash="e13ab7ac7dd535bde24b2441ff6a99a4"/></dir><file name="FeePercentageMode.php" hash="c5f13efdcadfb0ecd58a777bd44405c0"/><dir name="Giftcards"><file name="AvailableCards.php" hash="e7ff41b43fd9735391172a6761ce5beb"/><file name="AvailableCurrencies.php" hash="7430c988592a09f106bd0fbc95c87442"/></dir><dir name="Giropay"><file name="AvailableCurrencies.php" hash="ed685c06165b2eb906665a1992d90a4d"/></dir><dir name="Ideal"><file name="AvailableCurrencies.php" hash="f70ac8b2bf244b48865b3607403e5928"/><file name="ServiceVersion.php" hash="d15b8457484c53045d88f1866cd81b95"/></dir><dir name="Klarna"><file name="AvailableCurrencies.php" hash="2da5a4c99c35997b58dac34aaf75c372"/><file name="SendInvoiceBy.php" hash="bf9ddd58a1acd12eaa9abe3d06482391"/></dir><dir name="Maestro"><file name="AvailableCurrencies.php" hash="e18b47ee64702f9d5d45bdf3a3098f55"/></dir><dir name="Mastercard"><file name="AvailableCurrencies.php" hash="c956e85f9da2a52f00978b02a4184391"/></dir><dir name="Masterpass"><file name="AvailableCurrencies.php" hash="e336bae86456987ce7b26121e157282c"/></dir><dir name="Onlinegiro"><file name="AvailableCurrencies.php" hash="6a4009bd81e02367e13c6493c113cec4"/></dir><file name="PaymentFlow.php" hash="8d45a39e39a4f678f7aea4d61aaceb02"/><file name="PaymentMethodArea.php" hash="2fe7d3978305a9fc533129623bc37ef5"/><dir name="Paymentguarantee"><file name="AvailableCurrencies.php" hash="eaab1072f162a21734ee681a8b01aeb3"/></dir><dir name="Paypal"><file name="AvailableCurrencies.php" hash="551f2f942e34da9a93ee4021e93b65a0"/></dir><dir name="Payperemail"><file name="AvailableCurrencies.php" hash="60bf5c055fb3cefb7b986716f1058f61"/></dir><dir name="Paysafecard"><file name="AvailableCurrencies.php" hash="0fa60d24e1a0a8871d856eab408dc1ea"/></dir><dir name="Pospayment"><file name="AvailableCurrencies.php" hash="ffe5cf1666b8f3524486096966bce197"/></dir><file name="ReminderLevel.php" hash="e37cb0ef83fa54d1f034ebec165fd7f6"/><dir name="Sofortueberweisung"><file name="AvailableCurrencies.php" hash="24ddd8be6ec6bee4471b234dcdebde2a"/></dir><file name="States.php" hash="77145e1431f0377b2c7c6812577aae9f"/><file name="StatusesFailed.php" hash="ca0406c3a0d1964b0e99aac3401d4484"/><file name="StatusesPending.php" hash="af8a6a3b57acea25e924090a37efc765"/><file name="StatusesPendingPayment.php" hash="c708bdeab09d6ed426310fb22c8571aa"/><file name="StatusesSuccess.php" hash="932910d9c8f0ae7debfbdaf72d0fd511"/><file name="TaxClasses.php" hash="b3eac25c3c44b3927f3fd5c42f6a84ab"/><file name="TestLive.php" hash="565c66468270e1dfdd2d71b9c80e7e87"/><dir name="Transfer"><file name="AvailableCurrencies.php" hash="a6f184fe5f8084bcfdb738c810149696"/></dir><dir name="Visa"><file name="AvailableCurrencies.php" hash="6b8c04c59ee273f5dbe75c5994153738"/></dir><dir name="Visaelectron"><file name="AvailableCurrencies.php" hash="4d95dc3ec06176f92ea185d8887807f9"/></dir><dir name="Vpay"><file name="AvailableCurrencies.php" hash="a18fe908ab589fd37e178e64683457d6"/></dir><file name="Yesno.php" hash="b7fd7889636bccfbc1e6db14e804c221"/></dir></dir><dir name="Test"><dir name="Framework"><dir name="TIG"><dir name="Test"><file name="Config.php" hash="588f21c9becc52884448a93c113032fd"/><dir name="Http"><file name="Response.php" hash="f5c2da432cc610f2a1e1f90bd5acb8fe"/></dir><file name="TestCase.php" hash="df5cb2bb21d364937fb667102457337d"/></dir></dir></dir><dir name="Scripts"><file name="AfterSuccess.sh" hash="22219d72defa83737543215af0072479"/><file name="InstallDependencies.sh" hash="e3a52bdb2ad1213db21fcc2beb1d9ed5"/><file name="Setup.sh" hash="32f5b8baa37fa2444809a967431e3572"/></dir><dir name="Unit"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Invoice"><dir name="Totals"><file name="FeeTest.php" hash="5c0085f57b31b56fc64d6906f6ea0180"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><file name="SupportTabTest.php" hash="615f5149e9bceb8e5f98e356c5ca724c"/></dir></dir></dir><dir name="PaymentMethods"><dir name="Klarna"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="AdvancedbtnTest.php" hash="9caca7267c32e9d0dc7ff363973b3737"/></dir></dir></dir></dir><dir name="Pospayment"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="AdvancedbtnTest.php" hash="86206556f7f5ba06605016c1420276f4"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="DataTest.php" hash="be70da9228b7e3daaacb4f90f8e0866f"/></dir><dir name="Model"><dir name="Observer"><file name="CancelAuthorizeTest.php" hash="021b4bbfdd52f24879d1cc3e173ba6a3"/></dir><dir name="PaymentFee"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="FeeTest.php" hash="c7824989757f93903596de033c1ccdb8"/></dir></dir></dir></dir><dir name="PaymentMethods"><dir name="Afterpay"><file name="ObserverTest.php" hash="ba3e7b85a62544f0f8e9d9f0fdb95ea4"/><file name="PaymentMethodTest.php" hash="2599cb50f9c28cf27e217a51c86a6d8c"/></dir><dir name="Afterpay2"><file name="ObserverTest.php" hash="664840ad142890a3b4c6c63c9023f12c"/><file name="PaymentMethodTest.php" hash="927864f56b619f9669803536f0a6c775"/></dir><dir name="Klarna"><file name="ObserverTest.php" hash="32300bbc6644e4089f8d4cb117decbf2"/><file name="PaymentMethodTest.php" hash="c93115ac61eb74cbb2d148d03ebc2ca7"/></dir><file name="PaymentMethodTest.php" hash="59a7eb761e1215e0fae8371fffdaa9bf"/><dir name="Pospayment"><file name="ObserverTest.php" hash="40c6ecdc0d82485bff11d709df61cc99"/><file name="PaymentMethodTest.php" hash="4c4e0498719e90874f0e4ad4779d84e5"/></dir></dir><dir name="Refund"><file name="CreditmemoTest.php" hash="e2ebcd257c9816316cb919c0d0a63008"/></dir><dir name="Request"><file name="CancelAuthorizeTest.php" hash="ec7b5b3ff11409d17e432c928a6fe7c3"/><file name="CaptureTest.php" hash="ed0d99da7f7742be235132b4941341db"/></dir><dir name="Response"><file name="AbstractTest.php" hash="0701487142879e62fc305ad87fab39cc"/><file name="CancelAuthorizeTest.php" hash="1dbdd699e110afa0945c52c06d785086"/><file name="CaptureTest.php" hash="fbf22b33ff383c6a05677af77a5fef8f"/></dir><dir name="Sources"><dir name="Klarna"><file name="AvailableCurrenciesTest.php" hash="c05d4c8d895eac0f15eafaf6c0e24595"/><file name="SendInvoiceByTest.php" hash="bc17c606287c7bc39642b0f0f94d42aa"/></dir><file name="PaymentFlowTest.php" hash="314bcaf4fd850976bac9b61172f31c8f"/><dir name="Pospayment"><file name="AvailableCurrenciesTest.php" hash="fe7e2e67b6e8c52edb4868fef7756026"/></dir></dir></dir></dir><file name="bootstrap.php" hash="b8c283971a766a2be8ded61df13dab2d"/><file name="phpunit.xml" hash="9ef87a43cbc88316bc5216ad3e5437e8"/><file name=".coveralls.yml" hash="87a377367bc16815abcef27157a888e3"/></dir><dir name="certificate"><file name="Checkout.pem" hash="441f60bb62fdc14434954514b01d0aa3"/></dir><dir name="controllers"><dir name="BuckarooAdminhtml"><file name="GiftcardController.php" hash="5765e2d0040b99d44e22c9fd1827fada"/></dir><file name="CheckoutController.php" hash="ee04a7bc81b98ca33c461478d974778a"/><file name="NotifyController.php" hash="7807064088b78aa4af4f35a6c94625d8"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cdf9286c052532056b1cc8ced7b6bf8e"/><file name="config.xml" hash="141691ab37cc9bd40cd4198bd9024255"/><file name="masterpass.xml" hash="025bbcb407a45ac231fff82c58b647ee"/><file name="system.xml" hash="58d46f57f2d42760d86354cf4550fc9f"/></dir><dir name="lib"><file name="Buckaroo.wsdl" hash="4fc7278e90be66fc8101c699f73b6204"/><file name="Import_1.xsd" hash="32c5184fc8f2010a202b2021e1b7fc00"/><file name="Import_10.xsd" hash="a64b4c201518b512fc6bc1ab78f0102f"/><file name="Import_11.xsd" hash="161e2970900419dc387af04e37f3a8ee"/><file name="Import_12.xsd" hash="146273756bb0a9bfd6ea8f5fba22ee9c"/><file name="Import_13.xsd" hash="1727b36ee762f6b1617c49d3e7597f75"/><file name="Import_14.xsd" hash="815f6849ad9b89b0295ffb48082ff619"/><file name="Import_15.xsd" hash="dc6a0cf5ca0cd6a52c2c0e18b7182f5a"/><file name="Import_16.xsd" hash="6511f38274501935bc847881e9fa27ed"/><file name="Import_17.xsd" hash="3ca8df56825b5a88509138faf79de2f8"/><file name="Import_18.xsd" hash="9be4df50a6bdca4bd196f26d2ae4e429"/><file name="Import_19.xsd" hash="9c4cd9b53bdf09b597e420cb58c32a5c"/><file name="Import_2.xsd" hash="bbeaa3381c5b550d2dfad8c049ba68e8"/><file name="Import_20.xsd" hash="cc7fa2b280b8f2d38da43e9fc7b94f86"/><file name="Import_21.xsd" hash="9ca3b39018c8583aa18ca98340288813"/><file name="Import_22.xsd" hash="dedd6c550d812705832feaaef60c721f"/><file name="Import_23.xsd" hash="c7b8bfae66463e58ce68c7f77eec04a4"/><file name="Import_24.xsd" hash="97ff34ab5da093f868dfd6623d934032"/><file name="Import_25.xsd" hash="52024ab7933277cb56aacc558609e67a"/><file name="Import_3.xsd" hash="dead2627684b2cf45f72f5dd9235738d"/><file name="Import_4.xsd" hash="ad27bf7d8bedc5e44f6a9ef862a05cb5"/><file name="Import_5.xsd" hash="a9c07bdedf700b572b89172e71dac0cd"/><file name="Import_6.xsd" hash="a6b2e2ac238b942b075f8cf186a644ed"/><file name="Import_7.xsd" hash="47193b5224627392508a074dd94c912d"/><file name="Import_8.xsd" hash="d167423bf89d1029a58e78ce4a000c0b"/><file name="Import_9.xsd" hash="52518de0039a5167b6d0bf803916c6e2"/></dir><dir name="sql"><dir name="buckaroo3extended_setup"><file name="mysql4-data-upgrade-4.12.0-4.13.0.php" hash="3d3223602759340631c3be1e41d18ed6"/><file name="mysql4-data-upgrade-4.4.2.0-4.5.0.0.php" hash="3f34113aa093ec80a41c67926bdda27b"/><file name="mysql4-data-upgrade-4.6.1-4.7.0.php" hash="e2ffae63c1533bbe6d12e0e0532866dd"/><file name="mysql4-install-0.1.0.php" hash="60db243184184dd2b8b61adbc92e3032"/><file name="mysql4-upgrade-0.1.0-2.0.2.php" hash="34983df0c6286b761c2e4be9c6cc7952"/><file name="mysql4-upgrade-2.0.2-4.0.0.php" hash="34983df0c6286b761c2e4be9c6cc7952"/><file name="mysql4-upgrade-4.0.3-4.1.0.php" hash="d30fcb21bcd10039a9a77e890cdb519d"/><file name="mysql4-upgrade-4.16.3-4.17.0.php" hash="9a5f2cf77e48ac6713c7c455eb35e29f"/><file name="mysql4-upgrade-4.3.1-4.3.2.php" hash="7affe54620a30f9feb8652c3e3b20696"/><file name="mysql4-upgrade-4.3.3.0-4.4.0.0.php" hash="3f27e188751bcd62c624192a8658c2e8"/><file name="mysql4-upgrade-4.4.0.0-4.4.1.0.php" hash="9353901c8546ed0bd126ee14be081ec6"/><file name="mysql4-upgrade-4.6.1-4.7.0.php" hash="9cfe09a4b22a88390182dd1851d110be"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TIG_Buckaroo3Extended.xml" hash="6a23faf30df008518782b2d2a828c8a4"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="TIG"><file name="buckaroo3extended.xml" hash="888f1e7bfcd3bf57a2c56b7b711b6066"/></dir></dir><dir name="template"><dir name="buckaroo3extended"><dir name="directdebit"><file name="info.phtml" hash="d1ba310ae081037271ee78d696db690f"/></dir><dir name="onlinegiro"><dir name="checkout"><file name="form.phtml" hash="997a24214a955aea9b2b19e18c8cb658"/></dir></dir><dir name="payperemail"><dir name="checkout"><file name="form.phtml" hash="7c547d1c9faa7aa02347ff738c9cc1d1"/></dir></dir><dir name="refund"><dir name="system"><dir name="config"><file name="noOptionsAvailable.phtml" hash="38c734121ab4b8554347c1569e0aae01"/></dir></dir></dir><dir name="sales"><dir name="order"><dir name="create"><file name="js.phtml" hash="3edec4e9d05ac156c3cc3314ceada764"/><dir name="totals"><file name="fee.phtml" hash="9864e20a538296885ae34f772708a90f"/></dir></dir><dir name="creditmemo"><dir name="create"><dir name="totals"><file name="fee.phtml" hash="6292242b0ff50c1187b2829da815e601"/></dir></dir></dir><dir name="totals"><file name="tax.phtml" hash="7db3608df63c4ffaf5e65811599d8cd7"/></dir></dir></dir><dir name="system"><dir name="config"><file name="hint.phtml" hash="9d1628612dfe61352b7ae8240e03b8e8"/><file name="klarnaCheck.phtml" hash="69395e036253f21fbb9f3cc6a494930b"/><file name="paymentmethodbanner.phtml" hash="d4d30e0fabe6484e4c2181fa1074ce12"/><file name="paypalRegionCheck.phtml" hash="170712863a97ce788da8a2c059077b4f"/><file name="responsehint.phtml" hash="83838dea3098a5cad8897cafcf3ed13b"/><file name="singlehint.phtml" hash="f4d4e28c7899e15b6692dcceb975ad77"/><file name="supportTab.phtml" hash="348957b4e0c087b5404341cd16f87fd8"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="TIG"><file name="buckaroo3extended.xml" hash="d92149e1faa92bf6c5d1f53a74a1c45a"/></dir></dir><dir name="template"><dir name="buckaroo3extended"><dir name="afterpay"><dir name="checkout"><file name="form.phtml" hash="37975b73101806baf840d1d16771ee73"/></dir></dir><dir name="afterpay2"><dir name="checkout"><file name="form.phtml" hash="37975b73101806baf840d1d16771ee73"/></dir></dir><dir name="amex"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="bancontactmrcash"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="cartebancaire"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="cartebleue"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="checkout"><dir name="total"><file name="buckaroo_fee.phtml" hash="da32523018be24ce13d9a90cc4b763cb"/></dir></dir><dir name="customer"><dir name="widget"><file name="dob.phtml" hash="fe142f7345e1908b8354d20f69023269"/></dir></dir><dir name="directdebit"><dir name="checkout"><file name="form.phtml" hash="dd6426c314a69355760b84a6e5c8ce87"/></dir><file name="info.phtml" hash="f494d2b2d8f27df3a40548b8a5e38a99"/></dir><dir name="empayment"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="eps"><dir name="checkout"><file name="form.phtml" hash="77e7d2894364dbf959c50480b8242ac9"/></dir></dir><dir name="giftcards"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="giropay"><dir name="checkout"><file name="form.phtml" hash="1d5f7d7fb64e7adcbcd980daff0dbf5d"/></dir></dir><dir name="ideal"><dir name="checkout"><file name="form.phtml" hash="5994e8bf263928737f392db6cb75a359"/></dir></dir><file name="jquery.phtml" hash="6b1b0555738c327617c19405f10eeb75"/><dir name="klarna"><dir name="checkout"><file name="form.phtml" hash="be21087fcee9701be6f4db60f79346ae"/></dir></dir><dir name="maestro"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="mastercard"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><file name="oneStepCheckout.phtml" hash="bc07be11bfe81f21a38eb332362932e6"/><dir name="onlinegiro"><dir name="checkout"><file name="form.phtml" hash="baa443e095599199b4b435908ce5c9be"/></dir></dir><dir name="paymentFee"><dir name="checkout"><file name="fee.phtml" hash="a980dc262ab66e63ffe2ca7cd5a846bf"/></dir></dir><dir name="paymentguarantee"><dir name="checkout"><file name="form.phtml" hash="9d5d7312832c1214bc0edcd2b8cf0199"/></dir><file name="termsAndConditions.phtml" hash="6f1fd609fc1baf3a541707f6fbe129f7"/></dir><dir name="paypal"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="payperemail"><dir name="checkout"><file name="form.phtml" hash="6407ca9e8d67e2da85f4d7ccf070ea90"/></dir></dir><dir name="paysafecard"><dir name="checkout"><file name="form.phtml" hash="77e7d2894364dbf959c50480b8242ac9"/></dir></dir><dir name="pospayment"><dir name="checkout"><file name="pendingpayment.phtml" hash="2294308f37a0c2dd4a946fec5dbd3b8b"/></dir></dir><file name="saveData.phtml" hash="523e37b63f6a90ac00307551d7bcf3e4"/><dir name="sofortueberweisung"><dir name="checkout"><file name="form.phtml" hash="77e7d2894364dbf959c50480b8242ac9"/></dir></dir><dir name="transfer"><dir name="checkout"><file name="form.phtml" hash="1f7c8034db909e2ca067871f972fb2ba"/></dir></dir><dir name="visa"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="visaelectron"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir><dir name="vpay"><dir name="checkout"><file name="form.phtml" hash="8de16790a79cd0f57aaa1e281915faa4"/></dir></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="buckaroo3extended"><dir name="afterpay"><dir name="checkout"><file name="form.phtml" hash="f095f0393adad6723925df4f6b7a3464"/></dir></dir><dir name="afterpay2"><dir name="checkout"><file name="form.phtml" hash="53f8c2de36bbb143319c2251443b2f0f"/></dir></dir><dir name="amex"><dir name="checkout"><file name="form.phtml" hash="489ab613e6035a0df55d64570c296873"/></dir></dir><dir name="bancontactmrcash"><dir name="checkout"><file name="form.phtml" hash="fc71bc66b3ce270b5f7d3f27edd64cad"/></dir></dir><dir name="cartebancaire"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="cartebleue"><dir name="checkout"><file name="form.phtml" hash="733b3a75405d26a5ee080d73b534d52f"/></dir></dir><dir name="directdebit"><dir name="checkout"><file name="form.phtml" hash="9a593b3b851fba8b20c235b754cb4922"/></dir><file name="info.phtml" hash="f494d2b2d8f27df3a40548b8a5e38a99"/></dir><dir name="empayment"><dir name="checkout"><file name="form.phtml" hash="8ef01960e1c13cb9f249299fca967263"/></dir></dir><dir name="eps"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="giftcards"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="giropay"><dir name="checkout"><file name="form.phtml" hash="eb814a8ed955ef8cc9b5ee48284f3fae"/></dir></dir><dir name="ideal"><dir name="checkout"><file name="form.phtml" hash="0af09a938c81a157f11798c410fd3920"/></dir></dir><dir name="klarna"><dir name="checkout"><file name="form.phtml" hash="d688242b54d47b0e3ef4f3a823074840"/></dir></dir><dir name="maestro"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="mastercard"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="onlinegiro"><dir name="checkout"><file name="form.phtml" hash="3de12383589d167d18922053902103c8"/></dir></dir><dir name="paymentguarantee"><dir name="checkout"><file name="form.phtml" hash="7e540e4870127d8856eb11195aae9ddc"/></dir><file name="termsAndConditions.phtml" hash="6f1fd609fc1baf3a541707f6fbe129f7"/></dir><dir name="paypal"><dir name="checkout"><file name="form.phtml" hash="6fa92b1eb2fb616a99fd1f9d2bc4e141"/></dir></dir><dir name="payperemail"><dir name="checkout"><file name="form.phtml" hash="77f0a46a225cd376f9961c30bc6f87e4"/></dir></dir><dir name="paysafecard"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="sofortueberweisung"><dir name="checkout"><file name="form.phtml" hash="677ef0a2383d31130c30e431dfa072a6"/></dir></dir><dir name="transfer"><dir name="checkout"><file name="form.phtml" hash="0212c8314291eb9fd9f89a7edaca37bf"/></dir></dir><dir name="visa"><dir name="checkout"><file name="form.phtml" hash="733b3a75405d26a5ee080d73b534d52f"/></dir></dir><dir name="visaelectron"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir><dir name="vpay"><dir name="checkout"><file name="form.phtml" hash="889a0b99aff44ddde4218a9f436b6543"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="tig_buckaroo3extended"><file name="supportTab.css" hash="697af7a62a046a2ed7fe0c0df309470a"/><file name="system_config_edit.css" hash="6b382c7f59572e02d78432d10d9938b6"/></dir></dir><dir name="images"><dir name="tig_buckaroo3extended"><file name="buckaroo_large.png" hash="8ab58aeeaabed3d11f62a8c56f3a9be6"/><file name="buckaroo_logo_medium.gif" hash="a7e5eb51b749720f6fc31d3a4234072e"/><file name="buckaroo_small.png" hash="96ed717a3c3617dd415ccefaef7f81d4"/><file name="glyph_error.gif" hash="a138b803d772f552aa2e49e1c506edbd"/><file name="glyph_info.gif" hash="40f72d28be63ecf2b6ef44c7ea730104"/><file name="glyph_manual.png" hash="771db63b6ffc9de1c06da564796adc6e"/><file name="glyph_pdf.png" hash="a5ea929f4014a88d7320d0293913ace3"/><file name="glyph_success.gif" hash="465a056a3ba3d94367f51c3c0b751391"/><file name="glyph_warning.gif" hash="fa817cb6d49efb9855942ef2b739fc6c"/><file name="legend.gif" hash="d8fb0642901868d489d31b426f3e3406"/><file name="tig_logo_medium.png" hash="780a6b187a34886a3748abbc2eee42a1"/></dir></dir><dir name="js"><dir name="tig_buckaroo3extended"><file name="jquery-1.4.4.min.js" hash="73a9c334c5ca71d70d092b42064f6476"/></dir><dir name="TIG"><dir name="Buckaroo3Extended"><file name="klarnaCheck.js" hash="4aa9345dc7937b177a0de82e09692c27"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="TIG"><dir name="Buckaroo3Extended"><file name="styles_opc.css" hash="f89a6cbf2832d79041a6689c4b829ff8"/><file name="styles_osc.css" hash="b53917c3b2dd8a733a2824df63519527"/></dir></dir></dir><dir name="images"><dir name="tig_buckaroo3extended"><file name="ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="icon_asn.gif" hash="0fbd9493e65ab774cc6859da47c3c8cc"/><file name="logo_abn_s.gif" hash="eb6d7cd949e6fbf671c43cb83c7c3e17"/><file name="logo_bunq_s.gif" hash="22202450a7f8f4ca1c3a1c19254e90c7"/><file name="logo_fortis_s.gif" hash="7f1ad68de127101a83e02c2e5af01fa7"/><file name="logo_friesland_s.gif" hash="d9955dc120b7d4216d9bd19b6d8621c0"/><file name="logo_ing_s.gif" hash="e56fa35285496c73565bfdf82d6967fa"/><file name="logo_knab_s.gif" hash="146e995dbede4e2798c278d6da26b9d2"/><file name="logo_lanschot_s.gif" hash="f68ceb355661c41779d716a6ef8dfdf3"/><file name="logo_rabo_s.gif" hash="8df417edaf2410ff574d9d1ed453c0bc"/><file name="logo_sns_s.gif" hash="78462566d91b21feca3930ccf203e1f4"/><file name="logo_triodos.gif" hash="f3dd4d744232ddf4c1700068a6b3a531"/></dir></dir><dir name="js"><dir name="TIG"><dir name="Buckaroo3Extended"><file name="afterpayObserver.js" hash="60a91402a6eb574b9e12c6a0399fcf40"/><file name="jquery-1.12.3.min.js" hash="c07f2267a050732b752cc3e7a06850ac"/><file name="oneStepCheckout.js" hash="77d8f8c922176fb681ae4295b7e657d1"/><file name="paymentGuaranteeObserver.js" hash="2f679ce4b928874b4ad34fe7b6951912"/><file name="saveData.js" hash="06aa4d9d8b1133ed452f045e850c9fac"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="css"><dir name="TIG"><dir name="Buckaroo3Extended"><file name="styles_opc.css" hash="f89a6cbf2832d79041a6689c4b829ff8"/><file name="styles_osc.css" hash="c7609d8546a9dcaf545abcd8c5e11657"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="nl_NL"><file name="TIG_Buckaroo3Extended.csv" hash="a8fe1525bd374bccbfbfb585a4802bc1"/></dir><dir name="en_US"><file name="TIG_Buckaroo3Extended.csv" hash="4269b113063f7c5ad1300c67e357c3fa"/></dir></target></contents>
|
164 |
<compatible/>
|
165 |
+
<dependencies><required><php><min>5.2.0</min><max>7.0.15</max></php></required></dependencies>
|
166 |
</package>
|