https://github.com/shoxabbos/octobercms-payme-plugin
Plugin for october cms.
https://github.com/shoxabbos/octobercms-payme-plugin
itmakeruz october-cms october-plugin payme
Last synced: 3 months ago
JSON representation
Plugin for october cms.
- Host: GitHub
- URL: https://github.com/shoxabbos/octobercms-payme-plugin
- Owner: shoxabbos
- Created: 2018-09-26T08:08:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T18:53:08.000Z (over 7 years ago)
- Last Synced: 2025-01-21T03:43:57.151Z (over 1 year ago)
- Topics: itmakeruz, october-cms, october-plugin, payme
- Language: PHP
- Homepage: https://itmaker.uz
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
You can find documentation in here https://help.paycom.uz/ru
### You can like this listen Plugin events and expand functionality
```
amount != $amount) {
$result = false;
}
});
Event::listen('shohabbos.payme.performTransaction', function ($transaction, &$result, &$message) {
// check order as paid or fill user balance
$order = Order::find($transaction->owner_id);
$order->is_paid = 1;
$result = $order->save();
});
Event::listen('shohabbos.payme.cancelTransaction', function ($transaction, &$result, &$message) {
// check order as cancelled or take away from user balance
$order = Order::find($transaction->owner_id);
$order->is_paid = 0;
$result = $order->save();
});
```