Skip to content

avarda-ab/PrestaShop-Checkout-3-module

Repository files navigation

Avarda-Payments

Avardas' payment module for Prestashop. This module is only compatible with Prestashop 1.7.

Language settings

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.

Developing

Clone this repo into your modules

git clone git@github.com: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

Developing js parts

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

testing info

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 rolf.testimies@mailinater.com
street Testaajanpolku 17
zip 00200
city Helsinki
socsec 030883-925M

And for signicat validation you must use nordea and their test account DEMOUSER3

Releasing a new version

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages