stripe-payment-flow

بواسطة AgentsRoomموثّق من AgentsRoomلا تثبيتات بعدلا إعجابات بعدآخر تحديث 7 مايو 2026الفئة: الهندسة

ماذا تفعل

Use when integrating Stripe. Generates payment-intent endpoint, idempotent webhook handler, and the orders table migration.

يفتح التثبيت هذه البطاقة في تطبيق AgentsRoom للسطح المكتبي لديك. إذا لم يكن التطبيق مثبّتاً بعد، فستُنقل إلى صفحة التنزيل.

SKILL.md

---
name: stripe-payment-flow
description: Use when integrating Stripe. Generates payment-intent endpoint, idempotent webhook handler, and the orders table migration.
---

# Stripe payment flow

When asked to add a checkout / subscription flow:

1. Use Stripe Checkout for one-shot payments, Stripe Billing for subs — don't roll your own Elements unless the user insists.
2. Webhook handler MUST verify the signature (`stripe.webhooks.constructEvent`) before doing anything.
3. Webhook is idempotent: dedupe on `event.id`. The same event can fire twice in network failures.
4. Persist Stripe ids (`customer`, `subscription`, `payment_intent`) on your User / Order rows.
5. Never trust the client-side success URL alone — confirm via webhook before flipping `paid: true`.

الوسوم

backendstripepayments

قراءات إضافية

تحميل AgentsRoom

شغّل كل وكلاء الذكاء الاصطناعي لديك، في كل مشاريعك، من نافذة واحدة.

مجانيتحميل AgentsRoom

التطبيق المرافق: تابع وكلاءك أينما كنت

استخدم Claude أو Codex أو Antigravity CLI أو أي مزود AI آخر.

تثبيت الملحق
Chrome Web Store

أرسل الأخطاء والطلبات مباشرة إلى قائمة المهام العامة.

مشاريع متعددة
متعدد المزوّدين
وكلاء متعددون
حالة مباشرة
فرق الملفات والـ commit
تطبيق الهاتف
معاينة مباشرة
فرق الوكلاء
أتمتة المتصفح
تطوير موجّه بالـ backlog
مكتبة البرومبت
مكتبة المهارات
عرض جميع الميزات