Find a file
Emili Castells 1a7dd190bf
Some checks are pending
JS Unit Tests / JavaScript Unit Tests (push) Waiting to run
CI / PHP 7.4 (push) Waiting to run
CI / PHP 8.0 (push) Waiting to run
CI / PHP 8.1 (push) Waiting to run
CI / PHP 8.2 (push) Waiting to run
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
PR Playground Demo / prepare_version (push) Waiting to run
PR Playground Demo / build_plugin (push) Blocked by required conditions
PR Playground Demo / create_archive (push) Blocked by required conditions
PR Playground Demo / Comment on PR with Playground details (push) Blocked by required conditions
Merge pull request #4081 from woocommerce/dev/release/3.4.0
Update trunk to what was released in dev/release/3.4.0
2026-02-12 09:47:21 +01:00
.ddev Update DDEV setup 2026-01-08 16:59:31 +02:00
.github Merge pull request #4081 from woocommerce/dev/release/3.4.0 2026-02-12 09:47:21 +01:00
.psalm Merge branch 'trunk' into PCP-4110-incorrect-subscription-cancellation-handling-with-pay-pal-subscriptions 2025-03-18 12:19:36 +01:00
api Use a class that uses the trait instead of calling it directly 2025-08-12 16:07:53 +04:00
docs Merge pull request #4014 from woocommerce/trunk 2026-01-16 11:39:16 +01:00
lib Update lib packages 2025-07-04 22:05:58 +04:00
modules Merge pull request #4081 from woocommerce/dev/release/3.4.0 2026-02-12 09:47:21 +01:00
src Use class instead of asset callbacks and finish updating URLs 2026-01-06 16:50:54 +02:00
tests Merge pull request #4081 from woocommerce/dev/release/3.4.0 2026-02-12 09:47:21 +01:00
wordpress_org_assets Updated readme and add screenshots 2025-03-24 11:37:15 +01:00
.distignore Exclude php.scoper from build package and use .distignore in local build 2025-10-30 10:36:52 +01:00
.editorconfig Set naming style in .editorconfig 2025-06-19 09:24:46 +03:00
.env.integration.example Rename e2e to integration 2025-03-12 18:14:01 +01:00
.eslintrc Remove broken eslint resolver 2026-01-07 10:28:23 +02:00
.gitattributes Use npm 2025-12-09 16:17:25 +02:00
.gitignore Build assets in root 2025-12-30 15:48:35 +02:00
assets-compiler.json Do not build in postinstall 2025-12-09 17:27:40 +02:00
babel.config.json Add babel and jest config 2024-06-22 15:37:01 +02:00
bootstrap.php Fix the plugin main file path 2025-07-04 20:18:23 +04:00
changelog.txt Merge pull request #4081 from woocommerce/dev/release/3.4.0 2026-02-12 09:47:21 +01:00
composer.json Use Modularity Properties instead of Dhii 2025-12-19 12:21:52 +02:00
composer.lock Use Modularity Properties instead of Dhii 2025-12-19 12:21:52 +02:00
LICENSE Initial commit 2020-03-19 16:47:08 +01:00
modules.php Merge pull request #3847 from woocommerce/trunk 2025-11-10 11:30:12 +01:00
package-lock.json Add @wordpress/jest-preset-default 2026-01-07 17:21:47 +02:00
package.json Bump 3.4.0 version 2026-02-05 12:11:47 +01:00
patchwork.json Move saved card payment logic into vaulting (WIP) 2022-08-11 14:22:12 +02:00
phpcs.xml.dist Fixing PHPCS parenthesis issue 2025-08-22 17:22:51 +02:00
phpunit.xml.dist Add wc order verification before proceed 2025-11-25 12:27:02 +01:00
psalm-baseline.xml test: suppress false positive for WC_Product::get_global_unique_id 2026-01-22 15:12:52 +04:00
psalm.xml.dist 🔧 Fix psalm errors when node_modules is missing 2025-02-10 17:41:09 +01:00
README.md Fix merge of package.json commands and readme 2025-12-19 11:50:47 +02:00
readme.txt Merge pull request #4081 from woocommerce/dev/release/3.4.0 2026-02-12 09:47:21 +01:00
scoper.inc.php Exclude node_modules in scoper 2025-12-10 15:21:51 +02:00
uninstall.php Reset bn code on unistall and add migration code for whitelabel mode 2025-06-20 12:31:55 +02:00
webpack.config.js Fix dependency extraction 2026-01-07 09:36:43 +02:00
woocommerce-paypal-payments.php Update admin notice and wc tested version 2026-02-09 11:10:13 +01:00
wp-cli.yml Set checkout page before block/classic tests 2023-05-02 12:30:08 +03:00

