Accept PayPal payments in your nSelf-powered app. Create payment orders, capture funds, and handle webhooks — with transactions stored in your local database.
Free Forever — no license key required. Requires a PayPal developer account and REST API credentials.
np_paypal_transactionsnself plugin install paypal
nself plugin status paypal# PayPal REST API credentials
# Get from: developer.paypal.com > My Apps & Credentials
PAYPAL_CLIENT_ID=your_client_id
PAYPAL_CLIENT_SECRET=your_client_secret
# Environment: sandbox or live (default: sandbox)
PAYPAL_ENV=sandbox
# Webhook ID (from PayPal dashboard)
PAYPAL_WEBHOOK_ID=your_webhook_idPOST /api/paypal/orders
{
"amount": "29.99",
"currency": "USD",
"description": "ɳSelf+ annual subscription"
}
# Returns: { "order_id": "...", "approval_url": "https://paypal.com/..." }