Skip to content

Commit

Permalink
Release 1.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
edgaraswallee committed Jan 17, 2024
1 parent 080284b commit 09be5db
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 17 deletions.
4 changes: 3 additions & 1 deletion Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ private function listenFrontendHooks(Dispatcher $dispatcher, FrontendHandler $ha
$order = $args['oBestellung'] ?? [];
if ((int)$order->cStatus === \BESTELLUNG_STATUS_BEZAHLT) {
$order = new Bestellung($args['oBestellung']->kBestellung);

$paymentMethodEntity = new Zahlungsart((int)$order->kZahlungsart);
$paymentMethod = new Method($paymentMethodEntity->cModulId);
$moduleId = $paymentMethodEntity->cModulId ?? '';
$paymentMethod = new Method($moduleId);
$paymentMethod->setOrderStatusToPaid($order);

Shop::Container()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ account dashboard.

## Documentation

[Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/jtl-5/1.0.19/docs/en/documentation.html)
[Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/jtl-5/1.0.20/docs/en/documentation.html)

## License

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function updateOrderStatus(string $entityId): void
if ($orderId > 0) {
$order = new Bestellung($orderId);
$paymentMethodEntity = new Zahlungsart((int)$order->kZahlungsart);
$moduleId = new Method($paymentMethodEntity->cModulId) ?? '';
$moduleId = $paymentMethodEntity->cModulId ?? '';
$paymentMethod = new Method($moduleId);
$paymentMethod->cancelOrder($orderId);
}
Expand Down
3 changes: 2 additions & 1 deletion adminmenu/AdminTabProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public function createOrdersTab(int $menuID): string
$order = new Bestellung($orderId);

$paymentMethodEntity = new Zahlungsart((int)$order->kZahlungsart);
$paymentMethod = new Method($paymentMethodEntity->cModulId);
$moduleId = $paymentMethodEntity->cModulId ?? '';
$paymentMethod = new Method($moduleId);
$paymentMethod->setOrderStatusToPaid($order);
$incomingPayment = new stdClass();
$incomingPayment->fBetrag = -1 * floatval($amount);
Expand Down
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/jtl-5/releases/tag/1.0.19/">
<a href="https://github.com/pfpayments/jtl-5/releases/tag/1.0.20/">
Source
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Icon>logo.jpg</Icon>
<PluginID>jtl_postfinancecheckout</PluginID>
<CreateDate>2023-05-29</CreateDate>
<Version>1.0.19</Version>
<Version>1.0.20</Version>
<Install>
<Locales>
<Variable>
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit39b485e377e8f7811713b1fbf9c612ac::getLoader();
return ComposerAutoloaderInit2083d2aee1a8146bd3d84e2fb5421591::getLoader();
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit39b485e377e8f7811713b1fbf9c612ac
class ComposerAutoloaderInit2083d2aee1a8146bd3d84e2fb5421591
{
private static $loader;

Expand All @@ -24,12 +24,12 @@ public static function getLoader()

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInit39b485e377e8f7811713b1fbf9c612ac', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit2083d2aee1a8146bd3d84e2fb5421591', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit39b485e377e8f7811713b1fbf9c612ac', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit2083d2aee1a8146bd3d84e2fb5421591', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit39b485e377e8f7811713b1fbf9c612ac::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit2083d2aee1a8146bd3d84e2fb5421591::getInitializer($loader));

$loader->register(true);

Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit39b485e377e8f7811713b1fbf9c612ac
class ComposerStaticInit2083d2aee1a8146bd3d84e2fb5421591
{
public static $prefixLengthsPsr4 = array (
'W' =>
Expand Down Expand Up @@ -35,9 +35,9 @@ class ComposerStaticInit39b485e377e8f7811713b1fbf9c612ac
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit39b485e377e8f7811713b1fbf9c612ac::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit39b485e377e8f7811713b1fbf9c612ac::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit39b485e377e8f7811713b1fbf9c612ac::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit2083d2aee1a8146bd3d84e2fb5421591::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit2083d2aee1a8146bd3d84e2fb5421591::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit2083d2aee1a8146bd3d84e2fb5421591::$classMap;

}, null, ClassLoader::class);
}
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'db06ed79c3f185677bba7b74be6816d7935a67d2',
'reference' => 'c4e9a8ffbdca404c956aaf4d30db0ebf05d195e0',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'db06ed79c3f185677bba7b74be6816d7935a67d2',
'reference' => 'c4e9a8ffbdca404c956aaf4d30db0ebf05d195e0',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 09be5db

Please sign in to comment.