Skip to content

Commit

Permalink
Release 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarBoljanovic committed Dec 5, 2023
1 parent a65fb8a commit 10f69af
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ We strongly encourage you to join us in contributing to this repository so every
Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how.

## Requirements
This plugin supports PrestaShop versions 1.7.5.0 and up.
This plugin supports PrestaShop versions 1.7.5.0 to 8.1.2.

## Documentation
Please find the relevant documentation for
Expand Down
10 changes: 5 additions & 5 deletions src/adyenofficial.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public function __construct()
{
$this->name = 'adyenofficial';
$this->tab = 'payments_gateways';
$this->version = '5.0.9';
$this->version = '5.1.0';

$this->author = $this->l('Adyen');
$this->need_instance = 0;
$this->ps_versions_compliancy = ['min' => '1.7.5.0', 'max' => _PS_VERSION_];
$this->ps_versions_compliancy = ['min' => '1.7.5.0', 'max' => '8.1.2'];
$this->bootstrap = true;

parent::__construct();
Expand Down Expand Up @@ -1393,11 +1393,11 @@ private function displayTabContent(int $orderId): string
$transactionDetails = \AdyenPayment\Classes\Services\TransactionDetailsHandler::getTransactionDetails($order);

$reversedDetails = array_reverse($transactionDetails);
$authorisationDetail = $reversedDetails[array_search(
$authorisationDetail = !empty($reversedDetails) ? $reversedDetails[array_search(
\Adyen\Webhook\EventCodes::AUTHORISATION,
array_column($reversedDetails, 'eventCode'),
true
)];
)] : [];

$lastDetail = end($transactionDetails);
$generalSettings = \Adyen\Core\BusinessLogic\AdminAPI\AdminAPI::get()->generalSettings((string)\Context::getContext()->shop->id)->getGeneralSettings();
Expand All @@ -1424,7 +1424,7 @@ private function displayTabContent(int $orderId): string
'orderId' => $orderId,
'adyenLink' => $authorisationDetail['viewOnAdyenUrl'] ?? '',
'refundSupported' => $authorisationDetail['refund'] ?? false,
'adyenPaymentLink' => $authorisationDetail['paymentLink'],
'adyenPaymentLink' => $authorisationDetail['paymentLink'] ?? '',
'adyenGeneratePaymentLink' => $this->getAction('AdyenPaymentLink', 'generatePaymentLink', ['ajax' => true]),
'shouldDisplayPaymentLink' => $authorisationDetail['displayPaymentLink'] ?? false,
'isAdyenOrder' => $order->module === $this->name,
Expand Down
2 changes: 1 addition & 1 deletion src/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"php": "^7.2|^7.4|^8.0",
"ext-json": "*",
"ext-zip": "*",
"adyen/integration-core": "dev-cr-04",
"adyen/integration-core": "1.1.0",
"ext-simplexml": "*",
"ext-openssl": "*"
},
Expand Down
16 changes: 7 additions & 9 deletions src/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/views/templates/front/stored-methods.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</button>
</div>
<div class="modal-body">
<label> {l s='Are you sure you want to delete this stored credit card?' mod='adyenofficial'} </label>
<label> {l s='Are you sure you want to delete this stored payment method?' mod='adyenofficial'} </label>
<div class="adyen-modal-error-container adyen-hidden">
<label>{l s='Disable action could not be processed, invalid request.' mod='adyenofficial'} </label>
</div>
Expand Down

0 comments on commit 10f69af

Please sign in to comment.