Giter Site home page Giter Site logo

narrowsnap / ionic2-cordova-plugin-pay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alan-x/ionic2-cordova-plugin-pay

0.0 2.0 0.0 8.28 MB

ionic2的cordova 支付插件,包括ios/android的微信支付、支付宝支付

License: MIT License

Java 16.77% Objective-C 81.78% JavaScript 1.45%

ionic2-cordova-plugin-pay's Introduction

cordova-plugin-pay

其实是给ionic2做的插件,未经过cordova测试,需要将ionic-native替换成我的源,等做完再详细写

说明

由于项目问题,该插件暂时停止维护,虽然大部分功能可用,但是,还没有将配置集成到配置文件中,也还没经过完整的项目测试,目前只能算是demo 性的插件,如有需要,可以自行进行改造。之后重新着手cordova相关开发之后,会再次开始该插件开发和维护。

===

  1. Android支付宝支付 完成
  2. Android微信支付 完成
  3. IOS支付宝支付 完成
  4. IOS微信支付 完成

负责人

  • 设计:林耀鑫
  • Android平台的微信/支付宝接入:林耀鑫
  • IOS平台的微信/支付宝接入:许志雄

===

调用示例

  • 引入LyxPay: import {StatusBar, Lyxpay,PayCallBack} from 'ionic-native';

  • 继承 PayCallBack接口,重写successfailure方法

class CallBack implements PayCallBack{ success(): any { alert("success"); }

failure(msg: string): any { alert(msg); }

}

```

===

  • 调用 Lyxpay.pay(1,data.text(),new CallBack());
    • 参数一是支付类型:1是支付宝,2是微信
    • 参数二是支付字符串
    • 参数三是重写的回调方法

ionic2-cordova-plugin-pay's People

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.