vadgab / yii2-borgun-api
The application is a YII2-Extension for the Borgun API
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.0
- yiisoft/yii2: ^2.0
This package is auto-updated.
Last update: 2025-06-07 16:14:36 UTC
README
Yii2 Borgun / saltPay Api Extension
Installation
The preferred way to install this extension is through composer:
composer require --prefer-dist vadgab/yii2-borgun-api
Settings:
config/params.php
return [
...,
'base_url'=> 'http://*url*',
...
]
Basic Usage
General use can be tried through the following examples:
-
Create payment
use vadgab\Yii2BorgunApi\BorgunApi; $payment = new BorgunApi; $payment->test = 1; /* merchant variables */ $payment->secretKey = "cdedfbb6ecab4a4994ac880144dd92dc"; $payment->merchantid = "9256684"; $payment->paymentgatewayid = "471"; /* payment variables */ $payment->orderid = "ORDER123001"; $payment->currency = "HUF"; $payment->language = "HU"; $payment->buyername = "Gábor Vadász"; $payment->buyeremail = "vadgab@allstar.hu"; $payment->amount = "110"; $payment->item['description'] = "Teszt product"; $payment->item['count'] = "1"; $payment->item['unitamount'] = "110"; $payment->item['amount'] = "110"; $payment->addItem(); /* Send payment */ $payment->sendPayment();