hhjjj1010 / cordova-plugin-alipay-v2 Goto Github PK
View Code? Open in Web Editor NEW支付宝《APP支付》cordova插件
支付宝《APP支付》cordova插件
最新更新了应用上传到苹果商店后收到警告邮件如下:
“ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of new apps that use UIWebView APIs starting from April 2020. See https://developer.apple.com/documentation/uikit/uiwebview for more information.”
经反复测试,删除你的支付定插件再上传就一切正常。请求更新!
Error: cmd: Command failed with exit code 1 Error output:
ע: ijЩ�����ļ�ʹ�û����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
ע: ijЩ�����ļ�ʹ�û����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
E:\Documents\Visual Studio 2017\Projects\TestApp\platforms\android\AndroidManifest.xml:12:9-257 Error:
Element activity#com.alipay.sdk.app.H5PayActivity at AndroidManifest.xml:12:9-257 duplicated with element declared at AndroidManifest.xml:11:9-246
E:\Documents\Visual Studio 2017\Projects\TestApp\platforms\android\AndroidManifest.xml Error:
Validation failed, exiting
FAILURE: Build failed with an exception.
Manifest merger failed with multiple errors, see logs
大佬,用户安装支付宝可以唤起app,没有安装支付宝无法跳到支付宝H5页面
被拒原因:您的应用在用户同意隐私政策前存在获取用户个人信息(设备ID)的违规行为,支付宝SDK用户隐私说明。
可以暴露出来一个方法在js中去初始化SDk吗?
Cordova打包Vue项目后发起的http请求(无https)无法唤醒支付页面
您好,在使用这个插件时遇到一个问题,页面刷新后仍然存在这种现象,前端使用framework7框架,打开支付宝支付,再返回App目测css动画的速度会增加1/3再打开回来会在已经加速的动画上再加速1/3😊
XCODE版本9.2
IOS版本11.3.1
node版本8.9.4
能正常调用支付宝,支付完成后无法进入回调函数,success和error都不相应,请问是什么问题
@hhjjj1010
AlipaySDK/AlipaySDK.h' file not found
Xcode版本:Version 9.0.1 (9A1004)
build os: ios9.0
使用cordova-plugin-alipay-v2按文档检查配置之后依然无法跳转,使用另一个大佬的cordova-plugin-x-alipay解决的.
将cordova-plugin-x-alipay的AppDelegate+XAlipay.h和AppDelegate+XAlipay.m导入cordova-plugin-alipay-v2就行
删除
<framework src="libc++.tbd" weak="true"/>
后正常
目前这个插件是不是缺少静态库啊?求大神回复
在项目中找到android平台对于的插件源码文件,位于应用根目录下:
platforms/android/src/cn/hhjjj/alipay/alipay.java
在payment中的PayTask前面加一行代码:
com.alipay.sdk.app.EnvUtils.setEnv(com.alipay.sdk.app.EnvUtils.EnvEnum.SANDBOX);
,
重新编译运行,就可以了!
很完美
We’ve identified that your app is using the AliPay SDK or library, which facilitates the transmission of phone number information without meeting the prominent disclosure guidelines. Make sure to also post a privacy policy in both the designated field in the Play Developer Console and from within the Play distributed app itself.
If necessary, you can consult your SDK provider(s) for further information or please upgrade AliPay SDK version to 15.5.5 or higher.
能不能升级sdk版本啊
When I use this plugin, I was always getting the build error which seems conflicting with the alipush plugin(cordova plugin add https://github.com/llwwbb/cordova-plugin-AliPush.git --variable APP_KEY=appkey --variable APP_SECRET=appsecret)
I don't know why? could give me some advise? thanks.
啊啊啊
config.xml文件中 <source-file src="src/android/lib/alipaySdk-20170725.jar" target-dir="libs"/> 修改为 <lib-file src="src/android/lib/alipaySdk-20170725.jar" />
插件非常好用,但是cordova android7没法兼容,编译都不通过,大神可以改下嘛?
您好,我是按照上面的步骤安装和使用该插件。但是调用支付宝SDK后返回resultStatus:‘4000’,系统繁忙,请稍后再试。请问是哪里配置错了
现在是唤醒支付宝,支付成功回到了app,但是不执行成功事件,然后我用cordova执行可以继续回调下去,因为ionic-react用是capacitor的,请问要如何修改让他执行成功或者失败的回调呢
支付宝支付成功后显示空白页,无法回调, 查看Xcode的URL types,已设置过URL Schemes了,但是没回调,请问是哪里的问题呢
如题.谢谢
不是插件问题,可以使用了,
我在前端使用
window.cordova.plugins.alipay.payment(payInfo,(e) => { }, (e) => { console.log("支付失败" + e.resultStatus); });
然后app点击支付后,跳出支付宝的进度条,但没有显示支付内容,直接显示系统繁忙,请稍后再试,不能完成支付,您知道是怎么回事吗
这样后台没法同步到订单支付成功信息了。
本人使用的是ionic2 开发的,开发中遇到无法什么插件的问题(declare let cordova.plugins.alipay:any;)。修改plugin.xml 中的 clobbers,发下插件无法调用,最终采取如下步骤解决:
在JS文件中调用插件
var carJs = {
callAlipay:function(payInfo) {
var promise = new Promise(function(resolve, reject) {
cordova.plugins.alipay.payment(payInfo, function success(e){
var res = e;
resolve(res);
},function error(e){
var err = e;
reject(err);
});
return promise;
}
}
在index.html中应用此JS文件
用declare 申明carJs
在对应的ts中调用
private alipay(params) {
var url = params['url'];
carJs.callAlipay(url).then(res => {
}, err => {
});
}
最后谢谢楼主分享
其实很简单 -> SegmentFault链接
我现在所在的公司又一个需求, 要求能够用支付宝进行app的登录,但是找了许久,都没有找到相关功能的插件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.