Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T18:53:08.000Z (over 5 years ago)
- Last Synced: 2024-06-07T18:24:45.918Z (7 months 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();
});
```