PHP code example of mirays / solidgate-php-sdk
1. Go to this page and download the library: Download mirays/solidgate-php-sdk 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/ */
mirays / solidgate-php-sdk example snippets
use SolidGate\API\PaymentPageApi;
use SolidGate\API\DTO\Request\PaymentPage\InitRequest;
$api = new PaymentPageApi('YourMerchantId', 'YourPrivateKey');
$request = new InitRequest(
new InitRequest\SubscriptionOrderDTO('ProductId','OrderId', 'CustomerId', 'OrderDescription'),
new InitRequest\PageCustomizationDTO('PublicName')
);
$response = $api->initPage($request);
$ composer
json
{
"irays/solidgate-php-sdk": "~0.1"
}
}