PHP code example of softc / evotor-mobile-cashier
1. Go to this page and download the library: Download softc/evotor-mobile-cashier library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
softc / evotor-mobile-cashier example snippets
oftC\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);