Wx Wechat

admin

WeChat also provides direct upload (wx.uploadFile) and download (wx.downloadFile) APIs that are not available in the browser. For game development, we need to focus on downloading the API. First of all, it is different from the purpose of the request. Client: wx.login to get temporaryCode (is called code in weixin’s api return value, and it can be used onece only) Client: Send temporaryCode to server Server: Send appid+appsecret+temporaryCode to Weixin’s server, Weixin’s server returns sessionkey (salt of temporaryCode ) and openid (openid is the unique Weixin user id). 1 Shake web pages from your browser to your phone Install the browser plug-in and link it to WeChat. Once they’re linked, just shake your phone to transfer the webpage in your browser window over to WeChat. 2 Share with friends. It triggers WeChat’s notification and sends your user a hit of dopamine. What is a template message? Instead of letting developers to send whatever to users, WeChat has 138 templates with interchangeable keywords to have a more unified experience for the end-users.

NameIDTypeRequiredDescription
Official Account ID appid string(32) Yes Specifies an Official Account ID assigned by WeChat
Example:wx8888888888888888
Merchant ID mch_id string(32) Yes Specifies merchant ID assigned by WeChat Payment
Example:1900000109
Sub Official Account ID sub_appid string(32) No Specifies an Sub Official Account ID assigned by WeChat
Specifies Sub merchant ID of institution's sub-merchant assigned by WeChat Pay
Note:Only for Institutional mode
Example:wx8888888888888888
Sub Merchant ID sub_mch_id string(32) Yes Specifies Sub merchant ID assigned by WeChat Payment
Specifies Sub merchant ID of institution's sub-merchant assigned by WeChat Pay
Note:Only for Institutional mode
Example:1900000109
Device ID device_info string(32) No Specifies a Terminal device ID (such as store number as defined by the merchant)
Example:013467007045764
Random string nonce_str string(32) Yes 32 characters or fewer. For more information, see Random string Algorithm .
Example:5K8264ILTKCH16CQ2502SI8ZNMTM67VS
Signature sign string(64) Yes For more information, see Signature Algorithm.
Example:C380BEC2BFD727A4B6845133519F3AD6
Sign type sign_type string(32) NO Currently HMAC-SHA256 and MD5 are supported, default is MD5. This parameter must be submitted if HMAC-SHA256 is chosen
Example:HMAC-SHA256/MD5
Item Description body string(128) Yes Please refer to Item Description
Example:Pay for QQ Coins
Version ID version string(32) Yes Fixed value: 1.0
Example:1.0
Items Details detail string(6000) Yes Detailed mcc code described in JSON format. Please use CDATA tag to protect the JSON string when transferring data.
goods_detail
└ wxpay_goods_id string
Required 32
Note: MCC code is now required when calling payment APIs.
Please refer to , part 7 for the MCC code list. And please refer to the samples of how to transfer the mcc code.

Example:{'goods_detail': [{ 'wxpay_goods_id ':'1001'}] }
Additional Data attach string(128) No Allow merchants an additional field to be returned in the payment notification after submitting a payment to the Query Order API
Example:User-Defined Data
Merchant Order Number out_trade_no string(32) Yes 32 alphanumeric characters or less. For more information, see Merchant's Order Number.
Example:1217752501201407033233368018
Bid price total_fee int Yes Specifies the total order amount. The units are expressed in cents as integers. For more details, see Payment Amount.
Example:888
Currency Type fee_type string(16) Yes ISO-4217 standard compliant and be described by three characters based code. For more information, see Currency Type.
Note: This field could be set as settlement currency type of mch_id or CNY. part 1 for the settlement currency types.
Example:USD
Terminal IP spbill_create_ip string(64) Yes Specifies the machine IP that calls the WeChat Payment API
Note: Both IPv4 and IPv6 are supported.
Example:8.8.8.8
Item Label goods_tag string(32) No Specifies the label of goods, which is a parameter in the coupon feature for businesses.
Authorization Code auth_code string(128) Yes Specifies the authorization code for scanning a barcode/QR Code on Quick Pay
Note: The WeChat barcodes are constructed with 18 numbers, with the start value of 10, 11, 12, 13, 14 or 15.
Barcodes with 10-14 are for the China mainland users, while barcodes with 15 are for the China Hong Kong users, who cannot use WeChat cross-border pay.

