little-snow-fox / react-native-wechat-lib

🚀 WeChat login, share, favorite and payment for React-Native on iOS and Android
MIT License
653 stars 127 forks source link

支付成功,失败,取消支付均没有回调 #203

Open iesu365 opened 2 years ago

iesu365 commented 2 years ago

WeChat.isWXAppInstalled().then((isInstalled) => { if (isInstalled) { WeChat.pay(data).then(requestJson=>{ console.info('支付成功') console.info(requestJson) //支付成功回调 if (requestJson.errCode=="0"){ //回调成功处理 this.props.navigation.navigate('Index') } }).catch((err)=>{ console.info('支付失败') console.info(err) this.props.navigation.navigate('Dingdanerror') }) } else { alert('支付成功了吗') Alert.alert( "提示", "请安装微信", [ {

          },
          { text: "确认", onPress: () => console.log("OK Pressed") }
        ]
      );
    }
  });
Leo2018Wu commented 2 years ago

WeChat.isWXAppInstalled().then((isInstalled) => { if (isInstalled) { WeChat.pay(data).then(requestJson=>{ console.info('支付成功') console.info(requestJson) //支付成功回调 if (requestJson.errCode=="0"){ //回调成功处理 this.props.navigation.navigate('Index') } }).catch((err)=>{ console.info('支付失败') console.info(err) this.props.navigation.navigate('Dingdanerror') }) } else { alert('支付成功了吗') Alert.alert( "提示", "请安装微信", [ {

          },
          { text: "确认", onPress: () => console.log("OK Pressed") }
        ]
      );
    }
  });

支付功能有用吗?哥们 之前我用这个包支付功能都正常 现在忽然不行了

wubaibin commented 1 year ago

请问微信支付现在可以回调了吗

0xssw commented 1 year ago

请问最近解决了吗

bitting304 commented 1 year ago

如果是安卓端,注意包名是否正确。跟生成微信支付签名相关

0xssw commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。