Hello @alexlii,
First of all, thank you for your interest in WP Weixin!
1.#
There has been no test done regarding multisite support so far, it maybe works out of the box or not at all.
I will investigate and report back here.
What is sure though is the same issue as with WPML applies: if the multiple sites are on different domain, or subdomains, you will run into troubles: since WP Weixin is designed to be connected to a single Official Account, and each Official Account accepts only one value for the “Webpage authorization domain name” in “Account info” > “Function setting”, calls to the WeChat API for authentication and others (actually, limited to 3 for JS API calls) will not work with multiple domains or subdomains.
One way to allow WeChat authentication with multiple (sub)domains would be to have one multisite instance dedicated to it (auth.yourdomain.com), with all the other instances calling it and do a multisite network-wide authentication. It may require some extra code.
2.#
WP Weixin is all about mobile authentication: as a matter of fact, it does not provide any authentication layer in the browser yet.
The way it works when “Enable WeChat mobile authentication” is checked:
– a user visits the site with WeChat
– the user gets automatically registered and authenticated with their WeChat Union ID (and gets authenticated at each visit if logged out)
– the user may set an email and password (but cannot change their username, remains the Union ID)
– the user may now authenticate in the browser with their email and password
Because WP Weixin is primarily an integration library, some extension plugins may need to be created on your end. Its goal is to provide the bare minimum features to integrate with the various APIs (JS_SDK and server calls).
However, it does not support WeChat payment out of the box. Two plugins exist for that (WooCommerce WeChat payment gateway or direct via QR Code), but there is nothing preventing you from extending WP Weixin for your own purposes using the provided actions, filters and JS events, all documented here.
—
Please also note that the plugin and its associated suite supporting WeChat Pay (Woo WeChatPay payment gateway for WooCommerce and WP Weixin Pay extension) are to be used with a WeChat mainland Official Account.
-
This reply was modified 6 years, 7 months ago by
Alexandre Froger. Reason: formatting
-
This reply was modified 6 years, 7 months ago by
Alexandre Froger. Reason: typo
-
This reply was modified 6 years, 7 months ago by
Alexandre Froger. Reason: precisions