「Paypal支付」 问答
你来提问我们来回答
「Paypal支付」模块 问答 Paypal支付成功后没有处理onNotify

Paypal支付成功后没有处理onNotify

ltkrbk
    public function onNotify($payType, $input, $param = [])
    {
        Log::info('PayPaypal.Notify - ' . SerializeUtil::jsonEncode($input, JSON_UNESCAPED_UNICODE));
        // if (empty($input['hash']) || empty($input['trade_order_id'])) {
        //     BizException::throws('签名错误');
        // }
        // $hash = $input['hash'];
        // unset($input['hash']);
        // $calcHash = $this->generateHash($input);
        // if ($hash != $calcHash) {
        //     BizException::throws('签名错误');
        // }
        // $ret = PayOrderUtil::handleOrderPay(self::name(), $input['trade_order_id'], [
        //     'payOrderId' => $input['transaction_id'],
        // ]);
        // if ($ret['code']) {
        //     BizException::throws($ret['msg']);
        // }
        // return 'success';
    }

注意到上面的代码,接到了paypal的事件通知但未对通知做任何处理。请问是在其他地方处理了吗?我在沙盘模式支付成功后调试发现paypal是已经返回成功事件了,但是订单还是不是已支付的状态。

ModStart官方
ModStart官方出品

微信或者联系MZ看一下

QQ
微信
客服

.