This library provides API options of SolidGate payment gateway.
$ composer require mirays/solidgate-php-sdk
{
"require": {
"mirays/solidgate-php-sdk": "~0.1"
}
}Payment Form Init Example
Card-gate example
<?php
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);