GithubHelp home page GithubHelp logo

xiong-it / easypay Goto Github PK

View Code? Open in Web Editor NEW
380.0 19.0 85.0 50.61 MB

[DEPRECATED]A simple frame for mobile pay in China, easy to use & expand . 简单易用的第三方可扩展支付框架。

License: Apache License 2.0

Java 100.00%
alipay wechatpay mobilepay unionpay

easypay's People

Contributors

xiong-it avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easypay's Issues

How can I use my order number?

As usual, I get an order number from server and put it to payment client and send a payment request. The question is that how I can use this order number through your "EasyPay"?

在没有网络的情况下会空指针导致程序崩溃

原因是:
在EasyPay类中,先是在requestPayInfo()中调用了一次sendPayResult();即调用了一次 releaseMemory();此时mPayParams为null,后来又在toPay()中又调用了一次。
mOnPayResultListener.onPayFailure(mPayParams.getPayWay(), code);mPayParams.getPayWay()为空指针。
建议将releaseMemory()方法放在doPay()中

关于微信支付回调

为什么你没有用WXPayEntryActivity 而官方文档说要用 大神你是怎么做到的 求教

设置支付方式的判断

 PayWay way = mPayParams.getPayWay();
        if (mPayParams.getPayWay() == null) {
            throw new NullPointerException("请设置支付方式");
        }

建议是把请求参数的判断放到获取预付订单之前,如果没有设置支付方式这样就可以减少一次网络请求

支付成功后关于服务端的回调

我看支付宝微信支付结束后,把支付结束结果返回给客户端后,客户端还需要在服务端进行验证,这里怎么没有进行验证

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.