oxid-esales/amazon-pay-module

AmazonPay module for OXID

Installs: 8 102

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 19

Forks: 9

Type:oxideshop-module

v3.1.6-rc.1 2024-06-27 21:32 UTC

README

Amazon Pay integration for OXID eShop 6.3 to 7.1.

Documentation

Branch compatibility

  • b-6.3.x module branch is compatible with OXID eShop compilation 6.3 to 6.5
  • b-7.0.x module branch is compatible with OXID eShop compilation 7.0 and higher

Installation

Limitations

Find the list of limitations in the

Running tests

Warning: Running tests will reset the shop.

Requirements:

  • Ensure test_config.yml is configured:
    partial_module_paths: osc/amazonpay
    * ```
    activate_all_modules: true
    run_tests_for_shop: false
    run_tests_for_modules: true
    
  • For codeception tests to be running, selenium server should be available, several options to solve this:

Develop javascript

  • we are using grunt
  • currently grunt is not installed in php container
  • so install it on your host system: https://gruntjs.com/getting-started
    • sudo npm install -g grunt-cli
    • cd source/modules/osc/amazonpay/resources
    • npm install grunt --save-dev
  • using: grunt
  • cd source/modules/osc/amazonpay/resources
  • grunt # this command compiles the sass => out/src/css/* and the out/src/js/*

Run

Running phpunit tests:

vendor/bin/runtests

Running phpunit tests with coverage reports (report is generated in .../amazonpay/Tests/reports/ directory):

XDEBUG_MODE=coverage vendor/bin/runtests-coverage

Running codeception tests default way (Host: selenium, browser: chrome):

vendor/bin/runtests-codeception

Running codeception tests example with specific host/browser/testgroup:

SELENIUM_SERVER_HOST=seleniumchrome BROWSER_NAME=chrome vendor/bin/runtests-codeception --group=examplegroup