Skip to content

Commit

Permalink
Release 2.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Feb 1, 2024
1 parent 28a6cc2 commit 3439604
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Model/PaymentMethodConfigurationManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private function hasConfigurationChanged(\Wallee\Sdk\Model\PaymentMethodConfigur
*/
private function extractImagePath($resolvedImageUrl)
{
$index = \strpos($resolvedImageUrl, 'resource/');
$index = \strpos($resolvedImageUrl ?? '', 'resource/');
return \substr($resolvedImageUrl, $index + \strlen('resource/'));
}

Expand All @@ -377,4 +377,4 @@ private function toConfigurationState($state)
return PaymentMethodConfiguration::STATE_HIDDEN;
}
}
}
}
4 changes: 2 additions & 2 deletions Model/TransactionInfoManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private function getPaymentMethodImage(Transaction $transaction, Order $order)
*/
private function extractImagePath($resolvedImageUrl)
{
$index = \strpos($resolvedImageUrl, 'resource/');
$index = \strpos($resolvedImageUrl ?? '', 'resource/');
return \substr($resolvedImageUrl, $index + \strlen('resource/'));
}
}
}
4 changes: 2 additions & 2 deletions Model/Webhook/Listener/AbstractOrderRelatedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ protected function getInvoiceForTransaction(Transaction $transaction, Order $ord
{
foreach ($order->getInvoiceCollection() as $invoice) {
/** @var Invoice $invoice */
if (\strpos($invoice->getTransactionId(), $transaction->getLinkedSpaceId() . '_' . $transaction->getId()) ===
if (\strpos($invoice->getTransactionId() ?? '', $transaction->getLinkedSpaceId() . '_' . $transaction->getId()) ===
0 && $invoice->getState() != Invoice::STATE_CANCELED) {
$invoice->load($invoice->getId());
return $invoice;
}
}
}
}
}
4 changes: 2 additions & 2 deletions Observer/SubmitQuote.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private function getInvoiceForTransaction(Order $order)
{
foreach ($order->getInvoiceCollection() as $invoice) {
/** @var Invoice $invoice */
if (\strpos($invoice->getTransactionId(),
if (\strpos($invoice->getTransactionId() ?? '',
$order->getWalleeSpaceId() . '_' . $order->getWalleeTransactionId()) ===
0 && $invoice->getState() != Invoice::STATE_CANCELED) {
$invoice->load($invoice->getId());
Expand All @@ -264,4 +264,4 @@ private function getInvoiceForTransaction(Order $order)
}
}

}
}
4 changes: 2 additions & 2 deletions Plugin/Payment/Model/Method/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(ObjectManagerInterface $objectManager)
*/
public function beforeCreate(\Magento\Payment\Model\Method\Factory $subject, $classname, $data = [])
{
if (strpos($classname, 'wallee_payment::') === 0) {
if (strpos($classname ?? '', 'wallee_payment::') === 0) {
$configurationId = \substr($classname, \strlen('wallee_payment::'));
$data['code'] = 'wallee_payment_' . $configurationId;
$data['paymentMethodConfigurationId'] = $configurationId;
Expand Down Expand Up @@ -80,4 +80,4 @@ private function getValueHandlerPool($configurationId)
'handler' => $valueHandler
]);
}
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This repository contains the Magento 2 extension that enables to process payment

## Documentation

* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html)


## Support
Expand All @@ -37,4 +37,4 @@ We do provide special integrations for the following one step checkouts:

## License

