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

Installs: 1 466

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/ssanko/compari-trusted-shop

1.0.2 2025-01-13 11:35 UTC

This package is auto-updated.

Last update: 2026-01-13 13:51:34 UTC


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());
}