stripe connect replit

    1

    Integrate Stripe Connect payouts on Replit using native integrations for secure, keyless seller onboarding.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    stripe connect replit

    Example session with this skill installed

    I need to add Stripe Connect to my Replit marketplace app so instructors can get paid. Generate the Drizzle schema and the onboarding routes.

    • Read your context and instructions
    • Compiled the stripe connect replit

    I have generated the Stripe Connect integration for your Replit project. This includes the database schema updates for your instructors and the Express routes for Stripe Express onboarding.

    Stripe Connect Integration

    // db/schema.ts - Add these to your instructorsTable
    import { text, boolean } from "drizzle-orm/pg-core";
    
    export const instructorsTable = pgTable("instructors", {
      id: serial("id").primaryKey(),
      stripeAccountId: text("stripe_account_id"),
      stripeAccountEnabled: boolean("stripe_account_enabled").default(false),
      // ... other fields
    });
    
    // routes/stripe-connect.ts
    import { Router } from "express";
    import { getStripeClient } from "@replit/agent-integrations/stripe";
    import { db, instructorsTable } from "@workspace/db";
    import { eq } from "drizzle-orm";
    
    const router = Router();
    
    router.post("/api/connect/onboard", async (req, res) => {
      const stripe = await getStripeClient();
      if (!stripe) return res.status(503).json({ error: "Stripe integration not found" });
    
      const [user] = await db.select().from(instructorsTable).where(eq(instructorsTable.id, req.user.id));
      
      let accountId = user.stripeAccountId;
      if (!accountId) {
        const account = await stripe.accounts.create({ type: "express" });
        accountId = account.id;
        await db.update(instructorsTable).set({ stripeAccountId: accountId }).where(eq(instructorsTable.id, req.user.id));
      }
    
      const link = await stripe.accountLinks.create({
        account: accountId,
        refresh_url: `https://${process.env.REPLIT_DEV_DOMAIN}/reauth`,
        return_url: `https://${process.env.REPLIT_DEV_DOMAIN}/dashboard`,
        type: "account_onboarding",
      });
    
      res.json({ url: link.url });
    });
    
    export default router;
    

    Next steps

    1. Run pnpm --filter @workspace/db run push to apply the schema changes.
    2. Verify the Replit Stripe Integration is active in your project's Tools sidebar.
    3. Set the STRIPE_WEBHOOK_SECRET in your Replit Secrets to handle account updates.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Building a marketplace or platform on Replit requires a specialized approach to payments. Manually managing secret keys is error-prone and insecure. This skill implements Stripe Connect using Replit's native integrations, allowing you to pay out sellers or instructors directly without handling sensitive credentials.

    What it does

    • Automated client setup fetches the authenticated Stripe client via the Replit agent integrations system.
    • Drizzle schema extension adds necessary fields to your database for tracking Stripe account IDs and verification status.
    • Onboarding workflow generates hosted Stripe Express onboarding links for your platform users.
    • Status tracking monitors if charges and payouts are enabled for specific sub-accounts.
    • Payment routing configures PaymentIntents and Subscriptions to direct funds to the correct destination account.
    • Webhook handling provides the pattern for secure signature verification using raw request bodies.

    How it works

    1. Initialize the client by importing the Replit-specific Stripe integration wrapper.
    2. Update the database using the provided Drizzle table columns for stripeAccountId and stripeAccountEnabled.
    3. Mount onboarding routes to handle account creation and link generation.
    4. Wrap payment calls with conditional transfer_data logic to ensure funds reach the seller.

    Frameworks & tools

    This skill is designed for Replit projects using TypeScript, Express, and Drizzle ORM. It requires the Replit Stripe connector integration.

    Why this beats prompting it yourself

    Generic Stripe tutorials fail to account for Replit's internal integration system, leading to redundant STRIPE_SECRET_KEY errors. This skill uses the native @replit/agent-integrations pattern to ensure your environment stays secure and your payouts work without manual key rotation.

    Use cases

    • Build a course marketplace where instructors receive payments for student enrollments.
    • Create a multi-vendor ecommerce site with automated split payments.
    • Launch a subscription service where creators get paid directly by their fans.

    Known limitations

    Requires the Replit Stripe integration to be pre-installed in the project environment. It only supports Stripe Express account types as defined in the onboarding logic.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Requires Replit Stripe integration to be pre-installed. Supports Stripe Express accounts only. Logic assumes Express and Drizzle ORM usage.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 22 days ago

    Permissions

    Network Access
    Environment Variables
    Listed22 days ago

    What's inside

    Frequently Asked Questions

    This skill eliminates the need for manual API key management by utilizing Replit's native `@replit/agent-integrations`, preventing common credential errors and ensuring a more secure environment for handling seller payouts.

    The skill is specifically optimized for Replit projects using TypeScript, Express, and Drizzle ORM; it requires the Replit Stripe connector to be active in your workspace for the keyless integration to function.

    You will receive a complete integration pattern including Drizzle schema extensions, onboarding route handlers, secure webhook verification logic, and automated client initialization scripts.

    No, this skill is specifically designed for Stripe Express account types, providing a streamlined, hosted onboarding experience for your sellers while minimizing your platform's compliance burden.

    Yes, the provided webhook handling logic includes patterns for secure signature verification using raw request bodies, which is essential for tracking seller verification status and payment updates.

    Updates are periodically released to ensure compatibility with the latest Replit agent integration standards and Stripe API versions; buyers receive access to these improvements as they are published.

    New in APIs & Backend