| 1 | <?php |
||
| 12 | class PaymentService |
||
| 13 | { |
||
| 14 | /* |
||
| 15 | * return string |
||
| 16 | */ |
||
| 17 | public static function convertModelToKey($model){ |
||
| 20 | /* |
||
| 21 | * $key - key of model |
||
| 22 | * returns model or null |
||
| 23 | * |
||
| 24 | */ |
||
| 25 | public static function convertKeyToModel($key){ |
||
| 28 | /* |
||
| 29 | * returns true/false |
||
| 30 | */ |
||
| 31 | public static function isProperModelAndAmount($model, $amount){ |
||
| 34 | |||
| 35 | /* |
||
| 36 | * $model - Payable model |
||
| 37 | * $amount - amount for pay |
||
| 38 | * $action_type - type of action: before-pay, paying, after-pay, cancelled |
||
| 39 | */ |
||
| 40 | public static function payListener($model, $transaction, $action_type){ |
||
| 59 | } |
||
| 60 | |||
| 61 |