How to Connect n8n to PayPal: Automate Payment Alerts and Order Workflows (2025)
If you take payments through PayPal, every transaction is a trigger waiting to happen — a Slack alert, a logged sale, a fulfillment task, an onboarding email. Here's how to wire PayPal into n8n and put those events to work.
The two ways to connect PayPal
n8n can talk to PayPal in two ways:
- PayPal webhooks (recommended) — PayPal pushes an event to n8n the instant a payment completes. Real-time and efficient.
- PayPal REST API via HTTP Request — poll for transactions or fetch order details on demand.
Step 1: Create a PayPal app
In the PayPal Developer Dashboard, create an app to get your Client ID and Secret. These authenticate n8n's API calls. Start in Sandbox mode to test safely, then switch to Live.
Step 2: Receive payments with a webhook
Add a Webhook node in n8n and copy its URL. In PayPal, register that URL as a webhook listener and subscribe to events like PAYMENT.CAPTURE.COMPLETED. Now every completed payment fires your workflow with the buyer's email, amount, and order ID.
🚀 Skip the build — get the ready-made template
This article shows you how it works. The Invoice & NF-e Processor template gives you the finished n8n workflow — import it, add your credentials, and go live today.
Get Invoice & NF-e Processor on Gumroad →
Step 3: Act on the payment
From the webhook, branch into whatever your business needs:
- Post a "💰 New sale" message to Slack with the amount and customer
- Append a row to a Google Sheets revenue log
- Create a fulfillment task or send a thank-you email
- Add the customer to your CRM and start an onboarding sequence
Security: always verify the webhook
Anyone who finds your webhook URL could POST fake events. Use PayPal's verify-webhook-signature API endpoint (via an HTTP Request node) to confirm each event genuinely came from PayPal before acting on it.
Beyond alerts: extract the data from every invoice
PayPal handles the payment, but the paperwork — invoices, receipts, NF-e documents — still piles up. An AI-powered document processor reads any invoice with GPT-4o Vision, extracts the line items and totals into Google Sheets, and pings Slack. Combine it with your PayPal flow for fully automated bookkeeping.
Ready to automate?
Don't rebuild this from scratch. The Invoice & NF-e Processor template is a complete, importable n8n workflow — configure your credentials and it runs in minutes.