Skip to content

Latest commit

 

History

History
27 lines (27 loc) · 842 Bytes

Readme.md

File metadata and controls

27 lines (27 loc) · 842 Bytes

Zatca Qr code microservice

Best choice if you have multiple projects that requires zatca qr code

created using SlimPhp , SallaApp / ZATCA and Symfony Validator

Installing and using

composer install
php -S localhost:8000 -t .

this service requires 5 parameters in the request

POST / HTTP/1.1
Content-Type: application/json
Accept: application/json # or text/html for qr code rendered image
Request-Body: 
{
    "SellerName": "test seller",
    "taxRecord": "123456cas",
    "bookingDate": "2021-12-31 04:31 PM",
    "total": 55.25,
    "vat": 7.20
}

Deploy

Copy project folder into your host, do the installation as shown, and you are done