elliot9/e-invoice-qrcode-hash

There is no license information available for the latest version (dev-master) of this package.

dev-master 2020-07-03 07:42 UTC

This package is auto-updated.

Last update: 2024-09-29 05:55:45 UTC


README

Install

  composer require elliot9/e-invoice-qrcode-hash

Configuration

add all of the following classes to your config/app.php service providers list.

  Elliot9\EInvoiceQRcodeHash\EInvoiceQRcodeHashServiceProvider::class

and add this below the aliases

  'QRcodeHash' => Elliot9\EInvoiceQRcodeHash\QRHashFacade::class

Publish the storage configuration file

  php artisan vendor:publish --provider="Elliot9\EInvoiceQRcodeHash\EInvoiceQRcodeHashServiceProvider" --tag="config"

Set Your Hash Key in config. (電子發票QRcode HashSeed 32碼)

    //EIN.php
    'HASH_KEY' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

Usage

    //傳入發票號碼(10碼) & 發票隨機碼(4碼)
    $AES = QRcodeHash::AES('AB00000001','1234');