Skip to content

Commit

Permalink
Merge pull request #51 from elisei/Magento@2.4.6
Browse files Browse the repository at this point in the history
Magento@2.4.6
  • Loading branch information
elisei committed Feb 1, 2024
2 parents 743c4ea + 2645b2e commit 6e27e11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Api/TwoCc/GuestTwoCcInterestManagementInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function generateGetnetTwoInterest(
$cartId,
\Getnet\PaymentMagento\Api\TwoCc\Data\AmountForCalcInterface $amountForCalc,
\Getnet\PaymentMagento\Api\TwoCc\Data\IdxInTwoCcInterface $idxInTwoCc,
\Getnet\PaymentMagento\Api\TwoCc\Data\TwoCcInstallmentInterface $twoCcInstallment,
\Getnet\PaymentMagento\Api\TwoCc\Data\TwoCcInstallmentInterface $twoCcInstallment
);
}
2 changes: 1 addition & 1 deletion Api/TwoCc/TwoCcInterestManagementInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function generateGetnetTwoInterest(
$cartId,
\Getnet\PaymentMagento\Api\TwoCc\Data\AmountForCalcInterface $amountForCalc,
\Getnet\PaymentMagento\Api\TwoCc\Data\IdxInTwoCcInterface $idxInTwoCc,
\Getnet\PaymentMagento\Api\TwoCc\Data\TwoCcInstallmentInterface $twoCcInstallment,
\Getnet\PaymentMagento\Api\TwoCc\Data\TwoCcInstallmentInterface $twoCcInstallment
);
}
4 changes: 3 additions & 1 deletion Gateway/Http/Client/Card/CreateClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ public function placeRequest(TransferInterface $transferObject)
);

$status = isset($responseBody['payment_id']) ? 1 : 0;
$denied = ($responseBody['status'] !== 'DENIED') ? 1 : 0;

$response = array_merge(
[
self::RESULT_CODE => $status,
self::RESULT_CODE => (!$denied) ? $status : 0,
self::EXT_ORD_ID => isset($responseBody['payment_id']) ? $responseBody['payment_id'] : null,
],
$responseBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public function build(array $buildSubject)
self::PAYMENT_METHOD => 'CREDIT_AUTHORIZATION',
];
}
}
}

0 comments on commit 6e27e11

Please sign in to comment.