This assumes that you have applied for a micro-letter payment
1. Micro-letter background configuration as shown
We test first, so add the test authorization directory and the test whitelist. Test Authorization directory is the directory where you want to initiate a micro-letter request.
For
There are two modes of micro-credit-sweep-code payment,
Model one is more complex and requires the public number configuration callback address.
Mode two is easier, just configure the callback address in your code.
I'm using mode two this time.
Requires configuration parameters,
Const APPID = ' xxx ';
Const MCHID = ' xxx ';
Const KEY = ' xxx ';
Const Appsecret = ' xxx ';
Configure the Appid,appsecret of the public number. As well as m
Micro-letter off micro-quotient payment function
The so-called distribution, is essentially a high rebate to attract users to participate in the new user funds to pay for the return of the original user, the formation of a pressure-level capital chain. The model is, in fact, a Ponzi scheme that has become a red area for central Bank Financial regulation.
"The main or those fraudulent behavior, the i
Download the latest PHP SDK on the micro-credit Payment Developer Documentation page
Http://mch.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1
This assumes that you have applied for a micro-letter payment
1. Micro-letter background configuration as shown
We test first, so add the test authorization directory a
of users, because as long as the same micro-trust Open platform account for mobile applications, Web applications and public accounts (including small programs), the user's Unionid is unique. In other words, the same user, Unionid is the same for different applications under the same micro-trust open platform.
Micro-letter Open Platform Binding applet process
Prerequisite: Micro-Credit open platform account must have completed the Developer qualifi
The use of micro-letter red envelopes has been very extensive, this article introduces the case of micro-letter red envelopes, the need to have a certified public number, and opened a micro-letter payment, merchant platform and opened the cash red envelopes the right to.
Https://pay.weixin.qq.com Merchant Landing addr
Wxpayentryactivity.java to the Wxapi folder under your project package, such as your package name is Com.xx.shop, then put it under COM.XX.SHOP.WXAPI.Set Androidmanifest.xml to support callbacks:
Wxpayentryactivity.java does not require layout files or can be laid out according to your needs.
For debugging convenience, change the code in the Wxpayentryactivity.java to onResp :
@Override public
void Onresp (Baseresp resp) {
log.d ("Onpayfinish", "onpayfinish, Errcode =" +
This example for you to share the front-end micro-letter payment JS code for your reference, the specific contents are as follows
$('. Save_patient_msg '). Click (function () {$ ('.
Save_patient_msg '). Off (' click ');
var hrdfid = Getorderid ();
var Txnamt = $ ('. sum_pay.font-red '). html (); var data = {Orderid:hrdfid, Txnamt: "0.01", Proddesc: "
This article describes the PHP version of micro-letter payment api.mch.weixin.qq.com Domain name resolution slow reasons and solutions. Share to everyone for your reference, specific as follows:
Micro-credit Payment api.mch.weixin.qq.com domain name resolution is slow, resulting in very slow payment, so how to solve t
Thinkphp and micro-payment implementation of the micro-payment plug-in, in the micro-letter call micro-letter JSSDK Implementation Payment, here are detailed code and tutorials, specifically look here:
Implemented Wxpay Hook method public Function Wxpay ($param) {req
First, let's take a look at this form:
According to the micro-credit premium red envelope interface, the development of PHP version of the API interface, now for the main code analysis.
Red Packet Interface Call request code, all request parameters are required parameters corresponding to the document:
Class Wxapi {private $app _id = ' wxxxxxxxxxxxxx ';////Public account AppID, first apply for matching public account private $app _secret = ' xxxxxxxxxxxxxxxxxxxx
XXXX '//Public number s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.