billingsdk-paddle
v0.1.1
Published
Paddle adapter for Billing SDK
Readme
billingsdk-paddle
Paddle adapter for Billing SDK. Support for checkout, subscriptions, customer portal, and RSA webhook verification.
Installation
npm install billingsdk-core billingsdk-paddleUsage
import { createBilling, definePlans } from "billingsdk-core";
import { paddle } from "billingsdk-paddle";
const billing = createBilling({
adapter: paddle({
apiKey: process.env.PADDLE_API_KEY!,
webhookPublicKey: process.env.PADDLE_WEBHOOK_PUBLIC_KEY,
environment: "production", // or "sandbox"
}),
plans,
});Capabilities
| Feature | Supported | |---------|-----------| | Checkout | ✅ | | Subscriptions | ✅ | | Customer Portal | ✅ | | Refunds | ✅ | | Invoices | ✅ | | Subscription Pause | ✅ | | Subscription Resume | ✅ |
Webhook Verification
Verifies Paddle webhook signatures using RSA-SHA256 with the Paddle public key via the Paddle-Signature header.
