Workflow Summary
This workflow is triggered by a Stripe webhook event called "⚡️ Stripe Payment Succeeded," which activates whenever a successful payment is made through Stripe.
Step 1: Stripe Webhook
- Function: Listens to Stripe webhooks and captures various details from the Stripe event.
- Captured Data:
- Created date
- Event type
- Event ID
- Payment amount
- Customer information
- Payment status
Step 2: Search Notion
- Function: Searches for payments due in Notion based on customer / payment info.
- Outcome: Expects a single matching item (limit set to 1).
Possible Outcomes
- Matching Item Found: Notion item is updated with the following info:
- Status updated to PAID.
- Payment date applied.
- Payment ID applied.
- No Matching Item Found: A new Notion item is created with the following info:
- Customer Info
- Payment status PAID.
- Payment date applied.
- Payment ID applied.