实例介绍
采用qt开发的原生微信支付,亲测可用,只要将demo中的appid等商户信息自己替换即可使用,内含测试apk,具体详见https://blog.csdn.net/clinuxf/article/details/79456138
【实例截图】
【核心代码】
dcea1e48-d2ca-4311-8dcc-9d8c483e4ccc
└── WxPayDemo
├── android
│ ├── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── libs
│ │ ├── alipaySdk-20170309.jar
│ │ ├── android-support-v13.jar
│ │ ├── android-support-v4.jar
│ │ ├── gson-2.1.jar
│ │ ├── gson-2.1-javadoc.jar
│ │ ├── gson-2.1-sources.jar
│ │ ├── libammsdk.jar
│ │ ├── mta-sdk-1.6.2.jar
│ │ ├── okhttp-3.6.0.jar
│ │ ├── okio-1.11.0.jar
│ │ ├── open_sdk_r5781.jar
│ │ └── org.apache.http.legacy.jar
│ ├── res
│ │ ├── anim
│ │ │ └── push_up_in.xml
│ │ ├── color
│ │ │ ├── mm_actbtn_text.xml
│ │ │ ├── mm_btn_text.xml
│ │ │ ├── mm_choice_text_color.xml
│ │ │ ├── mm_hyper_text.xml
│ │ │ ├── mm_list_textcolor_one.xml
│ │ │ ├── mm_list_textcolor_time.xml
│ │ │ ├── mm_list_textcolor_two.xml
│ │ │ ├── mm_pref_summary.xml
│ │ │ ├── mm_pref_title.xml
│ │ │ ├── mm_style_one_btn_text.xml
│ │ │ ├── mm_style_two_btn_text.xml
│ │ │ └── mm_title_btn_text.xml
│ │ ├── drawable
│ │ │ ├── btn_style_alert_dialog_button.xml
│ │ │ ├── btn_style_alert_dialog_cancel.xml
│ │ │ ├── btn_style_alert_dialog_special.xml
│ │ │ ├── btn_style_one.xml
│ │ │ ├── list_selector_background.xml
│ │ │ ├── mm_checkbox_btn.xml
│ │ │ ├── mm_checkbox_mini.xml
│ │ │ ├── mm_edit.xml
│ │ │ ├── mm_submenu.xml
│ │ │ ├── mm_title_btn_back.xml
│ │ │ ├── mm_title_btn_right.xml
│ │ │ ├── preference_first_item.xml
│ │ │ ├── preference_item.xml
│ │ │ ├── preference_last_item.xml
│ │ │ └── preference_one_item.xml
│ │ ├── drawable-hdpi
│ │ │ ├── btn_check_off_disable.png
│ │ │ ├── btn_check_off_normal.png
│ │ │ ├── btn_check_on_disable.png
│ │ │ ├── btn_check_on_normal.png
│ │ │ ├── btn_style_alert_dialog_background.9.png
│ │ │ ├── btn_style_alert_dialog_button_normal.9.png
│ │ │ ├── btn_style_alert_dialog_button_pressed.9.png
│ │ │ ├── btn_style_alert_dialog_cancel_normal.9.png
│ │ │ ├── btn_style_alert_dialog_special_normal.9.png
│ │ │ ├── btn_style_alert_dialog_special_pressed.9.png
│ │ │ ├── btn_style_one_disabled.9.png
│ │ │ ├── btn_style_one_focused.9.png
│ │ │ ├── btn_style_one_normal.9.png
│ │ │ ├── btn_style_one_pressed.9.png
│ │ │ ├── ic_dialog_alert.png
│ │ │ ├── ic_dialog_long_click.png
│ │ │ ├── ic_preference_first_normal.9.png
│ │ │ ├── ic_preference_first_pressed.9.png
│ │ │ ├── ic_preference_last_normal.9.png
│ │ │ ├── ic_preference_last_pressed.9.png
│ │ │ ├── ic_preference_normal.9.png
│ │ │ ├── ic_preference_one_normal.9.png
│ │ │ ├── ic_preference_one_pressed.9.png
│ │ │ ├── ic_preference_pressed.9.png
│ │ │ ├── ic_preference_single_normal.9.png
│ │ │ ├── ic_preference_single_pressed.9.png
│ │ │ ├── ic_preference_top_normal.9.png
│ │ │ ├── ic_preference_top_pressed.9.png
│ │ │ ├── mm_checkbox_mini_checked.9.png
│ │ │ ├── mm_checkbox_mini_normal.9.png
│ │ │ ├── mm_edit_focused.9.png
│ │ │ ├── mm_edit_normal.9.png
│ │ │ ├── mm_listitem_disable.9.png
│ │ │ ├── mm_listitem_normal.9.png
│ │ │ ├── mm_listitem_pressed.9.png
│ │ │ ├── mm_submenu_normal.png
│ │ │ ├── mm_submenu_pressed.png
│ │ │ ├── mm_title_act_btn_disable.9.png
│ │ │ ├── mm_title_act_btn_focused.9.png
│ │ │ ├── mm_title_act_btn_normal.9.png
│ │ │ ├── mm_title_act_btn_pressed.9.png
│ │ │ ├── mm_title_back_focused.9.png
│ │ │ ├── mm_title_back_normal.9.png
│ │ │ ├── mm_title_back_pressed.9.png
│ │ │ ├── mm_title_bg.9.png
│ │ │ ├── mm_title_btn_focused.9.png
│ │ │ ├── mm_title_btn_normal.9.png
│ │ │ ├── mm_title_btn_pressed.9.png
│ │ │ ├── mm_trans.png
│ │ │ ├── send_img.jpg
│ │ │ ├── send_music_thumb_backup.png
│ │ │ └── send_music_thumb.png
│ │ ├── drawable-ldpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ ├── layout
│ │ │ ├── add_fav_to_wx.xml
│ │ │ ├── alert_dialog_menu_layout.xml
│ │ │ ├── alert_dialog_menu_list_layout_cancel.xml
│ │ │ ├── alert_dialog_menu_list_layout_special.xml
│ │ │ ├── alert_dialog_menu_list_layout_title.xml
│ │ │ ├── alert_dialog_menu_list_layout.xml
│ │ │ ├── bc_pay.xml
│ │ │ ├── entry.xml
│ │ │ ├── get_from_wx.xml
│ │ │ ├── image_button.xml
│ │ │ ├── mm_activity.xml
│ │ │ ├── mm_example_ui.xml
│ │ │ ├── mm_preference_catalog.xml
│ │ │ ├── mm_preference_checkbox.xml
│ │ │ ├── mm_preference_child.xml
│ │ │ ├── mm_preference_content_choice.xml
│ │ │ ├── mm_preference_content_domainmaillist.xml
│ │ │ ├── mm_preference_content_domainmail.xml
│ │ │ ├── mm_preference_content_keyvalue.xml
│ │ │ ├── mm_preference_dialog_edittext.xml
│ │ │ ├── mm_preference_image.xml
│ │ │ ├── mm_preference_info.xml
│ │ │ ├── mm_preference_list_content.xml
│ │ │ ├── mm_preference_null.xml
│ │ │ ├── mm_preference_screen.xml
│ │ │ ├── mm_preference_self_vuser.xml
│ │ │ ├── mm_preference_submenu.xml
│ │ │ ├── mm_preference_widget_empty.xml
│ │ │ ├── mm_preference.xml
│ │ │ ├── mm_title.xml
│ │ │ ├── pay_result.xml
│ │ │ ├── pay.xml
│ │ │ ├── security_image.xml
│ │ │ ├── sendrequest_dialog.xml
│ │ │ ├── send_to_wx.xml
│ │ │ ├── show_from_wx.xml
│ │ │ └── webalert.xml
│ │ └── values
│ │ ├── color.xml
│ │ ├── dimens.xml
│ │ ├── libs.xml
│ │ ├── strings.xml
│ │ ├── styles.xml
│ │ └── themes.xml
│ └── src
│ ├── com
│ │ └── TimeLink
│ │ └── fenkewang
│ │ ├── bean
│ │ │ └── WeChatInfo.java
│ │ ├── common
│ │ │ ├── Config.java
│ │ │ └── MyApplication.java
│ │ ├── MainActivity.java
│ │ ├── PayActivity.java
│ │ ├── utils
│ │ │ ├── OkHttpUtils.java
│ │ │ ├── Util.java
│ │ │ └── WxShareAndLoginUtils.java
│ │ └── wxapi
│ │ ├── WXEntryActivity.java
│ │ └── WXPayEntryActivity.java
│ └── net
│ └── sourceforge
│ └── simcpux
│ ├── AppRegister.java
│ ├── Constants.java
│ ├── MD5.java
│ ├── MD5Util.java
│ └── Util.java
├── deployment.pri
├── main.cpp
├── main.qml
├── PayActivity_new.java
├── PayActivity_old.java
├── qml.qrc
├── WxPayClass.cpp
├── WxPayClass.h
├── WxPayDemo.pro
├── WxPayDemo.pro.user
├── WxPayDemo.pro.user.1624530
├── WxPayDemo.pro.user.763e09e
└── 微信支付Demo.apk
25 directories, 171 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论