mirays/solidgate-php-sdk

Php API SDK for SolidGate payment gateway

0.1 2024-12-29 14:49 UTC

This package is auto-updated.

Last update: 2024-12-29 15:31:49 UTC


README

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