Skip to content

Commit

Permalink
fix issue #229 payflexv4pos status request undefined index CurrencyAm…
Browse files Browse the repository at this point in the history
…ount
  • Loading branch information
mustapayev committed Aug 12, 2024
1 parent 1ce51a6 commit 2cd6f90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/pos_production.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
'gateway_endpoints' => [
'payment_api' => 'https://onlineodeme.vakifbank.com.tr:4443/VposService/v3/Vposreq.aspx',
'gateway_3d' => 'https://3dsecure.vakifbank.com.tr:4443/MPIAPI/MPI_Enrollment.aspx',
'query_api' => 'https://sanalpos.vakifbank.com.tr/v4/UIWebService/Search.aspx',
'query_api' => 'https://onlineodeme.vakifbank.com.tr:4443/UIService/Search.aspx',
],
],
'ziraat-vpos' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function mapStatusResponse(array $rawResponseData): array
$defaultResponse['order_status'] = $orderStatus;
$defaultResponse['transaction_type'] = $this->mapTxType($txResultInfo['TransactionType']);
$defaultResponse['currency'] = $this->mapCurrency($txResultInfo['AmountCode']);
$defaultResponse['first_amount'] = $this->formatAmount($txResultInfo['CurrencyAmount']);
$defaultResponse['first_amount'] = $this->formatAmount($txResultInfo['CurrencyAmount'] ?? $txResultInfo['Amount']);
$defaultResponse['capture_amount'] = null;
$defaultResponse['status'] = self::PROCEDURE_SUCCESS_CODE === $orderProcCode ? self::TX_APPROVED : self::TX_DECLINED;
$defaultResponse['error_code'] = self::PROCEDURE_SUCCESS_CODE !== $orderProcCode ? $txResultInfo['HostResultCode'] : null;
Expand Down

0 comments on commit 2cd6f90

Please sign in to comment.