onPayResult

open fun onPayResult(code: Int, error: String)

支付结果,注意一定不能以客户端返回作为用户支付的结果,应以服务器端的接收的支付通知或查询API返回的结果为准

Parameters

code

0.成功 -1.错误 -2.用户取消

error

错误描述