shahmal1yev/php-yigim

PHP EasyPay YIĞIM is a PHP package that seamlessly integrates YIĞIM payment services into your PHP projects.

Fund package maintenance!
Ko Fi

1.0 2024-05-06 07:45 UTC

This package is auto-updated.

Last update: 2024-09-10 04:59:46 UTC


README

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.