emizoripx / prepago-bags
shop prepago-bags in emizor5
v1.4.1
2024-04-03 21:27 UTC
Requires
- emizoripx/payment-qr-bcp: ^1.1
- dev-master
- v1.4.1
- v1.4.0.1
- v1.4.0
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.43
- v1.2.42
- v1.2.41
- v1.2.40
- v1.2.39
- v1.2.38
- v1.2.37
- v1.2.36
- v1.2.35
- v1.2.34
- v1.2.33
- v1.2.32
- v1.2.31
- v1.2.30
- v1.2.29
- v1.2.28
- v1.2.27
- v1.2.26
- v1.2.25
- v1.2.24
- v1.2.23
- v1.2.22
- v1.2.21
- v1.2.20
- v1.2.19
- v1.2.18
- v1.2.17
- v1.2.16
- v1.2.15
- v1.2.14
- v1.2.13
- v1.2.12
- v1.2.11
- v1.2.10
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-develop
- dev-changes-terminal
- dev-upgrade-plan-fix
- dev-fixed-postpago
- dev-certificacion_dos
- dev-fixed-activity-pdf
- dev-master-v1
- dev-E5-955
- dev-E5-952
- dev-E5-928
- dev-E5-792
- dev-E5-756
- dev-E5-681
This package is auto-updated.
Last update: 2025-01-03 23:00:44 UTC
README
Library to manage prepago-bags in emizor5
Api routes
-
Add prepago-bags routes in
routes/api.php
use EmizorIpx\PrepagoBags\routes\PrepagoBags; ... PrepagoBags::routes();
Append Bags in FelData
- Added method to insert bags in fel_data
App\Http\Controllers\BaseController
<?php namespace App\Http\Controllers; use EmizorIpx\PrepagoBags\Utils\Presenter as UtilsPresenter; class BaseController extends Controller { protected function response($response) { ... if ($index == 'none') { ... } else { ... if (request()->include_fel_data) { ... $response = UtilsPresenter::appendBagsFelData($response); } } ... } }
Added exception in shop
- Added exception in invoice emit in shop
App\Http\Controllers\Shop\InvoiceController.php
<?php namespace App\Http\Controllers; class InvoiceController extends BaseController { ... // EMIZOR-INVOICE-INSERT try { $invoice->emit(); } catch (Exception $ex) { return response(['message' => $ex->getMessage()]);; } ... } }