Skip to content

Commit

Permalink
Fixes paymentOptions hook for PrestaShop 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
olance committed Apr 22, 2020
1 parent 43caad5 commit a0a4c90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion alma/controllers/hook/paymentOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ public function run($params)
}
}

$forEUComplianceModule = $params['for_eu_compliance_module'];
$forEUComplianceModule = false;
if (array_key_exists('for_eu_compliance_module', $params)) {
$forEUComplianceModule = $params['for_eu_compliance_module'];
}

$paymentOption = $this->createPaymentOption(
$forEUComplianceModule,
sprintf(AlmaSettings::getPaymentButtonTitle(), $n),
Expand Down

0 comments on commit a0a4c90

Please sign in to comment.