PHP code example of incraigulous / php-profitstars
1. Go to this page and download the library: Download incraigulous/php-profitstars 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/ */
incraigulous / php-profitstars example snippets
bash
$ composer
php
$credentials = [
'store-id'=>"YOUR_STORE_ID",
'store-key'=>"YOUR_STORE_KEY",
'entity-id'=>"YOUR_ENTITY_ID",
'location-id'=>"YOUR_LOCATION_ID",
];
$proc = new \jdavidbakr\ProfitStars\ProcessTransaction($credentials);
// Test connection
if($proc->TestConnection()) {
// Success
}
// Test credentials
if($proc->TestCredentials()) {
// Success
}