1. Go to this page and download the library: Download settle/settle-sdk-php 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/ */
settle / settle-sdk-php example snippets
$settle_client = new SettleApiClient(
SETTLE_MERCHANT_ID,
SETTLE_USER_ID,
SETTLE_PUBLIC_KEY,
SETTLE_PRIVATE_KEY,
SETTLE_IN_SANDBOX
);
// the following will return
$is_valid = $settle_client->isValidCallback($callbackUrl, $body, $headers, $method);
// the following method will grab the data Settle sent in the current request
$settle_data = $settle_client->getCallbackData();