Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.9.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennelandais committed Sep 12, 2018
2 parents a59cdb8 + 952fff0 commit dce446e
Show file tree
Hide file tree
Showing 20 changed files with 182 additions and 271 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ stages:
- build-test-2
- test-2
- clean-stack
- build
- analysis
- package
- build
- deploy
- sync

Expand Down Expand Up @@ -225,7 +225,7 @@ package:
- rm -Rf ./vendor && cp ./composer.json.dist ./composer.json && composer install && sh ./bin/deployment/packaging.sh
- mkdir $CI_COMMIT_REF_SLUG
- mkdir $CI_COMMIT_REF_SLUG/package
- cp ./dist/*.tgz $CI_COMMIT_REF_SLUG/package
- cp ./dist/*.tgz $CI_COMMIT_REF_SLUG/package/Allopass_Hipay-${CI_COMMIT_REF_SLUG}.tgz
- ./bin/deployment/deploy_project.sh
tags:
- pi-commerce-no-overlay
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 1.9.4

- Remove electronic signature from SDD
- [#141](https://github.com/hipay/hipay-fullservice-sdk-magento1/issues/141) Fix issue [#141] : Js iframe config bug
- [#140](https://github.com/hipay/hipay-fullservice-sdk-magento1/issues/140) Fix issue [#140] : Wrong method declaration

# Version 1.9.3

- Fix : Change refund workflow
Expand Down
2 changes: 1 addition & 1 deletion bin/deployment/deploy_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo "\nCreate Artifact project for project $CI_PROJECT_NAME and branch $CI_COMM
sshpass -p $PASS_DEPLOY ssh [email protected] -p $PORT_SSH_DOCKER -o StrictHostKeyChecking=no mkdir /deploy/project/artifactory/$CI_JOB_ID

echo "\nTransfert Artifact project for project $CI_PROJECT_NAME and branch $CI_COMMIT_REF_SLUG"
sshpass -p $PASS_DEPLOY scp -P $PORT_SSH_DOCKER -o StrictHostKeyChecking=no ./dist/*.tgz [email protected]:/deploy/project/artifactory/$CI_JOB_ID
sshpass -p $PASS_DEPLOY scp -P $PORT_SSH_DOCKER -o StrictHostKeyChecking=no ./$CI_COMMIT_REF_SLUG/package/*.tgz [email protected]:/deploy/project/artifactory/$CI_JOB_ID

echo "\nDeploy project in artifactory"
docker exec $(docker ps | grep common-artifactory| awk '{print $1}') /tmp/jfrog rt u /deploy/project/artifactory/$CI_JOB_ID/*.tgz $CI_PROJECT_NAME/snapshot/ \
Expand Down
64 changes: 64 additions & 0 deletions bin/tests/004_SEPA/1_frontend/0400-SEPA_FRONTEND.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**********************************************************************************************
*
* VALIDATION TEST METHOD : SEPA DIRECT DEBIT
*
* To launch test, please pass two arguments URL (BASE URL) and TYPE_CC ( CB,VI,MC )
*
/**********************************************************************************************/

var paymentType = "HiPay Enterprise SEPA Direct Debit";

casper.test.begin('Test Checkout ' + paymentType, function (test) {
phantom.clearCookies();

casper.start(baseURL + "admin/")
.then(function () {
this.logToBackend();
method.proceed(test, paymentType, "sdd");
})
.thenOpen(baseURL, function () {
this.waitUntilVisible('div.footer', function success() {
this.selectItemAndOptions();
}, function fail() {
test.assertVisible("div.footer", "'Footer' exists");
}, 10000);
})
.then(function () {
this.addItemGoCheckout();
})
.then(function () {
this.checkoutMethod();
})
.then(function () {
this.billingInformation();
})
.then(function () {
this.shippingMethod();
})
.then(function () {
this.choosingPaymentMethod('method_hipay_sdd');
})
.then(function() {
this.echo("Filling payment formular sdd ", "INFO");
this.fillSelectors('form#co-payment-form', {
'select[name="payment[cc_gender]"]': "M",
'input[name="payment[cc_firstname]"]': "TEST",
'input[name="payment[cc_lastname]"]': "TEST",
'input[name="payment[cc_iban]"]': ibanNumber.gb,
'input[name="payment[cc_code_bic]"]': bicNumber.gb,
'input[name="payment[cc_bank_name]"]': "BANK TEST"
}, false);
this.click("div#payment-buttons-container>button");
test.info("Done");
})
.then(function () {
this.orderReview(paymentType);
})
.then(function () {
test.info("Done");
this.orderResult(paymentType);
})
.run(function () {
test.done();
});
});

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
'license' => 'General Public License (GPL)',
'channel' => 'community',

