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

test微信小程序使用ping++支付,点击直接进入了success的回调。没有唤起支付控件,是因为测试环境的原因吗?这在测试环境下是正常的吗。。。不能模拟失败,取消的操作吗 #59

Open
peijunlei opened this issue Oct 20, 2021 · 1 comment

Comments

@peijunlei
Copy link

`pingpp.createPayment(result,async function (res, err) {
// object 需是 Charge/Order/Recharge 的 JSON 字符串
// 可按需使用 alert 方法弹出 log
console.log("result:" + res);
console.log("err.msg:" + err.msg);
console.log("err.extra:" + err.extra);
if (res == "success") {
$$alert('ping++支付成功')

      console.log('success');
      
   
  
      // 只有微信JSAPI (wx_pub)、微信小程序(wx_lite)、QQ 公众号 (qpay_pub)、支付宝小程序(alipay_lite)支付成功的结果会在这里返回,其他的支付结果都会跳转到 extra 中对应的 URL
    } else if (res == "fail") {
      console.log('fail');
      $$alert('fail')
      // Ping++ 对象 object 不正确或者微信JSAPI/微信小程序/QQ公众号支付失败时会在此处返回
    

    } else if (res == "cancel") {
      console.log('cancel');
      $$alert('cancel')
      // 微信JSAPI、微信小程序、QQ 公众号、支付宝小程序支付取消支付
    }`
@michealzh
Copy link

您好,微信小程序需要使用真实的参数发起测试验证

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

2 participants