Giter Site home page Giter Site logo

logo

注意事项

  • 如果只想使用支付宝或微信其中一方支付方式,配置文件只需要配置微信或支付宝的配置无需两个支付方式都配置

  • 如果该支付的jar包帮助到了您,那就麻烦动动小手,给本项目点个星,支持一下。您的小星星就是我继续升级迭代的动力。

使用前配置文件配置如下

  • 在项目pom.xml文件中引入Easy-Pay的依赖,该依赖已经发布到了maven的**仓库。
<dependency>
    <groupId>com.niezhiliang.easy.pay</groupId>
    <artifactId>easy-pay</artifactId>
    <version>1.1.0</version>
</dependency>
  • 必须创建一个easypay.yml文件放在项目的根目录下

配置文件格式如下:

#支付宝支付参数配置
alipay:
  #应用ID,您的APPID,收款账号既是您的APPID对应支付宝账号
  appId: ''
  #商户私钥,您的PKCS8格式RSA2私钥
  privateKey: 
  publicKey: 
  #服务器异步通知页面路径  需http://格式的完整路径,不能加?id=123这类自定义参数,必须外网可以正常访问
  notifyUrl: 
  #页面跳转同步通知页面路径 需http://格式的完整路径,不能加?id=123这类自定义参数,必须外网可以正常访问
  returnUrl: 
#微信支付参数配置
wxpay:
  #公众号appid
  appId: 
  #商户id
  mchId: 
  #支付api安全密钥
  mchKey: 
  #支付结果回调地址
  payNotify: 
  #退款结果回调(该值暂时还未使用到,因为退款我并没有做回调,待以后完善吧)
  refundNotify:
  #项目根目录根目录下的证书名称(退款需要用到证书)
  certName: 'xxx.p12'

文档

其它

easy-pay's Projects

easy-pay icon easy-pay

一行代码,一行代码解决支付宝和微信的二维码生成,支付回调,退款 ,H5支付等功能,轻量级不依赖任何框架来实现

spring-boot-easy-pay icon spring-boot-easy-pay

spring-boot-stater版本的easy-pay一行代码,一行代码解决支付宝和微信的二维码生成,支付回调,退款 ,H5支付等功能,轻量级不依赖任何框架来实现

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.