{
  "slug": "paddle-api-proxy-flutter",
  "title": "Paddle api proxy for flutter mobile subscriptions",
  "metaTitle": "Paddle api proxy for flutter mobile - RealComposer",
  "metaDescription": "Paddle api proxy for flutter mobile subscriptions. Paddle customer and subscription fetches without APK se. Keep Paddle keys in RealComposer Vault;.",
  "headline": "FlutterFlow subscription status via edge",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 9,
  "clientPlatform": "FlutterFlow",
  "upstreamServices": [
    "Paddle"
  ],
  "searchIntentQuery": "paddle api proxy for flutter mobile subscriptions",
  "directAnswerSummary": "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.",
  "problem": {
    "title": "Why FlutterFlow leaks Paddle credentials",
    "explanation": "Attackers routinely extract Paddle secrets from FlutterFlow builds. Direct browser calls also expose internal error payloads with hostnames.",
    "risks": [
      "Production Paddle keys copied from FlutterFlow bundles",
      "Compliance violations after credential leaks",
      "Attackers replaying vault-grade scopes from a laptop"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Add PADDLE_API_KEY to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "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)."
    },
    {
      "stepNumber": 3,
      "title": "Wire the FlutterFlow API Call",
      "description": "Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.",
      "codeSnippet": "// FlutterFlow API Call\nURL: https://realcomposer.com/v1/workspace/paddle-api-proxy-flutter\nHeader Authorization: Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Paddle api proxy for flutter mobile subscriptions",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "paddle",
        "upstreamUrlTemplate": "https://api.paddle.com/subscriptions/{{query.subscriptionId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.PADDLE_API_KEY}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "subscriptionId",
          "sourcePath": "data.id",
          "type": "string",
          "sourceStep": "paddle"
        },
        {
          "targetPath": "status",
          "sourcePath": "data.status",
          "type": "string",
          "sourceStep": "paddle"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_paddle-a",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "paddle-api-proxy-flutter"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "subscriptionId": "sample",
    "status": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/paddle-api-proxy-flutter\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Paddle credential belongs in the vault for this pipeline?",
      "answer": "Log request IDs for paddle-api-proxy-flutter, not raw Paddle payloads, because upstream bodies may include PII."
    },
    {
      "question": "What cache key does RealComposer use?",
      "answer": "paddle-api-proxy-flutter vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Allowed origins on the paddle-api-proxy-flutter client token restrict which domains may call the edge URL."
    }
  ],
  "relatedRecipeSlugs": [
    "call-stripe-from-flutterflow-securely",
    "plaid-api-proxy-flutter"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/paddle-api-proxy-flutter",
    "markdown": "https://realcomposer.com/recipes/paddle-api-proxy-flutter.md",
    "json": "https://realcomposer.com/recipes/paddle-api-proxy-flutter.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=paddle-api-proxy-flutter&via=agent"
  }
}