软通/evotor-mobile-cashier

提供对Evotor Mobile Cashier API的访问

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

This package is auto-updated.

Last update: 2024-09-22 08:27:35 UTC


README

Evotor的MobileCashier REST API客户端。

安装

推荐方法: Composer

$ composer require softc/evotor-mobile-cashier

使用

初始化并创建收据

<?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文件。