Skip to content

ssanko/compari-trusted-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Compari trusted shop

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages