diff --git a/WeChat/Contracts/BasicWePay.php b/WeChat/Contracts/BasicWePay.php index f25cbda..1f0f096 100644 --- a/WeChat/Contracts/BasicWePay.php +++ b/WeChat/Contracts/BasicWePay.php @@ -85,6 +85,15 @@ class BasicWePay throw new InvalidResponseException('Invalid Notify.', '0'); } + /** + * 获取微信支付通知回复内容 + * @return string + */ + public function getNotifySuccessReply() + { + return Tools::arr2xml(['return_code' => 'SUCCESS', 'return_msg' => 'OK']); + } + /** * 生成支付签名 * @param array $data 参与签名的数据