抱歉没能即时更新, 同样未能测试全部功能, 如发现问题请及时指正, 谢谢~
!!!已删除安装插件时设置 URL_SCHEME 的功能, 请自行到 iOS 工程中添加.
install form github
$ cordova plugin add https://github.com/TongChia/cordova-plugin-pingpp.git
$ cordova plugin add https://github.com/TongChia/cordova-plugin-pingpp.git#all
javascript
pingpp.createPayment(charge, function(result){
console.log('suc: '+result) //"success"
}, function(result){
console.log('err: '+result) //"fail"|"cancel"|"invalid"
});
with Angular (#ionic)
angular.module('yourApp', [])
.factory('$pingpp', ['$q', '$window', function ($q, $window) {
return {
createPayment: function (charge) {
return $q(function (resolve, reject) {
$window.pingpp.createPayment(charge, function () {
resolve();
}, function (err) {
reject(err);
});
});
}
};
}]);
Base on pingpp native sdk
- Download sdk from git
- Remove URL_SCHEME variable
- Change plugin ID to "me.tongchia.cordova.pingpp"
- 包含百度钱包/银联支付/ApplePay的全功能版本
- 壹收款
- 完善测试 Demo 工程并发布到 GitHub
- 使用 Ping++ Js SDK 支持其他平台
Apache License 2.0