From 70b986885297ce8fab0c6ebe2a027b3f9b3a0198 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 20 Nov 2018 17:41:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=A4=84=E7=90=86=E8=BF=94=E5=9B=9E=E6=88=90=E5=8A=9F=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20getNotifySuccessReply?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicWePay.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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 参与签名的数据