Skip to content

Commit

Permalink
Improved doucmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Allimant committed Nov 22, 2022
1 parent 63fd722 commit 1fade0e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Form/ConfigurationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions I18n/backOffice/default/fr_FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, <a target="_new" href="https://docs.axepta.bnpparibas/display/DOCBNP/Test+Cards+-+Authentication">use these test cards</a> to test the payment.' => 'En mode test, utilisez <a target="_new" href="https://docs.axepta.bnpparibas/display/DOCBNP/Cartes+de+test+-+Authentification">ces cartes de test</a> pour tester le paiement sur votre boutique.',
);
12 changes: 7 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Axepta

This module adds the payment solution Axepta.
This module adds the payment solution Axepta from BNP Paribas

## Installation

Expand All @@ -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
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
3 changes: 3 additions & 0 deletions templates/backOffice/default/module-configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
{render_form_field field="merchant_id"}
{render_form_field field="hmac"}
{render_form_field field="crypt_key"}
<div class="alert alert-info">
{intl l='When in test mode, <a target="_new" href="https://docs.axepta.bnpparibas/display/DOCBNP/Test+Cards+-+Authentication">use these test cards</a> to test the payment.' d='axepta.bo.default'}
</div>
</div>
<div class="col-md-4">
<p class="title title-without-tabs">{intl d='axepta.bo.default' l="Payment configuration"}</p>
Expand Down

0 comments on commit 1fade0e

Please sign in to comment.