From de2eb7fbb6e03fce5a4051da5fb5abae43a7df1d Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Tue, 10 Sep 2024 10:59:37 -0300 Subject: [PATCH] feat: update exception for mall installment method --- src/Webpay/TransaccionCompleta/MallTransaction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Webpay/TransaccionCompleta/MallTransaction.php b/src/Webpay/TransaccionCompleta/MallTransaction.php index 43a3dc2f..bfe2445a 100644 --- a/src/Webpay/TransaccionCompleta/MallTransaction.php +++ b/src/Webpay/TransaccionCompleta/MallTransaction.php @@ -13,7 +13,7 @@ use Transbank\Webpay\TransaccionCompleta\Exceptions\MallTransactionCreateException; use Transbank\Webpay\TransaccionCompleta\Exceptions\MallTransactionRefundException; use Transbank\Webpay\TransaccionCompleta\Exceptions\MallTransactionStatusException; -use Transbank\Webpay\TransaccionCompleta\Exceptions\TransactionInstallmentsException; +use Transbank\Webpay\TransaccionCompleta\Exceptions\MallTransactionInstallmentsException; use Transbank\Webpay\TransaccionCompleta\Responses\MallTransactionCommitResponse; use Transbank\Webpay\TransaccionCompleta\Responses\MallTransactionCreateResponse; use Transbank\Webpay\TransaccionCompleta\Responses\MallTransactionInstallmentsResponse; @@ -86,7 +86,7 @@ public function create( * @param string $token * @param array $details * - * @throws TransactionInstallmentsException + * @throws MallTransactionInstallmentsException * * @return MallTransactionInstallmentsResponse[] */ @@ -108,7 +108,7 @@ public function installments( return new MallTransactionInstallmentsResponse($response); }, $details); } catch (WebpayRequestException $exception) { - throw new TransactionInstallmentsException( + throw new MallTransactionInstallmentsException( $exception->getMessage(), $exception->getTransbankErrorMessage(), $exception->getHttpCode(),