Find a file
2021-10-06 15:57:57 +02:00
.github CI no longer authenticates with Packagist 2021-08-30 17:58:35 +02:00
docker Use Composer v1 2021-08-30 17:51:36 +02:00
modules Void authorized transaction when payment is not saved 2021-10-06 15:57:57 +02:00
src Update dhii/module-interface to version 0.3 2021-07-14 14:58:23 +02:00
tests Void authorized transaction when payment is not saved 2021-10-06 15:57:57 +02:00
wordpress_org_assets Update wp.org assets 2021-09-14 15:42:33 -03:00
.editorconfig Keep using spaces in js code for now 2021-08-20 17:03:15 +03:00
.env.example Add docker 2021-08-19 16:48:35 +03:00
.gitattributes Fix text file filter 2021-09-30 15:16:53 +02:00
.gitignore Remove PHPStorm configuration 2021-08-30 17:55:17 +02:00
bootstrap.php Revert container cache fix 2021-09-09 12:33:24 +03:00
changelog.txt Update release date in changelog 2021-09-29 14:31:20 -03:00
composer.json Allow phpunit 7.x, 8.x for PHP 7.1+ 2021-08-18 17:14:44 +03:00
composer.lock Force authorization intent when purchasing subscription product 2021-10-05 12:12:19 +02:00
docker-compose.yml Add docker 2021-08-19 16:48:35 +03:00
LICENSE Initial commit 2020-03-19 16:47:08 +01:00
modules.php Add vaulting module 2021-09-16 10:21:31 +02:00
package.json Merge branch 'trunk' into fix-cmd 2021-09-30 10:24:38 +03:00
patchwork.json fix tests and cs 2021-01-19 09:50:07 +01:00
phpcs.xml.dist Merge branch 'trunk' into bug/fix-project-configuration 2021-09-14 08:30:30 +02:00
phpunit.xml.dist delete some references to modules.locale 2020-09-01 14:53:03 +03:00
README.md Use yarn for building package, and improve readme 2021-08-30 17:21:45 +03:00
readme.txt Update changelog 2021-09-24 09:39:42 +02:00
woocommerce-paypal-payments.php Merge branch 'trunk' into release/1.6.0 2021-09-24 09:29:43 +02:00
yarn.lock codesniffer cleanup 2020-06-29 13:35:37 +03:00

WooCommerce PayPal Payments

PayPal's latest complete payments processing solution. Accept PayPal, Pay Later, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage.

Requirements

  • PHP >= 7.1
  • WordPress >=5.3
  • WooCommerce >=4.5

Development

  1. Clone repository
  2. $ cd woocommerce-paypal-payments
  3. $ composer install
  4. $ yarn run build:dev
  5. Change the PAYPAL_INTEGRATION_DATE constant to gmdate( 'Y-m-d' ) to run the latest PayPal JavaScript SDK

Unit tests and code style

  1. $ composer install
  2. $ ./vendor/bin/phpunit
  3. $ ./vendor/bin/phpcs

Docker

You can also use the Docker environment which includes WP, WC and all developments tools.

  1. Install Docker and Docker Compose.
  2. $ cp .env.example .env and edit the configuration in the .env file if needed.
  3. $ yarn run docker:build (or copy the commands from package.json if you do not have yarn).
  4. $ yarn run docker:install
  5. $ yarn run docker:start
  6. Add 127.0.0.1 wc-pp.myhost to your hosts file and open http://wc-pp.myhost (the default value of WP_DOMAIN in .env).

Tests and code style:

  • $ yarn run docker:test
  • $ yarn run docker:lint

After some changes in .env (such as PHP, WP versions) you may need to rebuild the Docker image:

  1. $ yarn run docker:destroy (all data will be lost)
  2. $ yarn run docker:build

See package.json for other useful commands.

Building a release package

If you want to build a release package (that can be used for deploying a new version on wordpress.org or manual installation on a WP website via ZIP uploading), follow these steps:

  1. Clone the repository and cd into it.
  2. Make sure you have the version in the plugin root file updated.
  3. Update the PayPal JavaScript SDK integration date by using the current date for the PAYPAL_INTEGRATION_DATE constant.
  4. The following command should get you a ZIP file ready to be used on a WordPress site:
$ yarn run build

License

GPL-2.0 License

Contributing

All feedback / bug reports / pull requests are welcome.