The authentication process from Woocommerce can be overridden by the Integrate Firebase PRO plugin. Below is the example configuration of Woocommerce Account & Privacy.
From now, if you use the plugin authentication shortcode, users will be created in WordPress & Firebase at the same time. You can try the process at the Demo Shop. You can follow to checkout page, the sample product is an abook that I wrote. You don’t have to purchase it.
The first iteration of the extension is to sync order and product to firebase (realtime / firestore). After successfully purchase, the order will be synced to firebase.
The purpose of syncing Orders & Products is to have the flexibility of assigning user roles / permissions based on their purchases - this can be done via custom cloud functions.
The configuration is straight forward, after installing the plugin, you will have to pick the right type of database and the name for the database in order to save the Woocommerce’s order.
Since v2.0.0, when you delete a product in WooCommerce, it will also delete in Firebase. Product data model will also base on WooCommerce Rest API structure. The existing product structure will be Deprecated in the next few releases - please modify your code in order to avoid breaking.
Product data structure is based on WooCommerce Product API. If you haven’t updated your code to match with the new Product data structure, please do so. The existing structure will be deprecated in the next release.
If you enter the collection name for product in the settings, the WooCommerce product will be synced to Realtime / Firestore. This schema for product is based on WooCommerce Product API.
First, you need to set the collections name for the memberships in Firebase. Then when an order is purchased or somebody edits the membership, it will be updated to firebase.