All Projects → taoxhsmile → h5-java-wechat-pay

taoxhsmile / h5-java-wechat-pay

Licence: other
java微信公众号支付开发代码

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to h5-java-wechat-pay

python-wechat-pay
Use Python3, Django, Django-rest-framework to achieve wechat payment. 微信支付、服务器异步通知、订单查询、退款
Stars: ✭ 18 (+12.5%)
Mutual labels:  wechat-pay
autojs-webView
autojs的webView实现,支持初始化脚本注入、jsBridge两端互调
Stars: ✭ 38 (+137.5%)
Mutual labels:  h5
imitate-beautiful-thing
使用vue 做的一个h5 app。Using Vue to imitate a app.
Stars: ✭ 56 (+250%)
Mutual labels:  h5
editor-ovo
A rich text editor for mobile web. Mixed editing of photos and Emoji 一个适用于移动web的富文本编辑器。照片加emoji的混合编辑
Stars: ✭ 29 (+81.25%)
Mutual labels:  h5
html-page-call-native
❤️ HTML5 call native app
Stars: ✭ 33 (+106.25%)
Mutual labels:  h5
ztaro
一套基于taro, zoro的完整的微信小程序及h5开发解决方案
Stars: ✭ 37 (+131.25%)
Mutual labels:  h5
anger-wechat
👿Angry wechat api 微信支付、小程序、各种接口的封装。
Stars: ✭ 17 (+6.25%)
Mutual labels:  wechat-pay
likeshop
🔥🔥🔥 likeshop开源免费商用电商系统,PC商城、H5商城、小程序商城、安卓APP商城、苹果APP商城,免费商用。场景:B2C商城,新零售商城,社交电商商城,分销系统商城,分销电商商城,小程序商城,商城源码,商城系统,单商户,多商户,电商系统,直播,uniapp,uni-app,B2B2C,B2B,O2O,ERP,Wechat,交易系统,内容系统,雷达,crm
Stars: ✭ 160 (+900%)
Mutual labels:  wechat-pay
cn-pay
比较好用的支付宝,微信支付node版SDK
Stars: ✭ 56 (+250%)
Mutual labels:  wechat-pay
vue-cropper-h5
h5的万能裁剪框,基于vue,样式类似微信,超好用!走过路过,请留下你们的小星星
Stars: ✭ 114 (+612.5%)
Mutual labels:  h5
h5-video-player
Browser full-screen H5 video player.
Stars: ✭ 14 (-12.5%)
Mutual labels:  h5
AppPay
💸 AppPay专注于App支付的库,几句代码轻松搞定微信支付、支付宝支付。集成更简单。
Stars: ✭ 33 (+106.25%)
Mutual labels:  wechat-pay
Springboard-Data-Science-Immersive
No description or website provided.
Stars: ✭ 52 (+225%)
Mutual labels:  h5
A3Mall
A3Mall B2C开源商城系统使用Thinkphp6开源框架,前端采用uniapp开发,支持微信公众号商城、H5商城、小程序商城、APP商城、PC商城,前后端源码100%开源,支持免费商用。
Stars: ✭ 142 (+787.5%)
Mutual labels:  wechat-pay
af-pay
精简的Android支付SDK,对支付宝alipaySdk和微信wechat-sdk进行了二次封装,支持支付宝、微信和银联支付,支持客户端/服务端下单支付
Stars: ✭ 110 (+587.5%)
Mutual labels:  wechat-pay
npy2bdv
Fast writing of numpy 3d-arrays into HDF5 Fiji/BigDataViewer files.
Stars: ✭ 25 (+56.25%)
Mutual labels:  h5
spa-custom-hooks
💯 Custom hook of business layer (asynchronous task notification solution), supporting various applets and Vue architectures (uni app, wepy, mpvue, etc.)
Stars: ✭ 307 (+1818.75%)
Mutual labels:  h5
drawing-board
canvas-drawing-board
Stars: ✭ 23 (+43.75%)
Mutual labels:  h5
Front-End-Study
学习、总结、提升
Stars: ✭ 13 (-18.75%)
Mutual labels:  h5
gangxiaoer-taro
博雅塔小程序,基于Taro的版本,同步发布百度小程序,支付宝小程序。
Stars: ✭ 16 (+0%)
Mutual labels:  h5

java-wechat-h5

1、阅读微信参数查看及配置.docx文档进行配置

2、微信支付流程 1)获取code 2)通过code获取openid 3)调用统一下单接口 4)通过微信JSAPI中的getBrandWCPayRequest调用支付 5)支付回调修改订单状态

3、文档目录介绍 util/* 存放所有用到的工具方法 controll/* 控制器类 jar/* 相关jar包

4、业务流程 举例: 支付页面地址: payUrl(http://www.aa.com/b/pay.action) 1)要跳转到支付页面时,如果是微信浏览器直接跳转到"https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + appid + "&redirect_uri=" + URLEncoder.encode(payUrl) + "&response_type=code&scope=snsapi_base&state=123#wechat_redirect" 系统会自动跳转到payUrl并且返回一个参数code(http://www.aa.com/b/pay.action?code=aaa)

后续步骤直接通过代码了解 controll/payController

代码使用spring-mvc实现 采用servlet同理

如有疑问可参考官方文档说明 微信官方文档地址 获取code文档地址:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140842&token=&lang=zh_CN(搜索:[第一步:用户同意授权,获取code]) 获取openid文档:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317851&token=&lang=zh_CN(搜索[第二步:通过code获取access_token]) 统一下单地址:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1 微信内H5调起支付:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6

程序值放了关键性代码,但足够详细

最后祝各位对接顺利(^o^)/~

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].