Skip to content

Amazon Pay Module for OXID eShop

License

Notifications You must be signed in to change notification settings

OXID-eSales/amazon-pay-module

Repository files navigation

Amazon Pay for OXID

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