|
|
@@ -7,6 +7,7 @@ use App\dao\Pay\PayController;
|
|
|
use App\Http\helper\CreateOrder;
|
|
|
use App\Http\helper\NumConfig;
|
|
|
use App\Jobs\Order;
|
|
|
+use App\Notification\TelegramBot;
|
|
|
use App\Services\CreateLog;
|
|
|
use App\Services\OrderServices;
|
|
|
use App\Services\PayPlus;
|
|
|
@@ -89,6 +90,13 @@ class PayPlusLogic extends BaseApiLogic
|
|
|
try {
|
|
|
$result = $this->service->postPayin($payload);
|
|
|
Util::WriteLog('PayPlus', 'PayPlus payment response: ' . json_encode($result));
|
|
|
+ if ($result['code'] !== 200) {
|
|
|
+ TelegramBot::getDefault()->sendProgramNotify(
|
|
|
+ 'PayPlus payment failed',
|
|
|
+ 'Response: ' . json_encode($result),
|
|
|
+ null
|
|
|
+ );
|
|
|
+ }
|
|
|
return $result;
|
|
|
|
|
|
} catch (\Exception $exception) {
|