PayPal

Stable

Manage PayPal payments, refunds, payouts, and disputes from WhatsApp

Payments & Billing

What is PayPal?

PayPal is the world's most recognized online payment system, handling 430M+ active accounts across merchants, marketplaces, and freelancers. The LunoGen PayPal integration uses the PayPal REST API and IPN/webhooks so your AI agent can react to payments, issue refunds, track payouts, and send invoices directly from WhatsApp.

Why connect PayPal?

PayPal notifications are buried in email, the merchant dashboard is slow, and disputes fire off silently until the resolution deadline is almost up. LunoGen turns PayPal into a conversational surface: payments ping your group in real time, refunds are one message, and the agent wakes you up the moment a dispute lands so you never miss a response window.

What you can do

  • Real-time payment notifications via PayPal webhooks
  • Instant refund processing (full or partial) through REST API
  • Payout tracking for merchants and multi-seller platforms
  • Dispute and chargeback alerts with resolution deadlines
  • Send PayPal invoices from a WhatsApp message
  • Monthly revenue and fee reports with currency breakdown
  • Subscription event monitoring (created, cancelled, failed)
  • Check transaction status by ID on demand
  • Bulk payout execution from a spreadsheet
  • Multi-currency conversion awareness
  • Sandbox mode for safe testing

Setup

Requirements

  • A PayPal Business account
  • Ability to create REST API apps in the PayPal Developer dashboard
  • A LunoGen account with the Pro plan or higher
  1. 1

    Create a REST API app

    In the PayPal Developer dashboard go to My Apps & Credentials → Live → Create App. Name it 'LunoGen Agent' and link it to your business account. Copy the Client ID and Secret.

  2. 2

    Connect in LunoGen

    Open Credentials → New → PayPal in the LunoGen dashboard. Paste your Client ID and Secret. LunoGen exchanges them for an OAuth access token on first use.

  3. 3

    Register a webhook

    Copy the LunoGen webhook URL from the integration page. In the PayPal app settings, add a webhook pointing at that URL and subscribe to the events you need: PAYMENT.CAPTURE.COMPLETED, CUSTOMER.DISPUTE.CREATED, PAYMENT.CAPTURE.REFUNDED, BILLING.SUBSCRIPTION.CANCELLED.

  4. 4

    Verify a test event

    Trigger a test webhook from the PayPal dashboard. LunoGen will confirm receipt and show the parsed payload in the integration logs.

PayPal use cases

6 total

PayPal Payout Tracking for Marketplaces

When a marketplace fires a PAYMENT.PAYOUTSBATCH.SUCCESS webhook, the agent breaks out every payout item, matches it to a seller, and posts the summary to the payouts channel — then stores it in memory for the monthly report.

Webhook + WhatsApp Grouppayoutsmarketplacewebhook
Webhook received: PAYMENT.PAYOUTSBATCH.SUCCESS — batch PO-2026-04-032
http_request → PayPal Payouts API

Payout batch succeeded. Fetching batch details and item breakdown...

See full conversation

Related integrations

Ready to connect PayPal?

Spin up an AI agent in under 2 minutes, plug in your PayPal credentials, and start running your workflows from WhatsApp.