Giter VIP home page Giter VIP logo

wxpay-sdk's Introduction

微信支付/公众平台/消息响应/企业号服务器端SDK for Java

yet another wheel for wx (╯‵д′)╯︵┻━┻

Tutorial

A third-party encapsulation of Weixin(Wechat) Media Publicity / Service / Enterprise Account APIs. Gradually growing from only one simple pay feature to a large crowd of APIs. ("ㅍ‿ㅍ)

Usage is like:

WxpayFactory factory = WxpayFactory.getDefaultInstance();

UnifiedOrder order = ((UnifiedOrder)factory.instantiate(UnifiedOrder.class))
  .setBody          ("买买买!"                                            )
  .setTotalFee      (10970                                                )
  .setOpenid        ("oKKrIt0yPJ2OdoDZrrfORxWEnr0s"                       )
  .setOutTradeNo    ("wxpay-demopay-"+Long.toString(new Date().getTime()) )
  .setSpbillCreateIp(httpServletRequest.getRemoteAddr()                   )
  .setTradeType     (TradeType.JSAPI                                      )
  .build()
  .sign();

UnifiedOrderResponse orderResp = order.execute();

As this example shows, this SDK is simple, stale, and not easy to use. Think before loving it.

For futher info / demos / detailed Chinese tutorials, please refer to project's wiki

Release

Official release can be found in https://github.com/cuter44/wxpay-sdk/releases

Sponser

This project is brought to you by:

  • SCAU-SIDC, a college student organization belongs to South China Agricultural University.

with love and humorousness.

License & Acknowledgement

See LICENSE.md.

This project is NOT officially affiliated with Weixin(Wechat) or Tencent.

wxpay-sdk's People

Contributors

cuter44 avatar

Watchers

James Cloos 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.