diff --git a/src/DataMapper/ResponseDataMapper/EstPosResponseDataMapper.php b/src/DataMapper/ResponseDataMapper/EstPosResponseDataMapper.php index 3ba9800d..abe05bee 100644 --- a/src/DataMapper/ResponseDataMapper/EstPosResponseDataMapper.php +++ b/src/DataMapper/ResponseDataMapper/EstPosResponseDataMapper.php @@ -130,7 +130,7 @@ public function map3DPaymentData(array $raw3DAuthResponseData, ?array $rawPaymen 'month' => $raw3DAuthResponseData['Ecom_Payment_Card_ExpDate_Month'], 'year' => $raw3DAuthResponseData['Ecom_Payment_Card_ExpDate_Year'], 'amount' => null !== $raw3DAuthResponseData['amount'] ? $this->formatAmount($raw3DAuthResponseData['amount']) : null, - 'currency' => $this->mapCurrency($raw3DAuthResponseData['currency']), + 'currency' => '*' === $raw3DAuthResponseData['currency'] ? null : $this->mapCurrency($raw3DAuthResponseData['currency']), 'installment_count' => $this->mapInstallment($raw3DAuthResponseData['taksit']), 'eci' => null, 'tx_status' => null, diff --git a/tests/Unit/DataMapper/ResponseDataMapper/EstPosResponseDataMapperTest.php b/tests/Unit/DataMapper/ResponseDataMapper/EstPosResponseDataMapperTest.php index f1c1945d..e34cab14 100644 --- a/tests/Unit/DataMapper/ResponseDataMapper/EstPosResponseDataMapperTest.php +++ b/tests/Unit/DataMapper/ResponseDataMapper/EstPosResponseDataMapperTest.php @@ -546,7 +546,7 @@ public static function threeDPaymentDataProvider(): array 'auth_code' => null, 'batch_num' => null, 'cavv' => null, - 'currency' => '*', + 'currency' => null, 'eci' => null, 'error_code' => 'HPP-1001', 'error_message' => 'Girilen kart numarası doğru formatta değildir. Kart numarasını kontrol ederek tekrar işlem deneyiniz.',