PHP code example of chec / commerce
1. Go to this page and download the library: Download chec/commerce library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chec / commerce example snippets
Commerce\Auth::setApiKey('sk_test_8146250gNZ8gddde480e07ac91c10c2651077176aed27');
$products = Commerce\Product::all();
foreach($products as $k => $product):
echo $product['name'];
endforeach;