RealComposer
RetoolPaddlePlatforms & Frameworks

Retool connect paddle refunds securely

Finance ops Paddle adjustments without keys in queries

Direct Answer & Architecture Summary

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.

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

CORS blocks Paddle in Retool

Low-code Retool tools expose connector tokens in shared workspaces, so Paddle 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 vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.

2

Target the real upstream URL

Configure headersTemplate to inject vault secrets, target https://api.paddle.com/adjustments?action=refund&per_page=20, and Add output mapping fields that mirror the JSON contract your screen already expects.

3

Query from Retool

Allowed origins on the token should list every Retool host that calls this URL.

                    // REST resource or JS query
const rows = await fetch('https://realcomposer.com/v1/workspace/retool-paddle-refunds-secure-proxy', {
  headers: { Authorization: 'Bearer rc_live_token' }
}).then(r => r.json());
                  
Payload Slimming Comparison
82% Bandwidth Reduction
Raw Upstream Response253 B
              {
  "requestId": "req_retool-p",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "retool-paddle-refunds-secure-proxy"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload45 B
              {
  "subscriptionId": "sample",
  "status": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
1
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
2
Payload
253 B to 45 B (-82%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/retool-paddle-refunds-secure-proxy" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Does Retool need CORS changes after adding RealComposer?

Store PADDLE_API_KEY for retool-paddle-refunds-secure-proxy. Retool never sees decrypted values.

When does edge caching apply to this recipe?

retool-paddle-refunds-secure-proxy forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.

What happens if an upstream step times out?

Upstream steps in retool-paddle-refunds-secure-proxy honor timeoutMs and optional fallback JSON without leaking secrets.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this Retool + Paddle 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