Skip to content

Commit

Permalink
estpos - fix currency mapping when value is *
Browse files Browse the repository at this point in the history
  • Loading branch information
mustapayev committed Oct 27, 2024
1 parent 6cd8a98 commit 593bcf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 593bcf7

Please sign in to comment.