Skip to content

Commit

Permalink
COMDEVNL-1156 -- Some more bugfixes that popped up while working on 2…
Browse files Browse the repository at this point in the history
….2 and lower.
  • Loading branch information
maximj committed Jul 18, 2018
1 parent de17fab commit 4bf4a60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion catalog/controller/extension/payment/mollie/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function payment()

try {
$data = array(
"amount" => ["currency" => "EUR", "value" => (string)$amount],
"amount" => ["currency" => "EUR", "value" => (string)number_format($amount,2)],
"description" => $description,
"redirectUrl" => $return_url,
"webhookUrl" => $this->getWebhookUrl(),
Expand Down Expand Up @@ -221,6 +221,8 @@ public function payment()
if (strstr($this->session->data['language'], '-')) {
list ($language, $country) = explode('-', $this->session->data['language']);
$locale = strtolower($language) . '_' . strtoupper($country);
} else {
$locale = strtolower($this->session->data['language']) . '_' . strtoupper($this->session->data['language']);
}

if (!in_array($locale, $locales)) {
Expand Down

0 comments on commit 4bf4a60

Please sign in to comment.