Download the PHP package automattic/paypal-payment-buttons without Composer

On this page you can find all versions of the php package automattic/paypal-payment-buttons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package paypal-payment-buttons

=== PayPal Payment Buttons === Contributors: paypal,automattic,woocommerce Tags: paypal, payments, buy now, payment buttons, ecommerce Requires at least: 7.0 Requires PHP: 7.4 Tested up to: 7.1 Stable tag: 0.5.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept payments with PayPal — create branded Buy Now buttons directly in the WordPress block editor.

== Description ==

PayPal Payment Buttons lets you accept payments on your WordPress site using PayPal's Pay Links & Buttons API. Create professional, PayPal-branded Buy Now buttons without leaving the block editor.

Key Features:

How It Works:

  1. Connect your PayPal account using API credentials from the PayPal Developer Dashboard
  2. Add the PayPal Payment Buttons block to any post or page
  3. Enter your product details (name, price, currency, and optional description)
  4. Click "Create New" — the plugin creates a payment button via PayPal's API
  5. Publish your post — visitors see a styled PayPal button that links to checkout

== Installation ==

  1. Upload the plugin to the /wp-content/plugins/ directory, or install via the WordPress plugin screen.
  2. Activate the plugin through the "Plugins" screen in WordPress.
  3. Connect PayPal: a. Go to the PayPal Developer Dashboard. b. Create a new app (or use an existing one) under Apps & Credentials, on the Live tab. c. Copy the Client ID and Client Secret. d. Add a PayPal Payment Buttons block in the editor and enter your credentials. e. The plugin connects to Production — you're ready to accept real payments.

= Requirements =

== Frequently Asked Questions ==

= How do I get PayPal API credentials? =

  1. Log in to the PayPal Developer Dashboard.
  2. Navigate to Apps & Credentials.
  3. Select the Live tab.
  4. Click Create App or select an existing app.
  5. Copy the Client ID and Client Secret.

= What's the difference between Sandbox and Production? =

Production is the live environment where real customers make real purchases, and it is the only environment the plugin connects to. Sandbox is PayPal's testing environment where no real money changes hands; it is not offered in the block editor, so use credentials from your Live app.

= Will my existing PayPal buttons still work after updating? =

Yes. Existing buttons created with the paste-code method continue to work exactly as before. There is no forced migration — old buttons render unchanged on both the editor and frontend.

= What currencies are supported? =

USD, EUR, GBP, CAD, AUD, JPY, CHF, SEK, NOK, DKK, NZD, SGD, HKD, MXN, BRL, PLN, CZK, HUF, ILS, MYR, PHP, TWD, THB, INR, CNY, and RUB. Each currency displays its proper symbol (e.g., $, €, £, ¥) on both the editor preview and published page.

= Where are my PayPal credentials stored? =

Credentials are encrypted using libsodium's sodium_crypto_secretbox (XSalsa20-Poly1305 authenticated encryption) before being stored in the WordPress database (wp_options). The encryption key is derived from your site's AUTH_KEY constant in wp-config.php using BLAKE2b.

= What happens if I disconnect PayPal? =

Disconnecting removes your stored credentials and cached token. Existing published buttons with payment links continue to work on the frontend — the links are static URLs hosted by PayPal. However, you won't be able to create new buttons or edit existing ones until you reconnect.

= I'm seeing "not authorized for Payment Links & Buttons" — what do I do? =

This means your PayPal app may not have the required permissions. In the PayPal Developer Dashboard, ensure your app has the Payment Links & Buttons feature enabled.

= Can I use this with WooCommerce? =

This plugin is designed for standalone PayPal payment buttons on posts and pages. It's separate from the WooCommerce PayPal payment gateway. Both can coexist on the same site.

== Changelog ==

0.5.0 - 2026-10-14

Added

Changed

Removed

Fixed

== Upgrade Notice ==

= 0.8.0 = Major update: API-driven PayPal button creation replaces the paste-code workflow. Existing buttons are fully backward compatible — no action required.

== Screenshots ==

  1. Connect PayPal — Enter API credentials from the PayPal Developer Dashboard.
  2. Create New — Fill in product name, price, and currency in the block editor.
  3. Live Preview — See the PayPal-branded button preview before publishing.
  4. Frontend — Published PayPal button with product info and payment link.
  5. Stacked Layout — PayPal button with Debit/Credit Card secondary button.

All versions of paypal-payment-buttons with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package automattic/paypal-payment-buttons contains the following files

Loading the files please wait ...