Heureka 'Ověřeno zákazníky' (ShopCertification) service API implementation
Heureka Ověřeno zákazníky (ShopCertification) service API client implementation for PHP.
Note: For non-PHP implementations check the API documentation in the docs folder.
You can check working examples in the folder
examples of this repository.
your API key (you need to log in):
require_once __DIR__ . '/vendor/autoload.php'; $shopCertification = new \Heureka\ShopCertification('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
SK shops should initialize the class with a service parameter in the options:
$options = ['service' => \Heureka\ShopCertification::HEUREKA_SK]; $shopCertification = new \Heureka\ShopCertification('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', $options);
Set the customer e-mail address:
Set the customer's order ID (only integers are allowed):
Add products which the customer ordered (use IDs which you used in ITEM_ID field of the Heureka XML feed):
$shopCertification->addProductItemId('B1234'); $shopCertification->addProductItemId('15968421'); $shopCertification->addProductItemId('814687');
And finally send request to log the order: