diff --git a/WePayV3/Contracts/BasicWePay.php b/WePayV3/Contracts/BasicWePay.php index 66b9487..80d4d17 100644 --- a/WePayV3/Contracts/BasicWePay.php +++ b/WePayV3/Contracts/BasicWePay.php @@ -222,7 +222,8 @@ abstract class BasicWePay */ public function notify() { - $data = $_POST; + $body = file_get_contents('php://input'); + $data = json_decode($body, true); if (isset($data['resource'])) { $aes = new DecryptAes($this->config['mch_v3_key']); $data['result'] = $aes->decryptToString(