1
0
Эх сурвалжийг харах

Ticket #4069 - Credits: Negative balance should not be allowed and Subscription shouldn't be continued and processed when there is low balance.

AntonLV 4 жил өмнө
parent
commit
3de1cddcca

+ 2 - 2
modules/boonex/payment/classes/BxPaymentModule.php

@@ -1598,8 +1598,8 @@ class BxPaymentModule extends BxBaseModPaymentModule
                 continue;
                 continue;
             }
             }
 
 
-            if(!$oProvider->makePayment($aPending)) {
-                $this->log($aSubscription, 'Time Tracker', 'Payment cannot be processed.');
+            if(($mixedResult = $oProvider->makePayment($aPending)) !== true) {
+                $this->log($aSubscription, 'Time Tracker', 'Payment cannot be processed.' . (!empty($mixedResult['message']) ? ' ' . $mixedResult['message'] : ''));
                 continue;
                 continue;
             }
             }