ssanko / compari-trusted-shop
There is no license information available for the latest version (1.0.2) of this package.
Client for compari trusted shop
1.0.2
2025-01-13 11:35 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.5
README
This package provides basic support for Compari or Arukereso trusted shop.
Installation
$ composer require ssanko/compari-trusted-shop
Usage
Usage for Compari trusted shop:
try { $client = (new \Ssanko\Compari\TrustedShop('<apiKey>', new \Ssanko\Compari\Config\CompariConfig)) ->setEmail('somebody@example.com') ->addProduct('Product name 1', 'P123456'); echo $client->createTrustedCode(); } catch (Exception $exception) { die($exception->getMessage()); }
Usage for Arukereso trusted shop:
try { $client = (new \Ssanko\Compari\TrustedShop('<apiKey>', new \Ssanko\Compari\Config\ArukeresoConfig)) ->setEmail('somebody@example.com') ->addProduct('Product name 1', 'P123456'); echo $client->createTrustedCode(); } catch (Exception $exception) { die($exception->getMessage()); }