wepay 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
wepay 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
wepay 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT
开发语言 Java 查看源码 »
操作系统 跨平台
软件类型 开源软件
开源组织
地区 国产
投 递 者 ihaolin
适用人群 未知
收录时间 2016-10-09

软件简介

wepay是一款轻量的微信支付组件(A Lightweight Wechat Pay Component)。

  • 包引入:

    <dependency>
        <groupId>me.hao0</groupId>
        <artifactId>wepay-core</artifactId>
        <version>1.2.4</version>
    </dependency>
  • 依赖包,注意引入项目时是否需要exclude:

    <dependency>
        <groupId>me.hao0</groupId>
        <artifactId>common</artifactId>
        <version>1.1.2</version>
    </dependency>
  • 基本用法:

    Wepay wepay = WepayBuilder
                    .newBuilder(appId, appKey, mchId)
                    .config1(...)   // 其他可选配置
                    ...
                    .build();
    
    wepay.module().api();
  • 已实现的组件:

    • 支付pay();

    • 退款refund();

    • 订单order();

    • 通知notify();

    • 账单bill()

  • API文档这里

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击引领话题📣
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
33 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部