Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝退款异步回调通知$notifyType参数为pay #223

Open
yinlianwei opened this issue Aug 6, 2020 · 0 comments
Open

支付宝退款异步回调通知$notifyType参数为pay #223

yinlianwei opened this issue Aug 6, 2020 · 0 comments

Comments

@yinlianwei
Copy link

支付宝退款操作,在异步回调通知中,具体代码如下:

class PaymentNotify implements \Payment\Contracts\IPayNotify
{

    /**
     * @param string $channel 通知的渠道,如:支付宝、微信、招商
     * @param string $notifyType 通知的类型,如:支付、退款
     * @param string $notifyWay 通知的方式,如:异步 async,同步 sync
     * @param array $notifyData 通知的数据
     * @return bool
     */
    public function handle(
        string $channel,
        string $notifyType,
        string $notifyWay,
        array $notifyData
    ) {
//notifyType 一直为`pay`
     }
}

微信退款经过验证是没有问题的,该参数返回的是refund

个人方案:

现在只能依据notifyData 内数据判断类型。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant