Avardas' payment module for Prestashop.
This module reads its language settings from Prestashop:
International -> Localization -> Languages -> Language code
field
It is required to use the IETF language tags (e.g. en-US, fi-FI) for this module to have correct language shown in checkout.
Clone this repo into your modules
git clone [email protected]:avarda-ab/PrestaShop-Checkout-3-module.git avardapayments
Always start a new branch for your work
Remember to lint your code
composer install --dev
php vendor/bin/php-cs-fixer fix
Backend settings and order refunds are a a react app. The source can be found under _deb/back
.
To build new backend js use:
cd _dev/back/
npm install
gulp release
Get test account from avarda (TODO: could there be a "generic" test account?) Test person information can be found from: https://docs.avarda.com/testing/ And for Finland there is a special test person who is not in the above url
key | value |
---|---|
firstname | Rolf |
lastname | Testimies |
[email protected] | |
street | Testaajanpolku 17 |
zip | 00200 |
city | Helsinki |
socsec | 030883-925M |
And for signicat validation you must use nordea and their test account DEMOUSER3
Github action will create a new release package. For the developer the following steps must be taken:
- Make sure your changes are merged to the
main
branch - Test your changes in the main branch
- Up the version number in
avardapayments.php
- build js
- Update
CHANGELOG.md
- Make a tag for the release and push it
git tag vX.X.X
git push --tags
- wait a moment for the new package to be added to the release
- test the package