From 877a0d393a81f87ce2871c5942b4bb5cdda5f7d5 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:32:01 -0500 Subject: [PATCH] up --- app/Http/Livewire/ShowRecargas.php | 2 +- resources/views/livewire/show-recargas.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/ShowRecargas.php b/app/Http/Livewire/ShowRecargas.php index f15aab2..d664dd8 100755 --- a/app/Http/Livewire/ShowRecargas.php +++ b/app/Http/Livewire/ShowRecargas.php @@ -27,7 +27,7 @@ class ShowRecargas extends Component $this->referencia = Str::random(20); - $this->monto = ((($recharge * 0.03) + 700) * 0.19) + (($recharge * 0.03) + 700) + $recharge; + $this->monto = (int) ceil(((($recharge * 0.03) + 700) * 0.19) + (($recharge * 0.03) + 700) + $recharge); $recargas = new recarga; $recargas->monto = $this->monto; diff --git a/resources/views/livewire/show-recargas.blade.php b/resources/views/livewire/show-recargas.blade.php index 027c40e..2307d19 100755 --- a/resources/views/livewire/show-recargas.blade.php +++ b/resources/views/livewire/show-recargas.blade.php @@ -21,7 +21,7 @@ $item = new MercadoPago\Item(); $item->title = 'Recarga SrPremium'; $item->quantity = 1; - $item->unit_price = $monto; + $item->unit_price = (int) ceil($monto); // Restricción de métodos de pago (excluir tarjetas de crédito) $payment_methods = new MercadoPago\PaymentMethod();