Stripe Webhook - Only Capture Subscriptions

My Checkout Session Completed Stripe Webhook is capturing transactions that aren’t related to subscriptions. I am using the API Connector for capturing subscriptions to my app, and I’m using Stripe Connect - Create Checkout Session for non-subscription purchases in the app. This is causing errors in the Stripe webhook as it’s attempting to capturing all checkout sessions and gives errors for non-subscription checkouts. Could you please advise on how to resolve this issue? Thanks so much!

For more context, I used this tutorial for setting up my subscription payments using the API Connector in Bubble with Stripe.

Here is a screenshot of my api connector for checkout session.