Type
magento2-module
Flow Connector
magento2-module
proprietary
None
None
None
None
None
This module is used to integrate your Magento store with Flow.
Please make sure you are familiar with the Flow Integration Overview.
This module provides the core components for integrating with Flow.
Documentation: Flow Product Catalog
This module will sync product information to Flow in two ways:
Documentation: Flow Hosted Checkout
Once your Magento Catalog is fully synced with Flow, customers can be sent to Flow Hosted Checkout. There is a redirect URL included in this module that will send the user's cart and information to Flow Hosted Checkout.
/flowconnector/checkout/redirecttoflow?country=FRA
For localization of pricing data, please refer to the Flow.js documentation.
Documentation: Flow Webhook
Upon configuring this module with your Flow credentials, the module will configure a set of webhooks to receive event data from Flow. These webhook events are queued and processed with a cron task. For example, after a customer completes the Flow Hosted Checkout process, a series of webhook events will be sent to Magento with detailed order and payment information.
This module will dispatch several events that observers can listen to:
Flow\FlowConnector\Model\WebhookEvent::EVENT_FLOW_PREFIX
+ the event type.Flow\FlowConnector\Model\WebhookEvent::EVENT_FLOW_PREFIX
+ the event type + Flow\FlowConnector\Model\WebhookEvent::EVENT_FLOW_SUFFIX_AFTER
.Flow\FlowConnector\Model\Sync\CatalogSync::EVENT_FLOW_PRODUCT_SYNC_AFTER
.Flow\FlowConnector\Model\WebhookEvent::EVENT_FLOW_CHECKOUT_EMAIL_CHANGED
.In the require
section of your composer.json
, require the flowcommerce/flowconnector
module.
"require": {
"flowcommerce/flowconnector": "^1.0.0"
}
Then from your console run:
composer update
compose install
./bin/magento setup:upgrade
Login to your Magento Admin: - From the left menu, click on Stores -> Configuration. - Change the Scope to your store (or default store). - In the Flow -> Connector Settings, enable the connector and fill out your Flow Organization Id and Flow API Token. - After saving the configuration, the module will connect to Flow and register webhooks. You can view webhooks from your Flow Console -> Organization Settings.
Console commands provided by this module:
flow:flow-connector:catalog-sync-process Process sync skus queue and send to Flow.
flow:flow-connector:catalog-sync-queue-all Queue all products for sync to Flow catalog.
flow:flow-connector:webhook-event-process Process Flow webhook events.
flow:flow-connector:webhook-register-webhooks Register webhooks with Flow.
To update the plugin to the latest version, run:
composer update
compose install
./bin/magento setup:upgrade