react-native-wechat-lib icon indicating copy to clipboard operation
react-native-wechat-lib copied to clipboard

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

Open iesu365 opened this issue 2 years ago • 5 comments

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") }
        ]
      );
    }
  });

iesu365 avatar Jun 09 '22 01:06 iesu365

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 avatar Jun 15 '22 07:06 Leo2018Wu

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

wubaibin avatar Aug 25 '22 02:08 wubaibin

请问最近解决了吗

0xssw avatar Oct 16 '22 06:10 0xssw

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

bitting304 avatar Dec 11 '22 08:12 bitting304

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

0xssw avatar Dec 11 '22 08:12 0xssw