diff --git a/src/Services/Gateways/CreditCard.php b/src/Services/Gateways/CreditCard.php index 1441d3f..ecd0eb8 100644 --- a/src/Services/Gateways/CreditCard.php +++ b/src/Services/Gateways/CreditCard.php @@ -57,7 +57,7 @@ protected static function getEnabledCurrencies() Country::MEXICO => 12, Country::ARGENTINA => 12, Country::CHILE => 12, - Country::URUGUAY => 12, + Country::URUGUAY => 6, ]; private $creditCardConfig; diff --git a/tests/Unit/Services/Gateways/CreditCardTest.php b/tests/Unit/Services/Gateways/CreditCardTest.php index 2830b4b..65752e1 100644 --- a/tests/Unit/Services/Gateways/CreditCardTest.php +++ b/tests/Unit/Services/Gateways/CreditCardTest.php @@ -387,12 +387,12 @@ public function testInstalmentsColombia() public function testInstalmentsUruguay() { $country = Country::URUGUAY; - $totalInstalments = 12; + $totalInstalments = 6; $exchange_rate = 1; $creditCard = $this->setupGateway($exchange_rate, new Config()); $instalmentsArray = $creditCard->getInstalmentsByCountry($country); $expectedInstalmentsArray = []; - for ($i = 1; $i <= 12; $i++) { + for ($i = 1; $i <= 6; $i++) { $expectedInstalmentsArray[$i] = $i; }