Find a file
2020-11-03 14:26:19 +01:00
.github Add PR and issue templates 2020-10-22 14:49:59 -03:00
modules Merge pull request #80 from woocommerce/issue-79-strip-html-tags-from-product-description 2020-11-03 14:26:19 +01:00
src Remove unnecessary CHANGELOG.md and src/README.md 2020-10-21 13:42:23 -03:00
tests enable refunds through gateway 2020-09-28 11:47:24 +03:00
wordpress_org_assets Add readme.txt and assets for wordpress.org. 2020-10-15 16:28:07 -03:00
.gitignore delete some references to modules.locale 2020-09-01 14:53:03 +03:00
.travis.yml Minor fix in Travis script 2020-09-17 18:05:41 -03:00
changelog.txt Bump version and integration date for initial release (#69) 2020-10-15 16:42:27 -03:00
composer.json Remove “authors” from composer.json 2020-10-21 13:42:31 -03:00
LICENSE Initial commit 2020-03-19 16:47:08 +01:00
package.json fix package.json script 2020-09-01 14:45:21 +03:00
phpcs.xml.dist Rename plugin to "WooCommerce PayPal Payments" 2020-10-09 19:00:00 -03:00
phpunit.xml.dist delete some references to modules.locale 2020-09-01 14:53:03 +03:00
README.md Add to deploy instructions 2020-10-22 15:38:33 -03:00
readme.txt Bump version and integration date for initial release (#69) 2020-10-15 16:42:27 -03:00
woocommerce-paypal-payments.php Bump version and integration date for initial release (#69) 2020-10-15 16:42:27 -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, PayPal Credit, 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 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

Build the plugin and remove unnecessary files:

composer install --no-dev
yarn run build
rm -rf ./{tests,.git,.github,.gitignore,.travis.yml,composer.json,composer.lock,package.json,phpcs.xml.dist,phpunit.xml.dist,.phpunit.result.cache,yarn.lock}
rm -rf ./modules/ppcp-button/{node_modules/,.babelrc,package.json,webpack.config.js,yarn.lock}

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.