Skip to content

wankey/RxPay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download

RxPay

使用RxJava代码风格的支付lib,支持支付宝和微信支付

使用方式

  1. 添加repository
    maven { url "https://dl.bintray.com/wankey/maven/" }
  2. 添加依赖
    implementation "io.github.wankey.mithril:pay:{$LATEST_VERSION}"
    //如果需要支持微信支付,添加下面的依赖
    implementation "com.tencent.mm.opensdk:wechat-sdk-android-without-mta:{$LATEST_VERSION}"
    //如果需要支持支付宝,请将相关lib文件复制到libs目录下
  3. 在Application中初始化
  4. 使用支付方式对应的构造函数构造PayBean
  5. 调用支付APi
RxPay.pay(activity,RxPay.PAY_TYPE,payBean)
     .subscribe(PayResult->{})

About

RxJava风格的支付lib,支持支付宝和微信支付

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages