Skip to content

Commit

Permalink
Release 5.8.0 (#188)
Browse files Browse the repository at this point in the history
* Fix gift products only for 1.7.5
refs #34471

* refs #35787 fixbug. wrong order status

* version

* refs #35926 the typo in an upgrade script

* refs #35853 webhook functionality. customization of the order status

* refs #35989
Fix prices sent in HT when group displaying price HT

* version

* refs #35967 missing transaction id

* refs #35927 webhook functionality. Check the event state

* refs #36106
Fix round total on handlings discounts

* refs #36276 webhook functionality. necessity of the employee in context

* small fix

* refs #36159 shortcut on signup page

* small fix

* refs #36457 webhookfunctionality. small fix

* refs #35927 webhooks. order status managing

* module version

* refs #35623 tracking info

* module version

* refs #36733 white list. option enabled

* refs #36733 white list. option list of ips

* refs #36733 paypal availability according to the ip white list

* php-cs-fixer

* Update bug report issue form

* Fix exception thrown on confirmation page (#139)

* Fix exception thrown on confirmation page (#139)

* refs #37072 warning during order creation

* refs #34920 Payment via CB does not work in "IN CONTEXT" mode

* refs #36628 PUI. onboarding button

* webhook. small fix

* refs #37078 paypal checkout. sending address

* refs #37272 compatible with PS 8.0

* refs #37262 compatibility with PS8

* small fix

* compatibility with php 5.6

* small fix

* refs #37369 warnings

* phpstan

* Add lintner php 8.0 and 8.1 (#144)

Co-authored-by: bogdan202 <byampolskiy@202-ecommerce.com>

* refs #37416 warning during webhook-event handling

* refs #37569 option show benefits

* collate cause error during installation (#146)

* refs #37083 MySQL COLLATE causes an error during a module installation

* refs #37083 backward-compatibility.php

* refs #37083 phpcsfixer

* refs #35971 webhook notifications. response code

* refs #37360 IP white-list. style

* refs #35623 tracking info. paypal carriers by country (#148)

* module version

* refs #37735 webhook event handling. order state (#152)

* refs #37879 translations

* refs #35048 translations

* refs #37743 handling the exceptions (#153)

* translations

* refs #34923 use default status if customize one is not set (#155)

* Create SECURITY.md

* refs #37203 test for webhook event. types COMPLETED and PENDING

* refs #37203 unit test for webhook. refund and partial refund

* refs #37203 Readme.md

* refs #37203 unit tests for webhook. events: authorization.voided, capture.denied, capture.reversed

* refs #37203 github workflows

* refs #37203 small fix

* refs #38144 small fix

* refs #37203 test for completed event when a current order state is PS_OS_OUTOFSTOCK_UNPAID

* refs #37203 small modification in Readme.md

* license update

* refs #38341 the alias list for PrestaShop iso country codes (#164)

* Add TLS 1.3 checks (33017) (#160)

* refs #33017 tls verification

* small fix

* Define webhook unit tests (37203) (#158)

* refs #37203 test for webhook event. types COMPLETED and PENDING

* refs #37203 unit test for webhook. refund and partial refund

* refs #37203 Readme.md

* refs #37203 unit tests for webhook. events: authorization.voided, capture.denied, capture.reversed

* refs #37203 github workflows

* refs #37203 small fix

* refs #37203 test for completed event when a current order state is PS_OS_OUTOFSTOCK_UNPAID

* refs #37203 small modification in Readme.md

* refs #36734 test for a case #37743

* module version

* small fix

* composer json settings

* small fix

* Feature/38361 admin page message (#166)

* refs #38361 admin page message

* php-cs-fixer

* refs #38526 wrong paypal-metadata-id

* refs #38628 - FraudNet clientId
Add ClientId for FraudNet Form PUI

* refs #38649 mysql errors (#175)

* refs #38495 redirection mode

* refs #38685 compatibility with PS 8 (#178)

SQL error during updating/installation

* module version

* Feature/38360 card mark (#167)

* refs #38360 mark for credit card

* refs #38360 marks for paypal wallet and pay later

* refs #38360 small fix

* Feature/38495 put paypal button at end (#181)

* refs #38495 move paypal button at end of the page

* refs #38495 credit card

* refs #38495 translations

* php-cs-fixer

* refs #39105 js errors

* refs #38364 redirect mode for alternative method (#180)

* module version

* Payment buttons - on checkout loading (#183)

* refs #38495 - Payment buttons
Check if the conditions approved and enable buttons on payment selection
This is now done when checkbox is hit and when a payment is selected.

* refs #38495 - Payment buttons and loading
Fix BNPL is not correctly loading if payment method selected on loading.
Fix a template variables problem too

* refs #39439 fix typo

* refs #39442 js errors (#186)

* refs #39443 mobile view (#185)

* refs #39297 logo for giropay and sofort

* Add diagnostic tab (36732) (#161)

* refs #36732 diagnostic tab

* refs #36732 diagnostic tab

* ppbtlib. small modif

* refs #36732 diagnostic tab. verification of a  module version and md5 verification

* refs #36732 remove unuseful

* license

* license

* refs #36732 remove connect.tpl

* refs #36732 diagnostic tab. order states comparing

* refs #36732 script upgrade + adding known conflicts info

* refs #36732 order_state.tpl

* refs #36732 respository link

* refs #39445 deleted export button

* refs #39436 removed button "Help" on the Diagnostic page

* refs #39426 diagnostic tab is not visible

* refs #39549 refacto

* refs #39549 remover useless

* refs #39549 remove db optimization

* Update DatabaseStubHandler.php

* refs #39549 refacto

* module version

* Update CacheStorage.php

* refs #39426 error during update

* refs #39549

---------

Co-authored-by: Clotaire <52157233+clotairer@users.noreply.github.com>

---------

Co-authored-by: kgleizes <kgleizes@202-ecommerce.com>
Co-authored-by: Clotaire <52157233+clotairer@users.noreply.github.com>
Co-authored-by: Lorenz Meyer <lorenz@meyer.tl>
Co-authored-by: 202 ecommerce <202-ecommerce@users.noreply.github.com>
Co-authored-by: 202 - Kévin Gleizes <98040531+kgleizes@users.noreply.github.com>
  • Loading branch information
6 people authored Mar 31, 2023
1 parent 381c405 commit 943c971
Show file tree
Hide file tree
Showing 86 changed files with 7,232 additions and 17 deletions.
2 changes: 1 addition & 1 deletion 202/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<property name="src-dir" value="${basedir}" />
<property name="TARGETNAME" value="paypal" />
<property name="TARGETBRANCH" value="${env.GIT_BRANCH}" />
<property name="TARGETVERSION" value="5.7.7" />
<property name="TARGETVERSION" value="5.8.0" />
<property name="PHPVERSION" value="5.6" />
<property name="PSVERSION" value="1.7.5.2" />

Expand Down
26 changes: 26 additions & 0 deletions 202/phpunit_bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
<?php
/*
* 2007-2023 PayPal
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2023 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @copyright PayPal
*
*/


$basedir = '/var/www/html/';
require_once $basedir . 'config/config.inc.php';
Expand Down
26 changes: 26 additions & 0 deletions 202/tests/AbstractTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
<?php
/*
* 2007-2023 PayPal
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2023 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @copyright PayPal
*
*/


namespace PaypalTests;

Expand Down
26 changes: 26 additions & 0 deletions 202/tests/WebhookTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
<?php
/*
* 2007-2023 PayPal
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2023 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @copyright PayPal
*
*/


namespace PaypalTests;

Expand Down
40 changes: 40 additions & 0 deletions _dev/js/diagnostic/diagnostic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 2007-2023 PayPal
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2023 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @copyright PayPal
*
*/


import 'babel-polyfill';

import '~/prestakit/dist/js/prestashop-ui-kit';
import Common from './src/Classes/Common';
import Logs from './src/Classes/Logs';

$(() => {
const common = new Common();
common.init();

const logs = new Logs();
logs.init();
});
44 changes: 44 additions & 0 deletions _dev/js/diagnostic/src/Classes/Common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* 2007-2023 PayPal
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2023 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @copyright PayPal
*
*/

export default class Common {
init() {
this.registerEvents();
}

registerEvents() {
const self = this;

$('.card-header').on('click', (event) => {
const $target = $(event.currentTarget);

const $card = $target.closest('.card');

$card.find('.form-wrapper').toggleClass('d-none');
$card.find('.card-footer').toggleClass('d-none');
})
}
}
68 changes: 68 additions & 0 deletions _dev/js/diagnostic/src/Classes/Logs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* 2007-2023 PayPal
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2023 PayPal
* @author 202 ecommerce <tech@202-ecommerce.com>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @copyright PayPal
*
*/

import axios from 'axios';
import qs from 'qs';

export default class Logs {
init() {
this.registerEvents();
}

registerEvents() {
const self = this;

$('.paypal-collapse').on('click', (event) => {
event.preventDefault();
event.stopPropagation();
const $panelGroup = $(event.currentTarget).closest('.panel-group');
if (!$panelGroup.data('loaded')) {
this.loadLogs($panelGroup);
}

const $btn = $panelGroup.find('.paypal-collapse');
$panelGroup.find('[data-log-zone]').toggleClass('d-none');
$btn.find('a').toggleClass('collapsed');
});
}

async loadLogs($panelGroup) {
const $btn = $panelGroup.find('.paypal-collapse');
const url = window.paypal.actionLink;

const response = await axios.post(url, qs.stringify({
ajax: 1,
value: $btn.data('value'),
type: $btn.data('type'),
event: 'loadLogs',
}));

if (response.data.content) {
$panelGroup.find('[data-zone-content]').html(response.data.content);
}
$panelGroup.data('loaded', true);
}
}
Loading

0 comments on commit 943c971

Please sign in to comment.