Overview

The PayPal API offers developers programmatic access to PayPal's payment infrastructure, enabling integration of online payment processing, subscription management, and global money transfers. Designed for businesses ranging from small merchants to large enterprises, the API supports a variety of use cases, including standard e-commerce checkouts, peer-to-peer payments, and marketplace solutions. Developers can utilize the API to implement custom payment flows, manage refunds, handle disputes, and automate financial reporting.

PayPal's ecosystem includes several distinct products accessible via API, such as PayPal Payments (Standard and Advanced), PayPal Payouts, and PayPal Subscriptions. The API facilitates accepting payments through various methods, including PayPal accounts, credit/debit cards, and alternative payment options, often presented through a unified checkout experience. For businesses operating internationally, the API supports multiple currencies and cross-border transactions, simplifying global expansion. Additionally, PayPal's acquisition of Braintree provides a separate, but related, API offering for more customizable payment gateway integrations, particularly for mobile and in-app payments PayPal API documentation. Understanding the distinctions between these offerings is crucial for selecting the appropriate integration path.

The platform is particularly well-suited for businesses that require a widely recognized payment brand for consumer trust and those needing robust support for recurring billing models. Its extensive global reach and existing user base can contribute to higher conversion rates for online transactions. For developers, PayPal provides comprehensive documentation, SDKs in multiple programming languages, and a sandbox environment for testing integrations before deployment. The API adheres to industry security standards, including PCI DSS compliance, to protect sensitive payment data PayPal Business pricing details.

While the breadth of features can introduce complexity, particularly when navigating different PayPal products, the API's capabilities address core payment processing needs for a diverse set of online businesses. Its long history in the payment space and continuous evolution mean it supports both traditional web-based integrations and modern API-first approaches.

Key features

  • Online Checkout Experiences: Integrate customizable checkout flows that accept PayPal, credit/debit cards, and local payment methods directly on your website or application PayPal REST API reference.
  • Recurring Payments and Subscriptions: Implement automated billing for subscription services and recurring charges with flexible plan management and trial periods.
  • Global Money Transfers (Payouts): Facilitate mass payouts to individuals or businesses in multiple currencies across various countries, suitable for marketplaces and on-demand services.
  • Dispute Resolution Tools: Access APIs and dashboards to manage transaction disputes, chargebacks, and refunds efficiently.
  • Fraud Protection: Utilize built-in fraud detection and prevention tools to minimize risks associated with online transactions.
  • Reporting and Analytics: Access detailed transaction histories, financial reports, and analytics to monitor business performance and reconcile accounts.
  • Webhooks: Receive real-time notifications for key events such as payment completions, refunds, and disputes, enabling asynchronous processing.

Pricing

PayPal's pricing model is primarily transaction-fee based, with no monthly fees for standard accounts. Fees vary significantly based on the payment method, transaction volume, and geographical region. The following table provides a summary of typical transaction fees as of May 2026, for online debit/credit card transactions within the US.

Transaction Type Fee Structure Notes
Online Debit/Credit Card (US) 2.99% + $0.49 per transaction Standard rate for most online card payments.
PayPal & PayPal Credit (US) 2.99% + $0.49 per transaction Applies to payments made via PayPal accounts or PayPal Credit.
In-person Card Payments (US) 2.29% + $0.09 per transaction Requires specific hardware or POS integration.
International Commercial Transactions Varies by country, typically higher % + fixed fee Additional cross-border fees may apply.
Payouts (Mass Payments) Varies by currency and destination Fees apply per recipient.

For detailed and up-to-date pricing information specific to your region and business type, consult the official PayPal business pricing page PayPal Business Pricing.

Common integrations

  • E-commerce Platforms: Direct plugins and API integrations for platforms like Shopify, Magento, and WooCommerce to add PayPal as a payment option Shopify PayPal integration guide.
  • Accounting Software: Connect with accounting systems to automate reconciliation of transactions and financial reporting.
  • CRM Systems: Integrate payment data into customer relationship management platforms for unified customer profiles and sales tracking.
  • Marketing Automation Tools: Trigger marketing campaigns based on payment events, such as successful purchases or subscription renewals.
  • Subscription Management Platforms: Enhance recurring billing capabilities and customer lifecycle management.

Alternatives

  • Stripe: Offers a developer-centric API for payment processing, known for its flexibility and extensive global coverage, often preferred for custom integrations.
  • Square: Provides APIs for both online and in-person payments, particularly strong for small businesses and retail point-of-sale systems.
  • Adyen: A global payment platform supporting a wide range of payment methods and channels, often chosen by large enterprises for its unified commerce approach.
  • Amazon Pay: Allows customers to pay using payment methods stored in their Amazon accounts, leveraging Amazon's customer base.
  • Braintree: A PayPal service offering a more customizable payment gateway API, often used for mobile and in-app payments, and providing access to a broader range of payment methods.

Getting started

To begin integrating with the PayPal API, developers typically start by setting up a developer account and creating an application to obtain API credentials. The PayPal Developer Dashboard provides tools for managing applications, viewing API keys, and accessing sandbox environments for testing. The following Node.js example demonstrates how to create an order using the PayPal REST API, which is a common first step for integrating a checkout flow. This example assumes you have already set up your client ID and secret.

const checkoutNodeJssdk = require('@paypal/checkout-server-sdk');

// Set up PayPal SDK environment
const environment = new checkoutNodeJssdk.core.SandboxEnvironment(
  process.env.PAYPAL_CLIENT_ID,
  process.env.PAYPAL_CLIENT_SECRET
);
const client = new checkoutNodeJssdk.core.PayPalHttpClient(environment);

async function createOrder() {
  const request = new checkoutNodeJssdk.orders.OrdersCreateRequest();
  request.prefer('return=representation');
  request.requestBody({
    intent: 'CAPTURE',
    purchase_units: [
      {
        amount: {
          currency_code: 'USD',
          value: '100.00',
        },
      },
    ],
    application_context: {
      return_url: 'https://example.com/return',
      cancel_url: 'https://example.com/cancel',
    },
  });

  try {
    const response = await client.execute(request);
    console.log(`Order: ${JSON.stringify(response.result)}`);
    return response.result;
  } catch (err) {
    console.error(err);
    throw err;
  }
}

// Example usage:
createOrder().then(order => {
  console.log('Order created successfully:', order.id);
}).catch(error => {
  console.error('Failed to create order:', error);
});

This code snippet initializes the PayPal SDK, configures it with sandbox credentials, and then calls the OrdersCreateRequest to generate a new order for a fixed amount. The return_url and cancel_url specify where the user will be redirected after completing or canceling the payment on PayPal's side. After creating the order, the response will contain an order ID and links for the user to approve the payment, which is then typically followed by an execution or capture step. For full implementation details and error handling, refer to the PayPal Developer Documentation.