Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shahmal1yev/php-yigim

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

payment-gateway-integration payment-integration php-development php-package php83 yigim

Last synced: about 18 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# EasyPay PHP/Yığım

[![Version](https://img.shields.io/badge/Version-1.0-blue.svg)](https://semver.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Documentation](https://img.shields.io/badge/API-Documentation-purple.svg)](https://shahmal1yev.github.io)

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

![YIĞIM Logo](https://yigim.az/uploads/images/1-02.png)

## Documentation
You can read the API documentation from [here](https://shahmal1yev.github.io). Feel free to submit a pull request to [docs](https://github.com/shahmal1yev/shahmal1yev.github.io) if you have something you'd like to add.

## Requirements
```json
"php": ">=8.3",
"ext-curl": "*",
"ext-http": "*"
```

## Installation

```php
composer require shahmal1yev/php-yigim
```

## Usage

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

### Initialization Command
```php
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](https://opensource.org/license/MIT).