softc/evotor-mobile-cashier

Provides access to Evotor Mobile Cashier API

v1.0.0 2024-05-22 07:32 UTC

This package is auto-updated.

Last update: 2024-11-22 08:49:59 UTC


README

Evotor's MobileCashier REST API Client.

Installation

Recommended method: Composer:

$ composer require softc/evotor-mobile-cashier

Usage

Initialize and create receipt:

<?php

require 'vendor/autoload.php';

use SoftC\Evotor\MobileCashier\Client;
use SoftC\Evotor\MobileCashier\Data\Receipt;

$client = new Client(<UserId>);

$positions = [];    // instances of SoftC\Evotor\MobileCashier\Data\Position
$receipt = new Receipt('4e34ac31-ae28-4f52-be00-e6af9383343a', positions);

$response = $client->create($receipt);
var_dump($response);

License

See LICENSE file.