Enable the Fygaro payment gateway in Magento and automate your sales.
Important: This plugin requires a Plugin, Ideal or Corporate plan.
Step 1. Create Credentials in Fygaro
In your Fygaro account, go to "Settings" > "API Credentials" > "Generate New".
Secret Access Keys are, as their name implies, secret, just like your password. For your own security, Fygaro does not reveal your password to it if you forget it (you would have to set a new password). Similarly, Fygaro does not allow the retrieval of a secret access key after its initial creation.
Therefore, it is important that you download the generated file with your Public and Secret Key for future reference and use.
Step 2. Setup the Payment Button
From your Fygaro account, go back to the main screen and go to "Payment Buttons" and select "Plugin Button".
Fill in the Hook URL:
Magento: Enter your Magento website address and add /rest/V1/fygaro/webhooks/hook at the end of the address
The address will look like the example below:
3). Click "Activate Checkout" to save.
4). Copy the link that is shown on the screen by clicking "Copy to Clipboard" (You can save it in a work document to use later)
Step 3. Install Plugin in Magento
Install the composer module by running the command:
composer require fygaro/module-fygaro-payment
Enable the module by running the command:
php bin/magento: enable Fygaro_FygaroPayment
Apply the database updates by running the command:
php bin/magento setup:upgrade
Generate the module classes by running:
php bin/magento setup:di:compile
Empty the cache by running the command:
php bin/magento cache:flush
Step 4. Configure Plugin in Magento
1) Log into the administrator of your Magento site.
2). Select "Stores" > "Settings" > "Sales" > "Payment Methods" > "Fygaro Payment"
3). In the "Enable" option, verify that the checkbox is active.
4). Fill in the Public Key and Private Key fields with the data downloaded in Step 1.
5). Fill in the "Button URL" field with the link obtained in Step 2.
6). Click on "Save Settings".
Pay from Applicable Countries: Allows you to choose to display the method for all countries or only selected countries.
Specific Country Payment: Multiple select field to select countries in case of specific values of the Applicable Countries Payment option.
Minimum order total: minimum amount of the order to show the payment method.
Maximum order total: maximum amount of the order to show the payment method.
Sort order: an integer value that determines the order of the payment method in the list of payment methods in the checkout process, in case more than one is enabled.
Done, your Magento website is ready to accept payments with Fygaro.
Updated on: 03/09/2023