fly пре 5 година
родитељ
комит
fc4ac7dcee
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Libs/Pay/Merchants/AliPay.php

+ 1 - 1
app/Libs/Pay/Merchants/AliPay.php

@@ -79,7 +79,7 @@ class AliPay implements PayMerchantInterface
 
     public function notify(array $data)
     {
-        if (isset($data['sign'])) {
+        if (isset($data['sign']) && isset($data['trade_status'])  && $data['trade_status'] == 'TRADE_SUCCESS') {
             return $this->aop->rsaCheckV1($data, $this->rsaPublicKeyFilePath, self::SIGN_TYPE);
         } else {
             return false;