This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'release/1.10.0'
- Loading branch information
Showing
57 changed files
with
2,486 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
bin/tests/016_HOSTED_FIELDS/1_frontend/1600-HOSTED_FIELDS_FRONTEND.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/********************************************************************************************** | ||
* | ||
* VALIDATION TEST METHOD : CREDIT CART (DIRECT) | ||
* | ||
* To launch test, please pass two arguments URL (BASE URL) and TYPE_CC ( CB,VI,MC ) | ||
* | ||
/**********************************************************************************************/ | ||
|
||
var paymentType = "HiPay Enterprise Credit Card Hosted Fields", | ||
currentBrandCC = typeCC; | ||
|
||
casper.test.begin('Test Checkout ' + paymentType + ' with ' + currentBrandCC, function (test) { | ||
phantom.clearCookies(); | ||
|
||
casper.start(baseURL + "admin/") | ||
/* Active HiPay CC payment method if default card type is not defined or is VISA */ | ||
.then(function () { | ||
this.logToBackend(); | ||
method.proceed(test, paymentType, "hostedfields"); | ||
}) | ||
.thenOpen(baseURL, function () { | ||
this.waitUntilVisible('div.footer', function success() { | ||
this.selectItemAndOptions(); | ||
}, function fail() { | ||
test.assertVisible("div.footer", "'Footer' exists"); | ||
}, 10000); | ||
}, 15000) | ||
.then(function () { | ||
this.addItemGoCheckout(); | ||
}) | ||
.then(function () { | ||
this.checkoutMethod(); | ||
}) | ||
.then(function () { | ||
this.billingInformation(); | ||
}) | ||
.then(function () { | ||
this.shippingMethod(); | ||
}) | ||
/* Fill steps payment */ | ||
.then(function () { | ||
this.wait(10000, function () { | ||
this.fillStepPayment(true); | ||
}); | ||
}) | ||
.then(function () { | ||
this.orderReview(paymentType); | ||
}) | ||
.then(function () { | ||
this.orderResult(paymentType); | ||
|
||
}) | ||
.run(function () { | ||
test.done(); | ||
}); | ||
}); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,6 @@ mysql: | |
|
||
smtp: | ||
image: hipay/mailcatcher:1.0.0 | ||
ports: | ||
- "1095:80" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/app/code/community/Allopass/Hipay/Block/Checkout/Externaljs.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
/** | ||
* HiPay Fullservice SDK Magento 1 | ||
* | ||
* 2018 HiPay | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* @author HiPay <support.tpp@hipay.com> | ||
* @copyright 2018 HiPay | ||
* @license https://github.com/hipay/hipay-fullservice-sdk-magento1/blob/master/LICENSE.md | ||
*/ | ||
|
||
/** | ||
* | ||
* | ||
* @author HiPay <support.tpp@hipay.com> | ||
* @copyright Copyright (c) 2018 - HiPay | ||
* @license https://github.com/hipay/hipay-fullservice-sdk-magento1/blob/master/LICENSE.md | ||
* @link https://github.com/hipay/hipay-fullservice-sdk-magento1 | ||
*/ | ||
class Allopass_Hipay_Block_Checkout_Externaljs extends Mage_Core_Block_Template | ||
{ | ||
|
||
/** | ||
* @return mixed | ||
* @throws Mage_Core_Model_Store_Exception | ||
*/ | ||
public function fingerprintEnabled() | ||
{ | ||
return $this->getConfig()->isFingerprintEnabled(Mage::app()->getStore()); | ||
} | ||
|
||
/** | ||
* @return mixed | ||
* @throws Mage_Core_Model_Store_Exception | ||
*/ | ||
public function sdkJsNeeded() | ||
{ | ||
return $this->getConfig()->isPaymentMethodActivated('hipay_cc', Mage::app()->getStore()) | ||
|| $this->getConfig()->isPaymentMethodActivated('hipay_ccxtimes', Mage::app()->getStore()) | ||
|| $this->getConfig()->isPaymentMethodActivated('hipay_hostedfields', Mage::app()->getStore()); | ||
} | ||
|
||
/** | ||
* @return mixed | ||
* @throws Mage_Core_Model_Store_Exception | ||
*/ | ||
public function getFingerPrintJs() | ||
{ | ||
return $this->getConfig()->getFingerPrintJsUrl(Mage::app()->getStore()); | ||
} | ||
|
||
/** | ||
* @return mixed | ||
* @throws Mage_Core_Model_Store_Exception | ||
*/ | ||
public function getSdkJs() | ||
{ | ||
return $this->getConfig()->getSdkJsUrl(Mage::app()->getStore()); | ||
} | ||
|
||
/** | ||
* | ||
* @return Allopass_Hipay_Model_Config | ||
*/ | ||
protected function getConfig() | ||
{ | ||
return Mage::getSingleton('hipay/config'); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/app/code/community/Allopass/Hipay/Block/Checkout/Fingerprint.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* HiPay Fullservice SDK Magento 1 | ||
* | ||
* 2018 HiPay | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* @author HiPay <support.tpp@hipay.com> | ||
* @copyright 2018 HiPay | ||
* @license https://github.com/hipay/hipay-fullservice-sdk-magento1/blob/master/LICENSE.md | ||
*/ | ||
|
||
/** | ||
* | ||
* | ||
* @author HiPay <support.tpp@hipay.com> | ||
* @copyright Copyright (c) 2018 - HiPay | ||
* @license https://github.com/hipay/hipay-fullservice-sdk-magento1/blob/master/LICENSE.md | ||
* @link https://github.com/hipay/hipay-fullservice-sdk-magento1 | ||
*/ | ||
class Allopass_Hipay_Block_Checkout_Fingerprint extends Mage_Core_Block_Template | ||
{ | ||
protected function _construct() | ||
{ | ||
parent::_construct(); | ||
$this->setTemplate('hipay/checkout/fingerprint.phtml'); | ||
} | ||
} |
Oops, something went wrong.