Skip to content

Commit

Permalink
Merge branch 'hotfix/MOL-929'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Sep 14, 2022
2 parents 08275f5 + 5049867 commit 52ee664
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mollie-payments-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mollie Payments for WooCommerce
* Plugin URI: https://www.mollie.com
* Description: Accept payments in WooCommerce with the official Mollie plugin
* Version: 7.3.1
* Version: 7.3.2
* Author: Mollie
* Author URI: https://www.mollie.com
* Requires at least: 5.0
Expand Down
20 changes: 10 additions & 10 deletions src/Gateway/Voucher/VoucherModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ class VoucherModule implements ExecutableModule, ServiceModule

public function services(): array
{
return [
'voucher.defaultCategory' => function (ContainerInterface $container): string {
$paymentMethods = $container->get('gateway.paymentMethods');
$voucher = $paymentMethods['voucher'];
if($voucher){
return $voucher->voucherDefaultCategory();
}
return Voucher::NO_CATEGORY;
}
];
return [
'voucher.defaultCategory' => function (ContainerInterface $container): string {
$paymentMethods = $container->get('gateway.paymentMethods');
$voucher = isset($paymentMethods['voucher']) ? $paymentMethods['voucher'] : false;
if ($voucher) {
return $voucher->voucherDefaultCategory();
}
return Voucher::NO_CATEGORY;
}
];
}

/**
Expand Down

0 comments on commit 52ee664

Please sign in to comment.