paypal
PayPal Plugin
Section titled “PayPal Plugin”PayPal payment sync with webhooks and order management. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install paypalWhat It Does
Section titled “What It Does”Syncs PayPal payment data into your Postgres database via the PayPal REST API and webhooks. Tracks orders, captures, refunds, disputes, and subscriptions. Provides a webhook receiver for real-time payment event processing. With 14 synced tables, query PayPal data directly via Hasura GraphQL.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
PAYPAL_PORT | 3071 | PayPal plugin port |
PAYPAL_CLIENT_ID | none | PayPal REST API client ID |
PAYPAL_CLIENT_SECRET | none | PayPal REST API client secret |
PAYPAL_MODE | sandbox | Mode: sandbox or live |
PAYPAL_WEBHOOK_ID | none | PayPal webhook ID for validation |
| Port | Purpose |
|---|---|
| 3071 | PayPal integration REST API |
Database Tables
Section titled “Database Tables”14 tables added to your Postgres database, including:
np_paypal_orders: order recordsnp_paypal_captures: payment capturesnp_paypal_refunds: refund recordsnp_paypal_disputes: dispute/chargeback recordsnp_paypal_subscriptions: subscription statenp_paypal_plans: subscription plan definitionsnp_paypal_webhook_events: raw event log- And 7 more for customers, invoices, payouts, etc.
Nginx Routes
Section titled “Nginx Routes”| Route | Target |
|---|---|
/paypal/webhook | PayPal webhook receiver |