softc/evotor-mobile-cashier

Provides access to Evotor Mobile Cashier API

v0.2.0 2022-05-01 09:34 UTC

This package is auto-updated.

Last update: 2024-04-21 09:47:36 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';

$client = new SoftC\Evotor\MobileCashier\Client(<UserId>);

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

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

License

See LICENSE file.