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.
- PHP >= 7.1
- WordPress >=5.3
- WooCommerce >=4.5
- Clone repository
$ cd woocommerce-paypal-payments
$ composer install
$ yarn run build:dev
- Change the
PAYPAL_INTEGRATION_DATE
constant togmdate( 'Y-m-d' )
to run the latest PayPal JavaScript SDK
$ composer install
$ ./vendor/bin/phpunit
$ ./vendor/bin/phpcs
You can also use the Docker environment which includes WP, WC and all developments tools.
- Install Docker and Docker Compose.
$ cp .env.example .env
and edit the configuration in the.env
file if needed.$ yarn run docker:build
(or copy the commands from package.json if you do not haveyarn
).$ yarn docker:install
$ yarn docker:start
- Add
127.0.0.1 wc-pp.myhost
to yourhosts
file and open http://wc-pp.myhost (the default value ofWP_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:
$ yarn run docker:destroy
(all data will be lost)$ yarn run docker:build
See package.json for other useful commands.
If you want to deploy a new version, you need to do some preparation:
Clone the repository and cd
into it
The following command should get you a ZIP file ready to be used on a WordPress site.
npm run build
Make sure you have the version in the plugin root file updated.
Fix the PayPal JavaScript SDK integration date by using the current date for the PAYPAL_INTEGRATION_DATE
constant.
All feedback / bug reports / pull requests are welcome.