ssanko/compari-trusted-shop

此包最新版本(1.0)没有可用的许可信息。

compari trusted shop 客户端

1.0 2024-10-01 12:05 UTC

This package is auto-updated.

Last update: 2024-10-01 12:06:47 UTC


README

此包为 Compari trusted shop 提供基本支持。

安装

$ composer require ssanko/compari-trusted-shop

使用

基本使用

try {
    $client = (new \Ssanko\Compari\TrustedShop('<apiKey>'))
        ->setEmail('somebody@example.com')
        ->addProduct('Product name 1', 'P123456');

    echo $client->createTrustedCode();
} catch (Exception $exception) {
  die($exception->getMessage());
}