RealComposer

Paddle webhook and supabase user sync edge

Event-driven billing sync without server

Direct Answer & Architecture Summary

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.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

CORS blocks Paddle and Supabase in Any Frontend / Mobile

Low-code Any Frontend / Mobile tools expose connector tokens in shared workspaces, so Paddle and Supabase credentials leak to every editor.

Critical Security & Operational Risks:
  • Browser console CORS errors blocking launches
  • Editors pasting secrets into reusable components
  • Inability to test locally without disabling security
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Store upstream credentials in Secret Vault

Create PADDLE_API_KEY, SUPABASE_SERVICE_ROLE_KEY vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.

2

Configure upstream steps and output mapping

Use GET against https://api.paddle.com/subscriptions/{{query.subscriptionId}}. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).

3

Call from Any Frontend / Mobile

Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.

                    const res = await fetch('https://realcomposer.com/v1/workspace/paddle-webhook-supabase-sync-edge', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
});
                  
Payload Slimming Comparison
56% Bandwidth Reduction
Raw Upstream Response252 B
              {
  "requestId": "req_paddle-w",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "paddle-webhook-supabase-sync-edge"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload111 B
              {
  "paddle_subscriptionId": "sample",
  "paddle_status": "sample",
  "supabase_rowId": "sample",
  "supabase_email": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
2
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
4
Payload
252 B to 111 B (-56%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/paddle-webhook-supabase-sync-edge" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Can Any Frontend / Mobile call Paddle without holding the production key?

Use scoped tokens where the vendor allows them on paddle-webhook-supabase-sync-edge. Admin keys stay {{secrets.*}} references only.

How do I forward JSON bodies to POST upstreams?

paddle-webhook-supabase-sync-edge keeps cache TTL at 0 because it uses POST upstream calls or per-user responses. Add ids to query strings before enabling GET cache.

Can I restrict which domains call this pipeline?

Upstream steps in paddle-webhook-supabase-sync-edge honor timeoutMs and optional fallback JSON without leaking secrets.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this Any Frontend / Mobile + Paddle, Supabase Recipe

Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.

CLONE THIS RECIPE
Related Architecture Recipes