oxid-esales/amazon-pay-module

AmazonPay module for OXID

Installs: 4 930

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 21

Forks: 9

Type:oxideshop-module


README

Amazon Pay integration for OXID eShop 6.1 until 6.5.

Documentation

Branch Compatibility

  • b-6.1.x module branch is compatible with OXID eShop compilation 6.1 and higher

Install for OXID

  • see Official documentation

Limitations

List of Limitations could be found in

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