Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Indianer3c/paypal-module

 
 

Repository files navigation

PayPal Checkout for OXID

PayPal checkout integration for OXID eShop 6.1 and above.

Documentation

Branch Compatibility

  • b-6.3.x module branch is compatible with OXID eShop compilation 6.2, 6.3, 6.4, 6.5
  • b-6.1.x module branch is compatible with OXID eShop compilation 6.1

Install for OXID >= 6.2

# Add Repositories source
$ composer config repositories.oscpaypal composer https://paypal-module.packages.oxid-esales.com/
# Install desired version of oxid-solution-catalysts/paypal module
$ composer require oxid-solution-catalysts/paypal-module ^2.0.0
# Run install
$ composer install
# Activate the module
$ ./vendor/bin/oe-console oe:module:install-configuration source/modules/osc/paypal
$ ./vendor/bin/oe-console oe:module:apply-configuration

NOTE: The location of the oe-console script depends on whether your root package is the oxideshop_ce (./bin/oe-console) or if the shop was installed from an OXID eShop edition metapackage (./vendor/bin/oe-console).

After requiring the module, you need to activate it, either via OXID eShop admin or CLI.

$ ./vendor/bin/oe-console oe:module:activate osc_paypal

Install for OXID 6.1

# Add Repositories source
$ composer config repositories.oscpaypal composer https://paypal-module.packages.oxid-esales.com/
# Install desired version of oxid-solution-catalysts/paypal module
$ composer require oxid-solution-catalysts/paypal-module ^1.0.0
# Run install
$ composer install

Activate the module

Activate the module in the OXID Backend. Choose Extensions > Modules Choose the PayPal Checkout for OXID module and choose Overview > Activate

Limitations

  • no limitations

Merging Strategy

  • The b-6.1.x branch is compatible with OXID6.1 and will not be merged into the b-6.3.x branch
  • if something changes in the b-6.3.x main branch, it must be ported to the b-6.1.x branch

Running tests

Warning: Running tests will reset the shop.

Requirements

  • Ensure test_config.yml is configured:
    partial_module_paths: osc/paypal
    * ```
    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:

Run

Running phpunit tests:

vendor/bin/runtests

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

XDEBUG_MODE=coverage vendor/bin/runtests-coverage

Running codeception tests default way (Host: selenium, browser: chrome): in OXID 6.2 and above:

vendor/bin/runtests-codeception

in OXID 6.1:

vendor/bin/runtests-selenium

Running codeception tests example with specific host/browser/testgroup: in OXID 6.2 and above:

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

in OXID 6.1:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 81.5%
  • Smarty 15.8%
  • CSS 1.1%
  • Other 1.6%