Please see the [license file](https://github.com/wallee-payment/magento-2/blob/2.1.9/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/magento-2/blob/2.1.10/LICENSE) for more information.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"type" : "magento2-module",
"version" : "2.1.9",
"version" : "2.1.10",
"require" : {
"php" : "~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.0||~8.1",
"magento/framework" : "^102.0.0||^103.0.0",
Expand Down
5 changes: 3 additions & 2 deletions docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="keywords" value="wallee, Magento 2, Magento Extension, Payment, Payment Integration, Documentation"><meta name="description" value="The documentation for the Magento 2 extension that enables processing payments with wallee."> <link rel="canonical" href="https://plugin-documentation.wallee.com/wallee-payment/magento-2/master/docs/en/documentation.html" />
<meta name="keywords" value="wallee, Magento 2, Magento Extension, Payment, Payment Integration, Documentation"><meta name="description" value="The documentation for the Magento 2 extension that enables processing payments with wallee.">
<link rel="canonical" href="https://plugin-documentation.weareplanet.com/weareplanet/opencart-3.0/1.0.57/docs/en/documentation.html" />
<title>wallee Magento 2</title>
<link href="assets/monokai-sublime.css" rel="stylesheet" />
<link href="assets/base.css" rel="stylesheet" />
Expand All @@ -22,7 +23,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/magento-2/releases/tag/2.1.9/">
<a href="https://github.com/wallee-payment/magento-2/releases/tag/2.1.10/">
Source
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<resource>Wallee_Payment::config</resource>
<group id="information" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Information</label>
<comment><![CDATA[If you need help setting up the wallee extension, check out the <a href="https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html" target="_blank">documentation</a>.]]></comment>
<comment><![CDATA[If you need help setting up the wallee extension, check out the <a href="https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html" target="_blank">documentation</a>.]]></comment>
<field id="version" translate="label" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Module Version</label>
</field>
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<default>
<wallee_payment>
<information>
<version>2.1.9</version>
<version>2.1.10</version>
<sdk_version>4.0.2</sdk_version>
</information>
<general>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Wallee_Payment" setup_version="2.1.9">
<module name="Wallee_Payment" setup_version="2.1.10">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down
2 changes: 1 addition & 1 deletion i18n/de_DE.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Gift Wrap","Geschenkverpackung"
"Hold Delivery","Lieferung halten"
"ID required","ID erforderlich"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Falls Sie Hilfe benötigen beim Einrichten der wallee-Erweiterung, sehen Sie sich die <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">Dokumentation</a> an."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Falls Sie Hilfe benötigen beim Einrichten der wallee-Erweiterung, sehen Sie sich die <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">Dokumentation</a> an."
"Inactive","Inaktiv"
"Information","Informationen"
"Invoice","Rechnung"
Expand Down
2 changes: 1 addition & 1 deletion i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Gift Wrap","Gift Wrap"
"Hold Delivery","Hold Delivery"
"ID required","ID required"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>.","If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>.","If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>."
"Inactive","Inactive"
"Information","Information"
"Invoice","Invoice"
Expand Down
2 changes: 1 addition & 1 deletion i18n/fr_CH.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Gift Wrap","Papier cadeau"
"Hold Delivery","Suspendre la livraison"
"ID required","Pièce d'identité requise"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Si vous avez besoin d'aide pour configurer l'extension wallee, consultez la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a> an."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Si vous avez besoin d'aide pour configurer l'extension wallee, consultez la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a> an."
"Inactive","Inactif"
"Information","Information"
"Invoice","Facture"
Expand Down
2 changes: 1 addition & 1 deletion i18n/fr_FR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Gift Wrap","Papier cadeau"
"Hold Delivery","Suspendre la livraison"
"ID required","Pièce d'identité requise"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Si vous avez besoin d'aide pour configurer l'extension wallee, consultez la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a> an."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Si vous avez besoin d'aide pour configurer l'extension wallee, consultez la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a> an."
"Inactive","Inactif"
"Information","Information"
"Invoice","Facture"
Expand Down
2 changes: 1 addition & 1 deletion i18n/it_CH.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Gift Wrap","Confezione regalo"
"Hold Delivery","Sospendi la consegna"
"ID required","ID richiesto"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Se hai bisogno di aiuto per configurare l'estensione wallee, consulta la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentazione</a> an."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Se hai bisogno di aiuto per configurare l'estensione wallee, consulta la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentazione</a> an."
"Inactive","Inattivo"
"Information","Informazione"
"Invoice","Fattura"
Expand Down
2 changes: 1 addition & 1 deletion i18n/it_IT.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Gift Wrap","Confezione regalo"
"Hold Delivery","Sospendi la consegna"
"ID required","ID richiesto"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Se hai bisogno di aiuto per configurare l'estensione wallee, consulta la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.9/docs/en/documentation.html"" target=""_blank"">documentazione</a> an."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Se hai bisogno di aiuto per configurare l'estensione wallee, consulta la <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2/2.1.10/docs/en/documentation.html"" target=""_blank"">documentazione</a> an."
"Inactive","Inattivo"
"Information","Informazione"
"Invoice","Fattura"
Expand Down

0 comments on commit 3439604

Please sign in to comment.