This plugin is designed to add a new gateway to Payum to support Monetico over Sylius plugin
See https://www.monetico-paiement.fr/ for more information.
Install using Composer :
$ composer require flux-se/sylius-payum-monetico-plugin
Enable this plugin :
<?php
# config/bundles.php
return [
// ...
FluxSE\SyliusPayumMoneticoPlugin\FluxSESyliusPayumMoneticoPlugin::class => ['all' => true],
// ...
];
Enable the required route for Monetico notify :
# config/routes/flux_se_sylius_payum_monetico.yaml
flux_se_sylius_payum_monetico_notify:
resource: "@FluxSESyliusPayumMoneticoPlugin/Resources/config/routing/notify.yaml"
Using the Monetico merchant portal :
https://www.monetico-services.com/fr/test/identification/authentification.html
Click on the "Paramétrage" menu item, and finally on the sub menu item named "GESTION CODES SITES",
you will be able to email Monetico to add a "notify URL" ("URL du CGI2") corresponding to the Symfony route named flux_se_sylius_payum_monetico_notify
example :
https://my_domain.tld/monetico/notify
Get your TPE number
, your KEY
and your COMPANY
(labeled "Code Site") name on your Monetico merchant portal :
https://www.monetico-services.com/fr/test/identification/authentification.html
TPE number
: can be chosen into the select menu in the right sidebar of your Monetico merchant portalKEY
: Click on the "Paramétrage" menu item, and finally on the sub menu item named "CLÉ DE SÉCURITÉ". You will be able to email the owner of the account to get yourKEY
.COMPANY
: Click on the "Paramétrage" menu item, and finally on the sub menu item named "GESTION CODES SITES". TheCOMPANY
is labelled "Code Site".
Go to the admin area, log in, then click on the left menu item "CONFIGURATION > Payment methods". Create a new payment method type "Monetico" :
Then a form will be displayed, fill-in the required fields :
-
the "code" field (ex: "monetico").
-
choose which channels this payment method will be affected to.
-
the gateway configuration (need info from here) :
NOTE1: the screenshot contains false test credentials.
-
give to this payment method a display name (and a description) for each language you need
Finally, click on the "Create" button to save your new payment method.