react-native-wechat-lib
react-native-wechat-lib copied to clipboard
支付成功,失败,取消支付均没有回调
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") }
]
);
}
});
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") } ] ); } });
支付功能有用吗?哥们 之前我用这个包支付功能都正常 现在忽然不行了
请问微信支付现在可以回调了吗
请问最近解决了吗
如果是安卓端,注意包名是否正确。跟生成微信支付签名相关
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。