Learn how to configure PayPal in order to implement the integration with your Umbraco Commerce installation.
To use the PayPal provider you will need to sign up for a Business PayPal account. If you haven't created one follow these steps:
Head over to the PayPal site.
Click the Sign-Up button in the top corner to create an account.
Choose Business Account as the account type.
If you wish to test your system before going live, you need to sign up for a set of Sandbox accounts.
Sign in to a valid PayPal account - any account will do.
Follow this link: https://developer.paypal.com/developer/accounts/.
From here you can view and modify any existing Sandbox accounts you have.
Select Create Account to create both a business and a personal set of accounts.
Locate the Managed Accounts column.
Select View/Edit account for each account.
Note down the Email ID and Password.
In order for Umbraco Commerce to perform actions in your PayPal account on your behalf, we need to create a PayPal App. In fact, we'll need to create two: one for the Sandbox account and one for our Live account.
Access the PayPal Developer Portal.
Create the two apps by toggling the Sandbox\Live toggle buttons.
Clicking the Create App button to create an App for each environment.
Give your app a name, and choose the Sandbox Business Account to associate the App with the Sandbox App.
Click the Create App button to create the App.
Note down the Client ID.
Click the Show link below the Secret heading.
Note down the Secret.
Webhooks are used for communication between PayPal and the Umbraco Commerce installation. They are managed on the same PayPal portal page as the app secrets.
Scroll down to the Webhooks section.
Click the Add Webhook button to create a new Webhook.
Provide the URL where the webhook notifications should be sent. See the example below:
The webhook needs to be a Umbraco Commerce-specific URL. Remember to replace the parameters in curly brackets with the corresponding values taken from your store.
Select the Event Types to be notified of.
Save the webhook settings.
These are the recommended Event Types to configure notifications for:
Checkout order approved
Checkout order completed
Payment authorization voided
Payment capture completed
Payment capture denied
Payment capture pending
Payment capture refunded
Payment capture reversed
Note down the Webhook ID for the webhook.
Keep in mind that you will need to create an App and webhook configuration for both Sandbox and Live environments. For the Live environment, this must be set up under the account that will be accepting the payments.