Integromat
  • Back to website
Articles in this section
  • Airtable
  • Bubble
  • Email (legacy)
  • Facebook Groups
  • Formstack
  • Google Cloud Vision
  • Google Sheets (legacy)
  • HTTP
  • JSON
  • Magento 2
See more
  1. Integromat Support
  2. Apps
  3. Docs

PayPal

Integromat Support Team Integromat Support Team Updated December 29, 2020 07:41

The PayPal modules enable you to monitor notifications, payments, plans, and transactions, create and execute payments and agreements, or manage plans and agreements in your PayPal account.

Getting Started with PayPal

Prerequisites

  • A PayPal account (a business account to use in the production environment)

In order to use PayPal with Integromat, it is necessary to have a PayPal account. If you do not have one, you can create a PayPal account at paypal.com.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting PayPal to Integromat

To connect your PayPal account to Integromat, you'll need create a new app in PayPal Developer to obtain the client ID and client secret.

1. Go to PayPal Developer, and log in to your Dashboard.

2. Navigate to Dashboard > My Apps & Credentials, and click Create app to create a new app in the sandbox.

2020-11-25_12_13_23-Applications_-_PayPal_Developer.png

3. Enter the desired app name (e.g., Integromat), and select the sandbox account to associate the app with. 

4. Click Create App.

5. Copy the provided Client ID and Secret, and save them in a safe place.

2020-11-25_13_08_23-Edit_applications_-_PayPal_Developer.png

6. Go to Integromat, and open the PayPal module's Create a connection dialog.

7. Enter the Client ID and Secret you have copied in step 5 in the respective fields.

If you want to test the app in the Sandbox, open advanced settings, and check the Use this application in Sandbox checkbox.

2020-11-25_13_47_25-Integration_Apple_iOS___Integromat.png

8. Click the Continue button to establish the connection.

The connection has been established. You can proceed with setting up the module.

If you are logged in to your PayPal account in another browser tab or in the same browser session that the Integromat website is opened in, the PayPal account you are logged into is then automatically used when creating a connection in Integromat.
To ensure you connect the correct PayPal account to Integromat, log out of the PayPal account before you create the connection in Integromat.

To move your application into PayPal's production environment, click on Live:

A Business account is required to go Live. 

file.png

Triggers

New Notification

Triggers when an Instant Payment Notification is received.

The webhook URL needs to be generated in Integromat and then added to PayPal's integrations settings.

1. Add the New Notification module to your Integromat scenario.

2. Generate and copy the webhook URL.

Abc2ndhQPT.gif

3. Log in to your PayPal account.

4. Open PayPal IPN settings.

5. Click Choose IPN Settings button.

2020-11-26_15_57_49-Instant_Payment_Notification__IPN__-_PayPal.png

6. Enter the Webhook URL copied in step 2 above in the Notification URL field, select Receive IPN messages (Enabled), and click Save.

2020-11-26_16_13_30-Edit_Instant_Payment_Notification__IPN__settings_-_PayPal.png

Now, every time the notification is received, the New notification module in your Integromat scenario is triggered.

How To Send Instant Payment Notifications (IPNs) To Multiple Integromat Scenarios

Let's assume that you have already configured the PayPal > New Notification trigger in your PayPal scenario, and you need to execute one or more additional scenarios by one received PayPal notification. The PayPal user interface allows you to set only one URL where the notification will be sent.

1. Create a new scenario. This is the additional scenario that will be executed from your original (existing) PayPal scenario.

2. Add the Webhooks > Custom Webhook module to the newly created scenario, and generate and copy the generated Webhook URL.

Tlv394KF9u.gif

3. Open the original PayPal scenario that contains the PayPal > New Notification instant trigger, and add the HTTP > Make a Request module in the scenario.

Fill in the module's fields as follows:

URL Enter the Webhook URL from the new scenario you have generated and copied in step 2 (above).
Method Select the POST method.
Body type Select the Application/x-www-form-urlencoded type.
Fields

Enter the name of the field in the Key field, and map the desired field from the New notification module to the Value field.

These fields will be sent to your new scenario, which will be executed by the Custom Webhook module.

2020-11-30_18_49_09-Integration_PayPal__HTTP___Integromat.png

Now, every time the PayPal > New notification module is triggered in your original PayPal scenario, the desired received data will be transferred to your new scenario via the HTTP > Make a request module, where the Webhooks > Custom Webhook module will be triggered.

Creating a new payment

To create a new payment, use these two actions:

  1. Create a payment (step 1) 
  2. Execute a payment (step 2)

The Create a payment action consists of entering all payment details and getting an approval URL. The approval URL is then sent to a user who logs into his/her PayPal account and approves the payment. Afterwards, the user is redirected to the Redirect URL (Return or Cancel URL) that was specified during Step 1. PaypalPayPal appends to the return URL a Payer ID and Payment ID. Make sure you store these IDs, you will need them in Step 2.

As soon as the user approves the payment, run the Execute a payment action (step 2). Here, fill in the Payer and Payment IDs that were appended to the Return URL. After you run the action, the payment is executed.

Creating an agreement

To create a new agreement, use these two actions:

  1. Create an agreement (Step 1) 
  2. Execute an agreement (Step 2)

Before creating an agreement, you must define and activate a billing plan (for example, using the action Create a plan).

The first action involves entering all necessary details needed to set up a payment and generate an approval URL. This approval URL is then sent to a user so that the user can approve the agreement. The user must approve the agreement before you can execute it. To activate the agreement, run the Execute an agreement action (Step 2).

Was this article helpful?
2 out of 2 found this helpful
Menu
  • Features
  • Apps & Services
  • Templates
  • Pricing
  • What's new
  • Use cases
Information
  • Terms,  Privacy
  • FAQ
  • Help & Tutorials
  • Community
  • Affiliate Program
  • Blog
Developers
  • Developer Platform
Company
  • About the company
  • Join our team
  • Contact
Follow us
© 2020 Integromat by Celonis. All rights reserved. Integromat® is a registered trademark.
  • English