This package provides basic support for Compari or Arukereso trusted shop.
$ composer require ssanko/compari-trusted-shop
Usage for Compari trusted shop:
try {
$client = (new \Ssanko\Compari\TrustedShop('<apiKey>', new \Ssanko\Compari\Config\CompariConfig))
->setEmail('[email protected]')
->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('[email protected]')
->addProduct('Product name 1', 'P123456');
echo $client->createTrustedCode();
} catch (Exception $exception) {
die($exception->getMessage());
}