Download the PHP package craftcms/commerce-paypal without Composer

On this page you can find all versions of the php package craftcms/commerce-paypal. 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 commerce-paypal

PayPal for Craft Commerce

This plugin provides PayPal integrations for Craft Commerce, including PayPal Pro, PayPal Express Checkout, and PayPal REST.

Credit card payments with the REST gateway are supported only in the US and UK.

Deprecation Notice

PayPal has deprecated PayPal Express as a checkout flow. They have advised that projects should look to implement the PayPal Checkout integration to keep up to date. Therefore this plugin is now deprecated in favour of the new Commerce PayPal Checkout Plugin.

Requirements

This plugin requires Craft 3.6 and Craft Commerce 3.3 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “PayPal for Craft Commerce”. Then click on the “Install” button in its modal window.

With Composer

Open your terminal and run the following commands:

Setup

To add a PayPal payment gateway, go to Commerce → Settings → Gateways, create a new gateway, and set the gateway type to either “PayPal Pro”, “PayPal REST” or “PayPal Express”.

Tip: PayPal Express API Username, API Password, and API Signature settings can now be set to environment variables. PayPal Pro API Username, API Password, and API Signature settings can now be set to environment variables. PayPal REST Client ID and Secret settings can now be set to environment variables. See Environmental Configuration in the Craft docs to learn more about that.

Finding your PayPal Express Credentials

1) Log in to your PayPal Seller Account 2) In the top menu bar click "Profile" and choose "Profile and Settings" 3) Click "My Selling Preferences" 4) Click "API Access" (click "update") 5) You want the the NVP/SOAP API Integration (Classic) section 6) Then go to "Manage API credentials" 7) If you don't have any credentials already then generate some.

Matching the different bits of info up to the fields within the gateway setup can be tricky as sometimes the labels change. This table should help.

Gateway label Sandbox Account/Account
API Username Sandbox Account/Account
API Password Client ID
API Signature Secret (click 'Hide' to show it - totally logical)
Solution Type Mark
Landing Page Determines the type of form the user gets at PayPal

In the gateway settings there is also a dropdown for "Solution Type". We think it may be the difference between personal and business PayPal accounts. In my case “Mark” worked, “Solo” didn’t.

"Landing Page" controls the type of form that is shown when the customer gets directed to PayPal. Selecting "Billing" will show a set of Credit Card fields with an option to login to PayPal (from memory this is a bit hidden). Selecting "Login" presents a PayPal login form without any credit card fields.

Brand Name, Header Image URL, Logo Image URL, and Border Colour are all customisation options for your landing page. Use the full URL to your image assets, including the domain.

Important

If you're going to use the PayPal Express payment gateway you are required to change the default value of in your Craft config

Choose any different token name other than , for example you could put . Otherwise redirects from PayPal will fail.


All versions of commerce-paypal with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.6
craftcms/commerce Version ^3.3
craftcms/commerce-omnipay Version ^3.0
omnipay/paypal Version ^3.0.2
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 craftcms/commerce-paypal contains the following files

Loading the files please wait ....