- Home
- Skills
- APIs & Backend
- stripe connect replit
stripe connect replit
Integrate Stripe Connect payouts on Replit using native integrations for secure, keyless seller onboarding.
$15
Works with the AI Agents you already use
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
- Run
pnpm --filter @workspace/db run pushto apply the schema changes. - Verify the Replit Stripe Integration is active in your project's Tools sidebar.
- Set the
STRIPE_WEBHOOK_SECRETin 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
- Initialize the client by importing the Replit-specific Stripe integration wrapper.
- Update the database using the provided Drizzle table columns for
stripeAccountIdandstripeAccountEnabled. - Mount onboarding routes to handle account creation and link generation.
- Wrap payment calls with conditional
transfer_datalogic 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.
Requires Replit Stripe integration to be pre-installed. Supports Stripe Express accounts only. Logic assumes Express and Drizzle ORM usage.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
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