From 01864497940bef59bda58d9d9926241df9f42550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 12 Jun 2020 16:32:00 +0200 Subject: [PATCH] Fix hardcoded currency --- app/PaymentDrivers/CheckoutComPaymentDriver.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/PaymentDrivers/CheckoutComPaymentDriver.php b/app/PaymentDrivers/CheckoutComPaymentDriver.php index cf2c754a5454..b6f9a457b90f 100644 --- a/app/PaymentDrivers/CheckoutComPaymentDriver.php +++ b/app/PaymentDrivers/CheckoutComPaymentDriver.php @@ -77,8 +77,7 @@ class CheckoutComPaymentDriver extends BasePaymentDriver { $data['gateway'] = $this; $data['client'] = $this->client; - // $data['currency'] = $this->client->getCurrencyCode(); - $data['currency'] = 'EUR'; + $data['currency'] = $this->client->getCurrencyCode(); $data['value'] = $this->convertToCheckoutAmount($data['amount_with_fee'], $this->client->getCurrencyCode()); $data['raw_value'] = $data['amount_with_fee']; $data['customer_email'] = $this->client->present()->email;