RealComposer

Paddle Safe & Unsafe Practices

Direct Answer

Paddle client-side tokens are built for Paddle.js in the browser, while Paddle API keys and webhook secret keys are server-only. Provision access only after a verified webhook, never from a checkout completion event fired in the browser.

Credentials & Where They Belong

Client safe
Client-side token

Initializes Paddle.js to open checkouts. Cannot read or modify account data.

Server only
API key

Reads and modifies customers, subscriptions, prices, and transactions.

Server only
Notification destination secret key

Verifies the Paddle-Signature header on webhook deliveries.

Safe Practices

  • Verify Paddle-Signature on every webhook

    Compute the HMAC over the timestamp and raw body with your secret key and reject stale or mismatched signatures.

  • Pass price IDs, not amounts, to checkout

    Let Paddle resolve pricing, tax, and currency from catalog IDs defined in your dashboard.

  • Map customers to users on the server

    Store the Paddle customer ID against your user record from verified webhooks and look it up server-side for portal or subscription calls.

Unsafe Practices

  • Using the API key in Paddle.js or a frontend fetch

    The API key can cancel subscriptions and issue refunds. Only the client-side token belongs in the browser.

  • Granting access from checkout.completed in the browser

    Client events can be faked from DevTools. Wait for transaction.completed or subscription.activated on your server.

  • Accepting a customer ID from the client for lookups

    An attacker can swap IDs to read another customer. Derive the Paddle customer from the authenticated session.

The RealComposer Pattern

Keep PADDLE_API_KEY in the Secret Vault and build a pipeline that fetches the subscription for the signed-in user. The client token stays in the browser for checkout, and the edge URL returns a slim plan and status object.

START BUILDING FREE

Frequently Asked Questions

Q:Is the Paddle client-side token a secret?

No. It is designed to be public and only opens checkouts. Rotate it if abused, but it cannot read or change account data.

Security & Secret Vault

Call paddle api from react without leaking api key

Proxy Paddle Billing API with restricted client tokens and vault-held API keys. For "call paddle api from react without leaking api key", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let React hit only https://realcomposer.com/v1/workspace/call-paddle-api-from-react-securely with an rc_live_ client token.

Sub-10ms edgeView Recipe
Security & Secret Vault

Paddle api proxy for flutter mobile subscriptions

Paddle customer and subscription fetches without APK secret scanning risk. For "paddle api proxy for flutter mobile subscriptions", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let FlutterFlow hit only https://realcomposer.com/v1/workspace/paddle-api-proxy-flutter with an rc_live_ client token.

Sub-10ms edgeView Recipe

Merge paddle subscriptions with stripe payment history

Paddle subscription status and Stripe invoices in single client request. For "merge paddle subscriptions with stripe payment history", store PADDLE_API_KEY, STRIPE_SECRET_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let React / Flutter / Mobile hit only https://realcomposer.com/v1/workspace/merge-paddle-with-stripe-billing-api with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Combine paddle and supabase billing dashboard

Supabase user row and Paddle subscription merged for account screens. For "combine paddle and supabase billing dashboard", store PADDLE_API_KEY, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let FlutterFlow hit only https://realcomposer.com/v1/workspace/combine-paddle-with-supabase-billing with an rc_live_ client token.

Sub-10ms edgeView Recipe
Platforms & Frameworks

Retool connect paddle refunds securely

Retool queries RealComposer for Paddle write operations. For "retool connect paddle refunds securely", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/adjustments?action=refund&per_page=20 from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/retool-paddle-refunds-secure-proxy with an rc_live_ client token.

Sub-10ms edgeView Recipe

Paddle webhook and supabase user sync edge

Edge receives Paddle webhook and updates Supabase in one flow. For "paddle webhook and supabase user sync edge", store PADDLE_API_KEY, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let Any Frontend / Mobile hit only https://realcomposer.com/v1/workspace/paddle-webhook-supabase-sync-edge with an rc_live_ client token.

Sub-10ms edgeView Recipe

Related Concepts