Example:120061098828009406
Transaction Start Time time_start string(14) NoSpecifies the transaction creation time in the format yyyyMMddHHmmss, such as 20091225091010 for Dec 25, 2009 09:10:10 (UTC+08). For more information, see Time Protocol.
Example:20091225091010
Transaction End Time time_expire string(14) NoSpecifies the transaction end time in the format yyyyMMddHHmmss, such as 20091227091010 for Dec 27, 2009 09:10:10 (UTC+08). For more information, see Time Protocol.
Example:20091227091010
Scenarios Information scene_info string(256) No Specify the payment scenarios, such as the store or mall information.
{
“store_id”:””, //Unique ID of store, Optional, string(32)
“store_name”:””//Store name, Optional, string(64)
}
Example:{ 'store_id': 'SZT10000',
'store_name':'Dining Hall of Tencent Mansion' }

Description

The plugin allow you customize the information when you share link in Wechat to your friend or timeline or in QQ to your friend or QZone.
Customize description and other meta information has supported in version 1.4.

Notice

If you want to share link in Wechat directly, please follow these steps:
1. Verify your account on WeChat Admin Platform.
2. Enter AppID and AppSecret (Development > Basic Configuration).
3. Add your Server IP to IP White List (Development > Basic Configuration > IP whitelist).
4. Add your host to JSAPI Secure Domain (Settings > Account Info > Function setting > JS interface security domain name).
Otherwise you must share link to Wechat via QQ to custom share info, or share in QQ directly.

Premium Version

In Premium Verison, you can:
1. Customize share info of taxonomy (Premium Version) (WordPress 4.4 or later).
2. Use all features included in Free Verison.

Only ¥9 for Premium Version:
https://www.qwqoffice.com/shop.php?mod=product&id=1

Update from previous versions of 1.4.1

Because the post meta key was changed, you must reset all share information after update.

Installation

Download
Upload to your /wp-contents/plugins/ directory.
Activate the plugin through the ‘Plugins’ menu in WordPress.

Configuration

Go to Setting -> Wechat Share, then check the post type you want to customize the information and save setting. Posts, Pages and Media are default checked post types.

FAQ

Why I can’t find the meta box in other post type?

Wx Wechat Login

Go to Setting > Wechat Share, then check the post type you want to customize the information and save setting.

Customize the information is not working when I share link in Wechat directly.

Wx Wechat

If you want to share link in Wechat directly, please follow these steps:
1. Verify your account on WeChat Admin Platform.
2. Enter AppID and AppSecret (Development > Basic Configuration).
3. Add your Server IP to IP White List (Development > Basic Configuration > IP whitelist).
4. Add your host to JSAPI Secure Domain (Settings > Account Info > Function setting > JS interface security domain name).
Otherwise you must share link to Wechat via QQ to custom share info, or share in QQ directly.

Home page share information setting is not working.

Please go to edit page to set the share information if you choose a page as front page.

How to modify the minimum of first paragraph, which will be showed as the description of post?

Wx Wechat Download

Use the filter wxcs_first_paragraph_min_length, example:
add_filter( 'wxcs_first_paragraph_min_length', 'change_first_paragraph_min_length' );
function change_first_paragraph_min_length(){
return 5;
}

How to modify the default share title format?

Use the filter wxcs_share_title_format, example:
add_filter( 'wxcs_share_title_format', 'change_wxcs_share_title_format' );
function change_wxcs_share_title_format(){
return '{{title}} {{blogname}}';
}

Reviews

Wx Wechat

Hi使用woocommerce在微信内部打开网站产品连接进行朋友圈分享,所有都不带缩略图;进行发送给朋友,有的产品有缩略图,有的产品没有缩略图。微信公众号设置完全按照插件的instructions来设置,应该是完全没有错误,服务号也认证了。请问是哪里可能出现了问题呢?非常感谢!