Anyone willing to provide a tutorial video on how to track the status of Stripe invoices?
The use case is pretty general: I am interested to use Glide’s Stripe integration to send invoices to users. That looks to be relatively straightforward. However, it looks to be a step up in complexity to track the status, e.g. pending, paid, overdue, etc…
I understand Stripe offers a Webhook that can be triggered by events related to the invoice and this can be configured to send that update to Glide.
I am just dipping my toes into the world of Glide Webhooks and related Workflows. I am hoping it’s possible to set up my Glide App to listen for these updates and process them without using an external provider like Zapier or Make.
If anyone is willing to confirm this is feasible as described and put down the steps then great. Even better if they could share a quick video demonstrating the webhook and workflow set ups.
ChatGPT confidently shares these tips:
Here’s how you can do it effectively:
1. Set Up Stripe Webhooks
Webhooks allow Stripe to notify your app about changes in an invoice’s status (e.g., payment completed, failed, or overdue).
- Go to Stripe Dashboard:
- Navigate to Developers > Webhooks.
- Click Add Endpoint and provide a URL for your Glide app’s webhook (e.g.,
https://hooks.glideapp.io/webhook/your-app-id
).
- Select Events to Track:
- Choose events like:
invoice.payment_succeeded
invoice.payment_failed
invoice.updated
invoice.payment_action_required
- Choose events like:
- Test the Webhook:
- Use Stripe’s test mode to send sample events and ensure your endpoint is receiving them.
2. Create a Webhook in Glide
- Use Glide’s Webhooks Integration:
- In your Glide Data Editor, create a column in the table tracking invoices (e.g., “Invoice Status”).
- Add a Workflow that listens for Stripe’s webhook data and updates the status column in real time.
- Example Workflow Setup:
- Trigger: Webhook receives Stripe event.
- Steps:
- Parse the JSON payload to extract invoice status (
payment_succeeded
,payment_failed
, etc.). - Match the invoice ID from Stripe with the record in your Glide table (use a unique column like “Invoice ID”).
- Update the “Invoice Status” column in Glide with the received status.
- Parse the JSON payload to extract invoice status (
3. Update Invoice Status in Real Time
- Add a Status Column:
- In your table, create a column for “Invoice Status” and update it automatically via the webhook.
- Visual Indicators:
- Use Glide’s Conditional Visibility:
- Show different statuses (e.g., Paid, Pending, Failed) using icons or color-coded labels.
- Users can see whether their invoice is pending or paid.
- Use Glide’s Conditional Visibility:
4. Test the Full Flow
- Test Events in Stripe:
- Simulate events like payment success and failure in Stripe’s test mode.
- Verify Updates in Glide:
- Check that the invoice status in Glide updates correctly based on the webhook payload.
A video showing how to ‘parse the JSON payload, etc…’ would be huge.