Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shoxabbos/oc-payeer-plugin
Integration with Payeer payment system
https://github.com/shoxabbos/oc-payeer-plugin
itmakeruz octobercms payeer payments plugin transactions
Last synced: 13 days ago
JSON representation
Integration with Payeer payment system
- Host: GitHub
- URL: https://github.com/shoxabbos/oc-payeer-plugin
- Owner: shoxabbos
- Created: 2018-11-15T09:09:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T16:30:09.000Z (about 6 years ago)
- Last Synced: 2024-11-20T00:45:10.583Z (3 months ago)
- Topics: itmakeruz, octobercms, payeer, payments, plugin, transactions
- Language: PHP
- Homepage: https://itmaker.uz
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
You can find documentation in here https://payeer.com/ru/
### You can like this listen Plugin events and expand functionality
```
m_operation_id = $_POST['m_operation_id'];
$transaction->m_operation_ps = $_POST['m_operation_ps'];
$transaction->m_operation_date = $_POST['m_operation_date'];
$transaction->m_operation_pay_date = $_POST['m_operation_pay_date'];
$transaction->m_shop = $_POST['m_shop'];
$transaction->m_orderid = $_POST['m_orderid'];
$transaction->m_amount = $_POST['m_amount'];
$transaction->m_curr = $_POST['m_curr'];
$transaction->m_desc = $_POST['m_desc'];
$transaction->m_status = $_POST['m_status'];
$transaction->save();
});Event::listen('shohabbos.payeer.successPayment', function ($id, $amount, $currency) {
// add balance or check order as paid
$user = UserModel::find($id);
$user->balance += $amount;
$user->save();// add to history payments
$payment = new Payment();
$payment->user_id = $id;
$payment->is_buy = true;
$payment->amount = $amount;
$payment->payment_system = 'payeer';
$payment->date = date('Y-m-d H:i:s');
$payment->save();
});
```