Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The PayPal module implements the PaymentProvider interface from @86d-app/payments against the PayPal REST Orders API. It includes a webhook endpoint with signature verification, replay protection, and a constant-time comparator. Source: modules/paypal · npm: @86d-app/paypal

Installation

86d module add paypal payments

Configuration

paypal({
  clientId: "...",
  clientSecret: "...",
  sandbox: "true",
  webhookId: "..."
});
You can also configure via config.json and the corresponding PAYPAL_* environment variables. See Environment variables.

Webhook setup

Set the webhook URL in the PayPal developer dashboard to:
POST https://your-store.com/api/paypal/webhook
Subscribe to PAYMENT.CAPTURE.COMPLETED and PAYMENT.CAPTURE.DENIED at minimum.