Giter VIP home page Giter VIP logo

cordova-plugin-pingpp's Introduction

Cordova Pingpp Plugin

未能测试全部功能, 如发现问题请及时指正, 谢谢~

Using

Install the plugin

# 暂未上传 cordova 插件库 请先从 github 或 coding 安装

or install form github

$ cordova plugin add https://github.com/TongChia/cordova-plugin-pingpp.git --variable URL_SCHEME=YOUR-URL-SCHEME

form coding.net

$ cordova plugin add https://git.coding.net/tongchia/cordova-plugin-pingpp.git --variable URL_SCHEME=YOUR-URL-SCHEME

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);
          });
        });
      }
    };
  }]);

More Info

Base on pingpp native sdk

pingpp-ios

pingpp-android

Issues

issues

如果本插件给您或您的公司带来帮助 请别忘记点击右上角的【Star】

License

Apache License 2.0

cordova-plugin-pingpp's People

Contributors

awesomepan avatar tongchia avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.