referralcandy / magento2-module-integration
An extension to integrate ReferralCandy on your Magento store
Package info
github.com/ReferralCandy/magento2-module-integration
Type:magento2-module
pkg:composer/referralcandy/magento2-module-integration
Requires
- php: ^7.4 || ^8.0
- magento/framework: ^102||^103
- magento/module-checkout: ^100||^101||^102||^103||^104
- magento/module-config: ^101
- magento/module-sales: ^102||^103
- magento/module-store: ^101
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-05 05:20:56 UTC
README
This guide applies if you run your store on Magento Open Source or Adobe Commerce 2.4 and install the ReferralCandy module via Composer.
Merchants on Magento Open Source or Adobe Commerce 2.4.x who are able to install modules via Composer can integrate ReferralCandy with their Magento store. You need command-line access to your Magento server; if you don't have it, ask your developer or hosting provider to run Step 1. If this procedure doesn't work for you, try email integration.
Set up Magento integration
Note: The module tracks purchases on Magento's standard order success page. Third-party checkout extensions that replace that page may interfere with referral detection. It's recommended to use the standard Magento checkout process when integrating with ReferralCandy.
Step 1: Server-side setup
To install the ReferralCandy module via Composer, run these commands from your Magento root directory:
-
Install the referralcandy/magento2-module-integration package from Composer:
composer require referralcandy/magento2-module-integration
-
Enable the module using the magento-cli:
bin/magento module:enable ReferralCandy_Integration
-
Perform a setup upgrade:
bin/magento setup:upgrade
-
Run the code compiler for Magento:
bin/magento setup:di:compile
-
If your store runs in production mode, deploy static content:
bin/magento setup:static-content:deploy
-
Flush your store's cache (recommended by Magento after module installations):
bin/magento cache:flush
Already have an older version installed? Update only the ReferralCandy package, then repeat steps 2 to 6. Your saved settings are kept.
composer update referralcandy/magento2-module-integration
Step 2: Admin dashboard setup
After ReferralCandy installation via Composer, configure the module:
-
Log in to your Magento store's admin panel.
-
Navigate to STORES and click Configuration.
-
On the configuration page, a new section called REFERRALCANDY should be available. Navigate to REFERRALCANDY and click General.
-
On the ReferralCandy dashboard, go to Account > Profile > API Tokens to find your API Access ID and API Secret ID. Copy both values.
-
Go back to the configuration page and paste the values in: your API Access ID goes into both the APP ID and API Access ID fields (they take the same value), and your API Secret ID goes into the API Secret Key field.
-
Set Module Enable to Yes and click Save Config.
-
Go to SYSTEM > Cache Management and click Flush Magento Cache.
If you ever reset your API secret in ReferralCandy, paste the new value into the API Secret Key field in Magento. Purchases are rejected until the two match.
Step 3: Test the integration
Make a test purchase in your store to ensure that referral detection works. Go to your Purchases & Referrals page to verify if purchases are tracked successfully.
If the purchase doesn't appear, go to Integrations > Standalone. Checksum errors there mean the API Secret Key in Magento doesn't match your API Secret ID. Copy it again from Account > Profile, save, and flush the cache.
Good to know
-
Purchase amount: ReferralCandy receives the order subtotal, which excludes tax, shipping and discounts.
-
Coupon rewards: ReferralCandy can't create discount codes in Magento. Create them in Magento under MARKETING > Cart Price Rules (choose Specific Coupon and Use Auto Generation), generate and export the codes, then upload them to your ReferralCandy campaign as a coupon code list.
-
Removed advocates: codes already issued are not disabled automatically. Deactivate them in Magento if needed.
Uninstall
To remove the module, run:
bin/magento module:disable ReferralCandy_Integration composer remove referralcandy/magento2-module-integration bin/magento setup:upgrade bin/magento cache:flush
Support
Email support@referralcandy.com.
License
MIT. See LICENSE.