'author_name' => 'Kassim Belghait',
'author_user' => 'Sirateck',
'author_email' => 'kassim@sirateck.com',
'author_name' => 'HiPay',
'author_user' => 'HiPay',
'author_email' => 'support.tpp@hipay.com',

'base_dir' => __DIR__.'/dist',
'archive_files' => 'Allopass_Hipay.tar',
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ services:
- ./bin/docker/conf/acceptance/hipay.env.sample
- ./bin/docker/conf/acceptance/mage.env.sample
- ./bin/docker/conf/acceptance/mysql.env.sample
labels:
- "com.hipay.ir.publish=1"
- "com.hipay.ir.name=web"
- "com.hipay.ir.branch=${CI_COMMIT_REF_SLUG}"
- "com.hipay.ir.gitlab.feature.link=${CI_PROJECT_URL}/tree/${CI_COMMIT_REF_NAME}"
- "com.hipay.ir.gitlab.org=pi-ecommerce"
- "com.hipay.ir.gitlab.project=hipay-fullservice-sdk-magento1"
- "com.hipay.ir.admin.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com/admin"
- "com.hipay.ir.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
deploy:
labels:
- "traefik.frontend.rule=Host:${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}.hipay-pos-platform.com"
Expand Down Expand Up @@ -68,6 +77,14 @@ services:
delay: 30s
restart_policy:
condition: on-failure
labels:
- "com.hipay.ir.publish=1"
- "com.hipay.ir.name=mail"
- "com.hipay.ir.branch=${CI_COMMIT_REF_SLUG}"
- "com.hipay.ir.gitlab.feature.link=${CI_PROJECT_URL}/tree/${CI_COMMIT_REF_NAME}"
- "com.hipay.ir.gitlab.org=pi-ecommerce"
- "com.hipay.ir.gitlab.project=hipay-fullservice-sdk-magento1"
- "com.hipay.ir.url=${DOCKER_STACK}-${DOCKER_SERVICE}-${CI_COMMIT_REF_SLUG}-mail.hipay-pos-platform.com"
networks:
traefik_traefik:
magento:
Expand Down
2 changes: 1 addition & 1 deletion magento.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if [ "$1" = '' ] || [ "$1" = '--help' ]; then
echo " - notif : Simulate a notification to Magento server"
echo ""
elif [ "$1" = 'init' ]; then
if [ -f ./bin/conf/development/hipay.env ]; then
if [ -f ./bin/docker/conf/development/hipay.env ]; then


docker-compose -f docker-compose.dev.yml stop
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sonar.projectKey=hipay-fullservice-sdk-magento1
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=HiPay Fullservice extension for Magento v1
sonar.projectVersion=1.9.3
sonar.projectVersion=1.9.4

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_ListDisabled exten
* @param Varien_Data_Form_Element_Abstract $element
* @return string
*/
protected function _getElementHtml($element)
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
$element->setDisabled('disabled');
return parent::_getElementHtml($element);
Expand Down
17 changes: 13 additions & 4 deletions src/app/code/community/Allopass/Hipay/Block/Form/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,22 @@ protected function allowUseOneClick()
public function getIframeConfig()
{
$iframe = array();
$iframe['iframe_width'] = $this->getMethod()->getConfigData('iframe_width');
$iframe['iframe_height'] = $this->getMethod()->getConfigData('iframe_height');
$iframe['iframe_style'] = $this->getMethod()->getConfigData('iframe_style');
$iframe['iframe_wrapper_style'] = $this->getMethod()->getConfigData('iframe_style');
$iframe['iframe_width'] = $this->getMethodConfigData('iframe_width');
$iframe['iframe_height'] = $this->getMethodConfigData('iframe_height');
$iframe['iframe_style'] = $this->getMethodConfigData('iframe_style');
$iframe['iframe_wrapper_style'] = $this->getMethodConfigData('iframe_style');
return $iframe;
}

protected function getMethodConfigData($code, $default = "")
{
if ($this->getMethod()->getConfigData($code) !== null) {
return $this->getMethod()->getConfigData($code);
}

return $default;
}

/**
* Render block HTML
*
Expand Down
Loading

0 comments on commit dce446e

Please sign in to comment.