Skip to content

MirayS/solidgate-php-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP version

SolidGate API

This library provides API options of SolidGate payment gateway.

Installation

With Composer

$ composer require mirays/solidgate-php-sdk
{
    "require": {
        "mirays/solidgate-php-sdk": "~0.1"
    }
}

Usage

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);

About

This library provides basic API options of SolidGate payment gateway.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%