diff --git a/Form/ConfigurationForm.php b/Form/ConfigurationForm.php index c5e1fb3..61a7b0b 100644 --- a/Form/ConfigurationForm.php +++ b/Form/ConfigurationForm.php @@ -39,7 +39,7 @@ protected function buildForm() 'constraints' => [new NotBlank()], 'required' => true, 'label' => $this->trans('Merchant ID'), - 'data' => Axepta::getConfigValue(Axepta::MERCHANT_ID, ''), + 'data' => Axepta::getConfigValue(Axepta::MERCHANT_ID, 'BNP_DEMO_AXEPTA'), ] ) ->add( @@ -49,7 +49,7 @@ protected function buildForm() 'constraints' => [new NotBlank()], 'required' => true, 'label' => $this->trans('HMAC key'), - 'data' => Axepta::getConfigValue(Axepta::HMAC, ''), + 'data' => Axepta::getConfigValue(Axepta::HMAC, '4n!BmF3_?9oJ2Q*z(iD7q6[RSb5)a]A8'), ] ) ->add( @@ -59,7 +59,7 @@ protected function buildForm() 'constraints' => [new NotBlank()], 'required' => true, 'label' => $this->trans('Blowfish encryption key'), - 'data' => Axepta::getConfigValue(Axepta::CRYPT_KEY, ''), + 'data' => Axepta::getConfigValue(Axepta::CRYPT_KEY, 'Tc5*2D_xs7B[6E?w'), ] ) ->add( diff --git a/I18n/backOffice/default/fr_FR.php b/I18n/backOffice/default/fr_FR.php index 8c3bf10..7a7874b 100644 --- a/I18n/backOffice/default/fr_FR.php +++ b/I18n/backOffice/default/fr_FR.php @@ -2,5 +2,7 @@ return array( 'Access to Axepta Platform' => 'Accès a Axepta', + 'Axepta Configuration' => 'Configuration d\'Axepta', 'Payment configuration' => 'Configuration de paiement', + 'When in test mode, use these test cards to test the payment.' => 'En mode test, utilisez ces cartes de test pour tester le paiement sur votre boutique.', ); diff --git a/Readme.md b/Readme.md index e3d1ad6..259964e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ # Axepta -This module adds the payment solution Axepta. +This module adds the payment solution Axepta from BNP Paribas ## Installation @@ -14,14 +14,16 @@ This module adds the payment solution Axepta. Add it in your main thelia composer.json file ``` -composer require thelia/axepta-module:~1.0 +composer require thelia/axepta-module ``` ## Usage -* Contact Axepta to create an account. -* Go to the module configuration and add your HMAC key, Blowfish encryption key, and your merchant id. +* Contact Axepta to create an account, or get test environment parameters (see below). +* Go to the module configuration and add your HMAC key, Blowfish encryption key, and your merchant id (MID). * Set the operation mode to production Documentation : https://docs.axepta.bnpparibas -If you want to test your configuration you can use this credit cards : https://docs.axepta.bnpparibas/display/DOCBNP/Test+Cards \ No newline at end of file +Test environment parameters : https://docs.axepta.bnpparibas/display/DOCBNP/3DSV2+Test+environment + +If you want to test your configuration you can use this credit cards : https://docs.axepta.bnpparibas/display/DOCBNP/Test+Cards+-+Authentication diff --git a/templates/backOffice/default/module-configuration.html b/templates/backOffice/default/module-configuration.html index b26f270..e216be5 100644 --- a/templates/backOffice/default/module-configuration.html +++ b/templates/backOffice/default/module-configuration.html @@ -33,6 +33,9 @@ {render_form_field field="merchant_id"} {render_form_field field="hmac"} {render_form_field field="crypt_key"} +
{intl d='axepta.bo.default' l="Payment configuration"}