Skip to content

comfino/PrestaShop

Repository files navigation

Comfino Payment Gateway for PrestaShop

Tests PHP Version License

Notice: Version 4.3.0 is the last release compatible with PHP 7.1. The upcoming version 5.0.0 will require PHP 8.1 or higher and PrestaShop 1.7.7.0 or higher (PrestaShop 1.6.x will no longer be supported). Please plan your environment upgrade accordingly — this is especially important for PrestaShop, where a majority of active shops still run an end-of-life PHP version.

PrestaShop payment module for Comfino deferred payments gateway - installment payments, buy now pay later (BNPL) and corporate payments.

Installation

Polish

Installation guide (Polish)

English

Installation guide (English)

Compatibility

Current version (4.3.0 — last PHP 7.1 compatible release)

  • PrestaShop: 1.6.x, 1.7.x, 8.x, 9.x (minimal supported version of PrestaShop is 1.6.1.11)
  • PHP: 7.1 or higher
  • PHP extensions: ctype, curl, json, zlib

Upcoming version (5.0.0)

  • PrestaShop: 1.7.7.0 or higher, 8.x, 9.x (PrestaShop 1.6.x will not be supported)
  • PHP: 8.1 or higher
  • PHP extensions: ctype, curl, json, sodium, zlib

For legacy environments the latest version of the plugin compatible with PHP 5.6 and PrestaShop 1.6.0.14+: 3.5.5
It can be downloaded from here: comfino.zip
We strongly recommend upgrading your store environment to at least version 1.7.8.11 and using plugins version 4.x.

Development

Requirements

  • PHP 7.1 or higher
  • PrestaShop 1.6.1.11 or higher
  • PHP extensions: ctype, curl, json, zlib
  • Docker and Docker Compose (for local development)

Local development setup

# Start development environment.
docker-compose up -d

# Install dependencies.
./bin/composer install

# Run tests.
./bin/composer test

# Run tests with coverage.
XDEBUG_MODE=coverage ./bin/phpunit --coverage-html coverage

Running tests

# Using Composer.
./bin/composer test

# Direct PHPUnit execution.
./bin/phpunit

# With specific test file.
./bin/phpunit tests/MainTest.php

# With coverage report.
XDEBUG_MODE=coverage ./bin/phpunit --coverage-html coverage

Code style

# Fix code style (follows PrestaShop coding standards).
./bin/csfixer

# Check without fixing.
./vendor/bin/php-cs-fixer fix --dry-run

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

All pull requests are automatically tested against PHP 7.1-8.4 with both lowest and stable dependencies. Starting with version 5.0.0, the minimum supported PHP version will be 8.1.

License

This project is licensed under the Open Software License 3.0 - see the LICENSE file for details.

Support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages