Paypal

Send Money, Pay Online or Set Up a Merchant Account

Go to site
Explore
/
Apps
/
Paypal

Paypal API Integrations

Build and run workflows using the Paypal API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    paypal: {
      type: "app",
      app: "paypal",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.paypal.$auth.app_type}.paypal.com/v1/identity/oauth2/userinfo`,
      headers: {
        Authorization: `Bearer ${this.paypal.$auth.oauth_access_token}`,
      },
      params: {
        schema: `paypalv1.1`,
      },
    })
  },
})

Authentication

Paypal uses OAuth authentication. When you connect your Paypal account, Pipedream will open a popup window where you can sign into Paypal and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Paypal API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. accessToken
    POST{{custom_fields.app_type}}.paypal.com/v1/oauth2/tokenAccept-Language: en_USContent-Type: application/x-www-form-urlencoded
    grant_type=client_credentials
  2. refreshToken
    POST{{custom_fields.app_type}}.paypal.com/v1/oauth2/tokenAccept-Language: en_USContent-Type: application/x-www-form-urlencoded
    grant_type=client_credentials