All Projects → daihere1993 → cordova-plugin-xpay

daihere1993 / cordova-plugin-xpay

Licence: other
💰 This is a app payment cordova-plugin, support wechat payment and alipay temporally.

Programming Languages

objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cordova-plugin-xpay

ionic-resource-generator
Painless, Offline First, No Dependency, Ionic resources generator
Stars: ✭ 31 (+63.16%)
Mutual labels:  cordova, ionic
cordova-plugin-flurryanalytics
Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
Stars: ✭ 23 (+21.05%)
Mutual labels:  cordova, ionic
Ioniclub
❤️ Ioniclub is hybird mobile app of https://cnodejs.org
Stars: ✭ 35 (+84.21%)
Mutual labels:  cordova, ionic
AppPay
💸 AppPay专注于App支付的库,几句代码轻松搞定微信支付、支付宝支付。集成更简单。
Stars: ✭ 33 (+73.68%)
Mutual labels:  alipay, wechatpay
ionic-3-video-calling-using-webrtc
This is demo code of how to implement video calling in ionic 3 using webrtc
Stars: ✭ 58 (+205.26%)
Mutual labels:  cordova, ionic
mobile-messaging-cordova-plugin
Mobile Messaging SDK plugin for Cordova projects
Stars: ✭ 19 (+0%)
Mutual labels:  cordova, ionic
payjs
基于 PAYJS 微信支付个人接口开发的 Package,可直接用于生产环境
Stars: ✭ 73 (+284.21%)
Mutual labels:  alipay, wechatpay
ionic4-boilerplate
🚀 boilerplate for ionic4 with CI based on travis and fastlane. doc and example are provided
Stars: ✭ 25 (+31.58%)
Mutual labels:  cordova, ionic
example-cordova-code-push-plugin
Ionic + Cordova Code Push Plugin Example
Stars: ✭ 45 (+136.84%)
Mutual labels:  cordova, ionic
travis-ci-ionic-yml
An example configuration of Ionic/cordova + NPM + AngularJS + Android continuous integration setup on Travis CI
Stars: ✭ 21 (+10.53%)
Mutual labels:  cordova, ionic
angular-cordova
Angular wrapper for Cordova
Stars: ✭ 21 (+10.53%)
Mutual labels:  cordova, ionic
bitpocket-mobile-app
Mobile app for accepting bitcoin payments at the point of sale (Bitcoin POS).
Stars: ✭ 26 (+36.84%)
Mutual labels:  cordova, ionic
ionic-hockeyapp
Need HockeyApp in your Ionic application, add this package!
Stars: ✭ 19 (+0%)
Mutual labels:  cordova, ionic
ellenorzo
Arisztokréta: Nem hivatalos KRÉTA-kompatibilis ellenőrző alkalmazás
Stars: ✭ 17 (-10.53%)
Mutual labels:  cordova, ionic
cordova-plugin-amap
Amap Maps plugin for Cordova
Stars: ✭ 51 (+168.42%)
Mutual labels:  cordova, ionic
cordova-set-version
CLI and JavaScript API for setting the version in Apache Cordova config.xml
Stars: ✭ 19 (+0%)
Mutual labels:  cordova, ionic
ionic4-angular7-example
Ionic 4, Angular 7 and Cordova Tutorial: Build CRUD Mobile Apps
Stars: ✭ 57 (+200%)
Mutual labels:  cordova, ionic
ionic3-angular4-sample-app
Sample app of Ionic 3 and Angular 4
Stars: ✭ 35 (+84.21%)
Mutual labels:  cordova, ionic
ionic-vue-mobile-template-03
Hybrid app template built with vue, ionic and capacitor.
Stars: ✭ 62 (+226.32%)
Mutual labels:  cordova, ionic
v-cupertino
A Vue 3 Wrapper for Cupertino Pane Library
Stars: ✭ 17 (-10.53%)
Mutual labels:  cordova, ionic

cordova-plugin-xpay

A cordova plugin about app pay way, suport alipay and wechat.

Features

  • Wechat payment for app.
  • Ali payment for app.

Install

cordova plugin add cordova-plugin-xpay --variable wechatappid=YOUT_WECHATAPPID --variable aliappid=YOUT_ALIPAYAPPID

or

ionic plugin add cordova-plugin-xpay --variable wechatappid=YOUT_WECHATAPPID --variable aliappid=YOUT_ALIPAYAPPID

Usage

Wechat payment

var params = {
    type: 'wechat',
    partnerid: '10000100', // merchant id
    prepayid: 'wx201411101639507cbf6ffd8b0779950874', // prepay id
    noncestr: '1add1a30ac87aa2db72f57a2375d8fec', // nonce
    timestamp: '1439531364', // timestamp
    sign: '0CB01533B8C1EF103065174F50BCA001', // signed string
};

xpay(params, function() {
    console.log('success');
}, function (error) {
    console.log(error);
});

Ali payment

var params = {
    type: 'alipay',
    order: 'alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_id=2017062907602740&...', // this string return by back-end
}

xpay(params, function() {
    console.log('success');
}, function (error) {
    console.log(error);
});

Tip

If you just want realize ali and wechat payment in your app, this plugin is enough. If your needs another wechat function, suggest use cordova-plugin-x-alipay and cordova-plugin-wechat.

LICENSE

MIT LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].