• Resolved alexlii

    (@alexlii)


    Hello,

    Two question here please:

    1.# We are running Woocomerce in Multisite, so does Wp weixin support multisite please?

    2.# As far as I know, WeChat payment need users login with WeChat, especially in mobile mode, so does it support WeChat login now please, if not, there will be quite limitation for mobile users.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alexandre Froger

    (@frogerme)

    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
    Plugin Author Alexandre Froger

    (@frogerme)

    I am marking the issue as resolved since it is more some questions about how the plugin works than a support request – please feel free to continue the thread, I’ll reply here in a timely manner.

    Thread Starter alexlii

    (@alexlii)

    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

    Actually, I already use a plugin by an author in China with the same way. But seems that they are not familiar with WordPress, and that plugin not always work well. So, actually I am looking for others.

    If there is anyway to have a test with your plugins, I would like to have a try, thanks

    Alex

    • This reply was modified 6 years, 7 months ago by alexlii.
    Plugin Author Alexandre Froger

    (@frogerme)

    Hi @alexlii !
    Actually that’s the precise reason why I developed this plugin: none of the existing code base I could find was following both WeChat AND WordPress standards, and quality was poor.
    Your feedback is really appreciated. I am currently working on and maintaining several plugin projects here on www.ads-software.com, and all is done during my free time. I will definitely test on MS because I try to address every reasonable requests whenever I see there is a demand from the community, but please bear in mind I do not have a strict timeline for that ;).

    Thread Starter alexlii

    (@alexlii)

    Thanks.

    If you like, I would like to share my plugin to you, especially the MS authentication part, so that you can understand the mechanism of wechat authentication soon.

    Leave me message if you like.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite support and WeChat login?’ is closed to new replies.