Use a default, in case the source payment plugin is misconfigured.
This commit is contained in:
parent
ad2376fe4e
commit
2c5c2ea5ee
1 changed files with 2 additions and 2 deletions
|
|
@ -132,8 +132,8 @@ sub transactionsNotifications {
|
||||||
my $defaultTemplate = 'bPz1yk6Y9uwMDMBcmMsSCg';
|
my $defaultTemplate = 'bPz1yk6Y9uwMDMBcmMsSCg';
|
||||||
if (@{ $gateways }) {
|
if (@{ $gateways }) {
|
||||||
my $firstGateway = $gateways->[0];
|
my $firstGateway = $gateways->[0];
|
||||||
$defaultNotificationGroup = $firstGateway->get('saleNotificationGroupId');
|
$defaultNotificationGroup ||= $firstGateway->get('saleNotificationGroupId');
|
||||||
$defaultTemplate = $firstGateway->get('receiptEmailTemplateId' );
|
$defaultTemplate ||= $firstGateway->get('receiptEmailTemplateId' );
|
||||||
foreach my $gateway (@{ $gateways }) {
|
foreach my $gateway (@{ $gateways }) {
|
||||||
my $properties = $gateway->get();
|
my $properties = $gateway->get();
|
||||||
delete $properties->{ saleNotificationGroupId };
|
delete $properties->{ saleNotificationGroupId };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue