# PayPal

> PayPal is an online payment processing platform.

PayPal shows you transaction volumes and invoice status, but understanding which customers generate recurring revenue or how payment behavior correlates with marketing campaigns means connecting to your CRM and analytics tools.

Filament links PayPal transactions, subscriptions, and invoices to your other platforms so you can analyze payment patterns, subscription health, and revenue attribution without manual exports.

## Data we sync

- **BILLING_PLAN**: Track subscription plans and pricing tiers with plan_id, billing_frequency, pricing_model, payment_preferences, and setup_fees to analyze subscription revenue patterns and plan performance. (`plan_id`, `billing_frequency`, `pricing_model`, `payment_preferences`, `setup_fees`)
- **SUBSCRIPTION**: Monitor active and cancelled subscriptions with subscription_id, status, start_date, billing_cycle_sequence, and next_billing_time to understand churn patterns and recurring revenue health. (`subscription_id`, `status`, `start_date`, `billing_cycle_sequence`, `next_billing_time`)
- **INVOICE**: Track invoice details and payment status with invoice_id, invoice_date, due_date, status, and amount to measure payment collection rates and outstanding receivables. (`invoice_id`, `invoice_date`, `due_date`, `status`, `amount`)
- **Transaction History**: Analyze payment flows with transaction_id, transaction_amount, transaction_status, payment_mode, and transaction_event_code to understand revenue patterns and payment method preferences. (`transaction_id`, `transaction_amount`, `transaction_status`, `payment_mode`, `transaction_event_code`)
- **Refunds and Transfers**: Monitor refund patterns with refund_id, refund_amount, refund_status, reason_code, and create_time to identify product issues or customer satisfaction trends. (`refund_id`, `refund_amount`, `refund_status`, `reason_code`, `create_time`)
- **Payment Methods**: Track payment sources with payment_source_id, type, brand, last_digits, and expiry_date to understand customer payment preferences and optimize checkout experiences. (`payment_source_id`, `type`, `brand`, `last_digits`, `expiry_date`)

## How do I connect PayPal?

You need a PayPal administrator account and access to its developer apps.

1. Sign in to [PayPal Developer](https://developer.paypal.com/). In **Apps & Credentials → REST API apps**, open the app for the environment you want to connect.
2. Copy the **Client ID** and reveal and copy the **Secret**.
3. For a Merchant app, enable **Accept payments and Subscriptions**, **Invoicing**, **Customer Disputes** and **Transaction Search**. Scope changes can take up to nine hours to become available.
4. Open [Apps](https://filamentanalytics.com/apps) in Filament and add **PayPal**. Use the production connection for live data; sandbox credentials require a separate sandbox connection.
5. Enter the Client ID and Secret Key from that same environment.
6. Select **Save & Test**, then return to Filament and complete setup.
