Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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();
});
```