Giter VIP home page Giter VIP logo

weixin-pay's Introduction

二维码生成接口

描述: 生成微信支付所需的二维码链接地址(通过这个地址用插件生产二维码图片扫描进行支付)
Request URL:http://127.0.0.1:8011/pay/qrcode
Request Method: POST(content-Type=application/json)

参数:

名称 类型 是否必须 参数描述
body String 必须 订单描述
out_trade_no String 必须 交易流水号(不可重复,重复就会显示二维码失效)
total_fee String 必须 金额

这里只是填了一些必要的参数,更多请求参数详情访问微信的开发文档

https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1

关闭订单接口

描述: 由于某些原因我们可以进行订单进行关闭,让其失效
Request URL: http://127.0.0.1:8011/pay/close_order
Request Method: POST(content-Type=application/json)

参数:

名称 类型 是否必须 参数描述
out_trade_no String 必须 交易流水号

这里只是填了一些必要的参数,更多请求参数详情访问微信的开发文档

https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_3

退款接口

描述: 由于某些原因我们可以进行退款
Request URL: http://127.0.0.1:8011/pay/refund
Request Method: POST

参数:

名称 类型 是否必须 参数描述
out_trade_no String 必须 交易流水号
out_refund_no String 必须 金额(随机数 不会重复就行)
total_fee String 必须 支付订单金额
refund_fee String 必须 退款金额

这里只是填了一些必要的参数,更多请求参数详情访问微信的开发文档

https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_4

退款结果查询接口

描述: 对退款结果进行查询
Request URL: http://127.0.0.1:8011/pay/refund_query
Request Method: POST(content-Type=application/json)

参数:

名称 类型 是否必须 参数描述
out_trade_no String 必须 交易流水号

这里只是填了一些必要的参数,更多请求参数详情访问微信的开发文档

https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_5

weixin-pay's People

Contributors

niezhiliang avatar

Watchers

 avatar  avatar

Forkers

wlhebut

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.