Fix hardcoded currency

This commit is contained in:
Benjamin Beganović 2020-06-12 16:32:00 +02:00
parent 71a3814973
commit 0186449794

View File

@ -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;