PayPal
To accept PayPal payments, you must obtain a merchant ID, PayPal client ID, and client secret from the PayPal Developer Dashboard.
Configuring PayPal
-
Open the Global Menu (
) and navigate to Commerce → Channels.
-
Select the channel and scroll to Payment Methods.
-
Click PayPal.
-
Use the Active toggle to activate the payment method and click Save. Two new tabs for Eligibility and Configuration appear.
-
Go to Configuration.
-
Enter the details from your PayPal Developer Dashboard for the Client ID, Client Secret, and Merchant ID fields.
-
In the Mode drop-down, select Live if it’s a live site or Sandbox if it’s a test environment.
-
Click Save.
The Merchant ID field is only available for business accounts in PayPal.
PayPal is now enabled for your store.
Configuring PayPal Subscriptions
To use subscriptions with PayPal, you must activate the PayPal Subscriptions payment method.
-
Open the Global Menu (
) and navigate to Commerce → Channels.
-
Select the channel and scroll to Payment Methods.
-
Click PayPal Subscriptions.
-
Use the Active toggle to activate the payment method and click Save. The Eligibility and Configuration tabs appear.
-
Go to Configuration.
-
In the Mode drop-down, select Live for a production site or Sandbox for testing.
-
Liferay DXP 7.4 U3+/GA7+ In Request Details, select Request Details Full or Request Details Minimal (see below).
-
In the Payment Attempts Max Count field, enter the number of attempts to make payment on a subscription before canceling the subscription.
-
Click Save.
Request Details Full: Sends a complete request required for the payment contract mapped to PayPal’s PurchaseUnitRequest
.
Request Details Minimal: Sends a minimal request required for the payment contract mapped to PayPal’s PurchaseUnitRequest
.
For more information, read PayPal’s Reattempt failed recurring payments with Subscribe buttons article.