Stripe + Brevo Integration
Stripe + Brevo Integration
Tajo เชื่อมต่อ Stripe payment events กับ Brevo marketing automation เปิดใช้งานแคมเปญที่ปรับแต่งเองตาม payment behavior
สิ่งที่ซิงค์
| Stripe Event | Brevo Action | คำอธิบาย |
|---|---|---|
payment_intent.succeeded | Brevo event + email | เปิดใช้งาน post-purchase flow |
customer.subscription.created | Contact update | เพิ่ม subscription status |
customer.subscription.deleted | Brevo event | เปิดใช้งาน churn flow |
customer.created | Contact creation | ซิงค์ new customer |
การตั้งค่า
const webhook = await stripe.webhookEndpoints.create({ url: "https://api.tajo.io/stripe/webhooks", enabled_events: [ "payment_intent.succeeded", "customer.subscription.created", "customer.created", ],});Post-Purchase Sequence
const postPurchaseWorkflow = { trigger: "payment_intent.succeeded", steps: [ { delay: "0m", action: "brevo/send-email", template: 301 }, { delay: "3d", action: "brevo/send-email", template: 302 }, { delay: "30d", condition: "no_repeat_purchase", action: "brevo/send-email", template: 303 } ]};ขั้นตอนถัดไป
- Stripe Apps Guide, สร้าง native Stripe Dashboard integration