diff --git a/src/app/components/pago/pago.component.html b/src/app/components/pago/pago.component.html index c4f11c4..fd25909 100644 --- a/src/app/components/pago/pago.component.html +++ b/src/app/components/pago/pago.component.html @@ -27,7 +27,9 @@
Efectivo
diff --git a/src/app/components/pago/pago.component.ts b/src/app/components/pago/pago.component.ts index 32afe33..7bf41f0 100644 --- a/src/app/components/pago/pago.component.ts +++ b/src/app/components/pago/pago.component.ts @@ -31,6 +31,15 @@ export class PagoComponent implements OnInit { this.productos = this.productoService.productos; } + pagoEfectivo() { + + this.compraConEfectivofinalizada = true; + setTimeout(() => { + + this.router.navigate(['mensaje-final']); + }, 3000); + } + pagar() { this.verQR = true; @@ -38,7 +47,7 @@ export class PagoComponent implements OnInit { this.productoService.pagar() .subscribe(() => { - + // alert('Compra finalizada'); this.compraConQRfinalizada = true; setTimeout(() => {