实例介绍
如果你想测试你的APP是否可以调起支付,或者后端服务器没人生成预付单给你,要你自己测试,那么这个demo可以帮到你,不过不建议在实际应用中在客户端生成预付单。如果必须这样搞,请一定要加密并且和后端确认金额,不然严重背锅
【实例截图】
【核心代码】
微信支付v3.0版
└── 微信支付v3.0版
├── wx_pay
│ ├── AndroidManifest.xml
│ ├── bin
│ │ ├── AndroidManifest.xml
│ │ └── classes
│ │ └── com
│ │ └── example
│ │ └── hpappchange
│ │ ├── BuildConfig.class
│ │ ├── Constants.class
│ │ ├── MD5.class
│ │ ├── MD5Util.class
│ │ ├── PayActivity$1.class
│ │ ├── PayActivity$2.class
│ │ ├── PayActivity$3.class
│ │ ├── PayActivity$GetPrepayIdTask.class
│ │ ├── PayActivity.class
│ │ ├── R$anim.class
│ │ ├── R$array.class
│ │ ├── R$attr.class
│ │ ├── R$color.class
│ │ ├── R$dimen.class
│ │ ├── R$drawable.class
│ │ ├── R$id.class
│ │ ├── R$layout.class
│ │ ├── R$string.class
│ │ ├── R$style.class
│ │ ├── R.class
│ │ ├── Util$SSLSocketFactoryEx$1.class
│ │ ├── Util$SSLSocketFactoryEx.class
│ │ ├── Util.class
│ │ └── wxapi
│ │ └── WXPayEntryActivity.class
│ ├── debug.keystore
│ ├── gen
│ │ └── com
│ │ └── example
│ │ └── hpappchange
│ │ ├── BuildConfig.java
│ │ └── R.java
│ ├── libs
│ │ └── libammsdk.jar
│ ├── out
│ │ └── production
│ │ └── wx_pay
│ │ ├── net
│ │ │ └── sourceforge
│ │ │ └── simcpux
│ │ │ ├── BuildConfig.class
│ │ │ ├── Constants.class
│ │ │ ├── MD5.class
│ │ │ ├── MD5Util.class
│ │ │ ├── PayActivity$1.class
│ │ │ ├── PayActivity$2.class
│ │ │ ├── PayActivity$3.class
│ │ │ ├── PayActivity$GetPrepayIdTask.class
│ │ │ ├── PayActivity.class
│ │ │ ├── R$anim.class
│ │ │ ├── R$array.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$color.class
│ │ │ ├── R$dimen.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$string.class
│ │ │ ├── R$style.class
│ │ │ ├── R.class
│ │ │ ├── Util$SSLSocketFactoryEx$1.class
│ │ │ ├── Util$SSLSocketFactoryEx.class
│ │ │ ├── Util.class
│ │ │ └── wxapi
│ │ │ └── WXPayEntryActivity.class
│ │ ├── wx_pay.apk
│ │ └── wx_pay.unaligned.apk
│ ├── project.properties
│ ├── 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.png
│ │ │ └── send_music_thumb_backup.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.xml
│ │ │ ├── alert_dialog_menu_list_layout_cancel.xml
│ │ │ ├── alert_dialog_menu_list_layout_special.xml
│ │ │ ├── alert_dialog_menu_list_layout_title.xml
│ │ │ ├── bc_pay.xml
│ │ │ ├── entry.xml
│ │ │ ├── get_from_wx.xml
│ │ │ ├── image_button.xml
│ │ │ ├── mm_activity.xml
│ │ │ ├── mm_example_ui.xml
│ │ │ ├── mm_preference.xml
│ │ │ ├── mm_preference_catalog.xml
│ │ │ ├── mm_preference_checkbox.xml
│ │ │ ├── mm_preference_child.xml
│ │ │ ├── mm_preference_content_choice.xml
│ │ │ ├── mm_preference_content_domainmail.xml
│ │ │ ├── mm_preference_content_domainmaillist.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_title.xml
│ │ │ ├── pay.xml
│ │ │ ├── pay_result.xml
│ │ │ ├── security_image.xml
│ │ │ ├── send_to_wx.xml
│ │ │ ├── sendrequest_dialog.xml
│ │ │ ├── show_from_wx.xml
│ │ │ └── webalert.xml
│ │ └── values
│ │ ├── color.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ ├── styles.xml
│ │ └── themes.xml
│ ├── src
│ │ └── com
│ │ └── example
│ │ └── hpappchange
│ │ ├── Constants.java
│ │ ├── MD5.java
│ │ ├── MD5Util.java
│ │ ├── PayActivity.java
│ │ ├── Util.java
│ │ └── wxapi
│ │ └── WXPayEntryActivity.java
│ ├── wx-pay-key2
│ ├── wx_pay.apk
│ ├── wx_pay.iml
│ └── 请先阅读这里.html
├── wx_pay_success.apk
└── 【微信支付】APP支付(Android)接口文档V3.pdf
34 directories, 193 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论