Find a file
2021-08-18 17:14:44 +03:00
.github Run ci on php 7.3 2021-07-12 17:23:11 +02:00
modules Update fees session on each after calculate totals 2021-08-16 11:08:58 +02:00
src Update dhii/module-interface to version 0.3 2021-07-14 14:58:23 +02:00
tests Fix unit tests 2021-08-13 17:09:27 +02:00
wordpress_org_assets Add readme.txt and assets for wordpress.org. 2020-10-15 16:28:07 -03:00
.gitignore Do not return stored tokens in meta but call the endpoint each time 2021-03-29 11:57:03 +02:00
.travis.yml Update .travis.yml 2021-07-27 15:23:57 -05:00
changelog.txt Update changelog and bump versions for release 2021-08-09 10:10:30 -07:00
composer.json Allow phpunit 7.x, 8.x for PHP 7.1+ 2021-08-18 17:14:44 +03:00
LICENSE Initial commit 2020-03-19 16:47:08 +01:00
package.json Update changelog and bump versions for release 2021-08-09 10:10:30 -07:00
patchwork.json fix tests and cs 2021-01-19 09:50:07 +01:00
phpcs.xml.dist Update dhii/module-interface to version 0.3 2021-07-14 14:58:23 +02:00
phpunit.xml.dist delete some references to modules.locale 2020-09-01 14:53:03 +03:00
README.md replace 'PayPal Pay Later' with just 'Pay Later' 2021-03-09 13:43:24 +02:00
readme.txt Update changelog and bump versions for release 2021-08-09 10:10:30 -07:00
woocommerce-paypal-payments.php Do action on container built and app initialized 2021-08-11 10:33:42 +03: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.0
  • 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

Note: PHPUnit needs at least PHP 7.3.

Unit tests and code style

  1. $ composer install
  2. $ ./vendor/bin/phpunit
  3. $ ./vendor/bin/phpcs src modules woocommerce-paypal-payments.php --extensions=php

Preparation for wordpress.org release

If you want to deploy a new version, you need to do some preparation:

Clone

Clone the repository and cd into it

Build

The following command should get you a ZIP file ready to be used on a WordPress site.

npm run build

Update version

Make sure you have the version in the plugin root file updated.

Fixate integration date

Fix the PayPal JavaScript SDK integration date by using the current date for the PAYPAL_INTEGRATION_DATE constant.

License

GPL-2.0 License

Contributing

All feedback / bug reports / pull requests are welcome.