Skip to content

A PHP package that makes it easy to integrate Yığım Payment System (https://yigim.az) into your projects.

Notifications You must be signed in to change notification settings

shahmal1yev/php-yigim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyPay PHP/Yığım

Version License: MIT Documentation

A PHP package that makes it easy to integrate Yığım Payment System into your projects.

YIĞIM Logo

Documentation

You can read the API documentation from here. Feel free to submit a pull request to docs if you have something you'd like to add.

Requirements

"php": ">=8.3",
"ext-curl": "*",
"ext-http": "*"

Installation

composer require shahmal1yev/php-yigim

Usage

After including the library in your project, you can refer to the following examples:

Initialization Command

use EasyPay\PHP\Yigim\Facades;

$initializationCommand = CommandFacade::initialization()->fieldBuilder()
    ->setReference("REF0001")
    ->setType("SMS")
    ->setToken("CRD0001")
    ->setSave("y")
    ->setAmount(1000)
    ->setCurrency("994")
    ->setBiller("BLR001")
    ->setDescription("Test payment")
    ->setTemplate("TPL0001")
    ->setXMerchant("Merchant")
    ->setSignature("OaDZaBl6b13xIP+U9nulYQ==")
    ->setXType("JSON");

$responseContract = $initializationCommand->execute();

echo $responseContract->getUrl();

Contribution

  • If you find any bug or issue, please open an issue.
  • If you want to contribute to the code, feel free to submit a pull request.

Licence

This project is licensed under the MIT License. For more information, see the LICENSE.