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

调用支付接口失败 #15

Closed
zhangshuai opened this issue May 9, 2016 · 5 comments
Closed

调用支付接口失败 #15

zhangshuai opened this issue May 9, 2016 · 5 comments

Comments

@zhangshuai
Copy link

zhangshuai commented May 9, 2016

"_reactNativeWechatIos2.default.weChatPay is not a function"
@xiaoyann 调用时候是大写的:)
WeChat.weChatPay(payOptions,(res) => {
console.log(res);
});
直接复制的示例里的代码

@xiaoyann
Copy link
Member

xiaoyann commented May 9, 2016

你是怎么调用的?方法名写错了吧,应该是大写的 C,weChatPay。😄

@xiaoyann xiaoyann closed this as completed May 9, 2016
@xiaoyann xiaoyann reopened this May 9, 2016
@shexiaoheng
Copy link
Contributor

@zhangshuai 你打印下WeChat,看看包含哪些方法和属性

@xiaoyann
Copy link
Member

xiaoyann commented May 10, 2016

😄,你把你的package.json稍微改下:

"react-native-wechat-ios": "https://github.com/beefe/react-native-wechat-ios.git"

不好意思啊,这次添加支付功能忘记发布到npm了。待会发布下。

@xiaoyann
Copy link
Member

已经发布了,现在安装 0.3.0 应该没这个问题了。

@zhangshuai
Copy link
Author

可以调用了,谢谢:)

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

3 participants