Paddle webhook and supabase user sync edge
Event-driven billing sync without server
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.
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.
- Browser console CORS errors blocking launches
- Editors pasting secrets into reusable components
- Inability to test locally without disabling security
How RealComposer Solves This at the Edge
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.
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).
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' }
});
{
"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"
}
}
}
{
"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%)
curl -X GET "https://realcomposer.com/v1/workspace/paddle-webhook-supabase-sync-edge" \ -H "Authorization: Bearer rc_live_client_token"
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
- DefinitionWebhook (HTTP Callback)
- DefinitionIdempotency in APIs
- DefinitionEvent-Driven Architecture
- DefinitionWebhook Signature Verification
- DefinitionLong Polling
- DefinitionMessage Queue
- DefinitionPublish-Subscribe (Pub/Sub)
- DefinitionAsyncAPI Specification
- DefinitionEvent Choreography
- DefinitionChange Data Capture
- DefinitionWebhook Payload Schema
- Stack guideWeb Frontends safe & unsafe practices
- Stack guidePaddle safe & unsafe practices
- Stack guideSupabase safe & unsafe practices
- Official docsWeb Frontends documentation
- Official docsPaddle documentation
- Official docsSupabase documentation
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.