WooCommerce logo

PayPal logo

License GitHub Release GitHub Release Date WordPress.org downloads Build Status Ask DeepWiki

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.

Features

  • Multiple Payment Options: PayPal, credit/debit cards, Pay Later, digital wallets (Apple Pay, Google Pay), and localized payment methods
  • Subscription Support: Supports WooCommerce Subscriptions with PayPal Vaulting and PayPal Subscriptions
  • Customizable Experience: Flexible button placement and styling options
  • Enhanced Security: PCI compliance, 3D Secure, and fraud protection tools
  • Global Compliance: Meets international standards (PSD2, SCA)

Documentation

Visit our official documentation for detailed guides and setup instructions.

Dependencies

  • PHP >= 7.4
  • WordPress >= 6.5
  • WooCommerce >= 9.6

Quick Installation

  1. Go to Plugins > Add New in your WordPress admin
  2. Search for "WooCommerce PayPal Payments"
  3. Click "Install Now" and then "Activate"
  4. Go to WooCommerce > Settings > Payments to configure PayPal Payments

Development

You can install WooCommerce PayPal Payments locally using the dev environment of your preference, or you can use the DDEV setup provided in this repository. Which includes WordPress, WooCommerce and all development tools.

To set up the DDEV environment, follow these steps:

  1. Install Docker and DDEV.
  2. Edit the configuration in the .ddev/config.local.yml file if needed.
  3. Run $ ddev start && ddev orchestrate to setup and orchestrate the plugin, WooCommerce and WordPress (you can also use $ npm run ddev:setup)
  4. Open https://woocommerce-paypal-payments.ddev.site

Use $ ddev reset for reinstallation (will destroy all site data). You may also need $ ddev restart to apply the config changes.

Running tests and other tasks in the DDEV environment

Tests and code style:

  • $ ddev npm run test
  • $ ddev npm run lint
  • $ ddev npm run fix-lint
  • $ ddev npm run lint-js
  • $ npm run ddev:unit-tests:coverage

See package.json for other useful commands.

For debugging, see the DDEV docs. Enable xdebug via $ ddev xdebug enable, and press Start Listening for PHP Debug Connections in PHPStorm. After creating the server in the PHPStorm dialog, you need to set the local project path for the server plugin path. Check this article for a detailed guide.

Setup in other environments

Install dependencies & build

  • $ composer install
  • $ npm ci

Optionally, change the PAYPAL_INTEGRATION_DATE constant to gmdate( 'Y-m-d' ) to run the latest PayPal JavaScript SDK

Unit tests and code style

  1. $ ./vendor/bin/phpunit
  2. $ ./vendor/bin/phpcs
  3. $ ./vendor/bin/psalm
  4. $ npm run lint-js
  5. $ npm run test:unit-js - Ensure node version is 18 or above

Unit tests with Coverage

Run npm run ddev:unit-tests:coverage

This command generates a full test coverage report, available at the URL https://woocommerce-paypal-payments.ddev.site/coverage

Building a release package

If you want to build a release package, use the Build package (New) in GitHub Actions.

Currently, there is no script for building a proper release package locally, but you may try to run GHA locally via nektos/act.

Test account setup

You will need a PayPal sandbox merchant and customer accounts to configure the plugin and make test purchases with it.

For setting up test accounts follow these instructions.

Webhooks

For testing webhooks locally, follow these steps to set up ngrok:

  1. Install ngrok.

  • If using DDEV, run our wrapper Bash script which will start ddev share and replace the URLs in the WordPress database:

    $ .ddev/bin/share
    
  • For other environments, run

    $ ngrok http -host-header=rewrite wc-pp.myhost
    

    and in your environment variables (accessible to the web server) add NGROK_HOST with the host that you got from ngrok, like abcd1234.ngrok.io. ngrok will be used only for the webhook listening URL. The URLs displayed on the WordPress pages, used in redirects, etc. will still remain local.

  1. Complete onboarding or resubscribe webhooks on the Webhooks Status page.

License

GPL-2.0 License

Contributing

All feedback / bug reports / pull requests are welcome.