What Could Be Causing My Stripe Webhook Trigger to Not Find a Notion Page in a Workflow Despite Trying Different Solutions?

This topic was automatically generated from Slack. You can find the original thread here.

Hi there, I have a problem with Stripe webhook trigger and Notion. Never had that problem before using pipedream since +2years

I have a notion page that is created in a workflow, after a webhook from stripe is called (charge succeeded)

I have then another workflow, with another trigger who is called (checkout session completed)

In the second workflow, I try to find the notion page using the query database, except that the query is always empty. So I tried to add a delay of 1min after the trigger, but the results of the query is still empty

I even tried to set “retry errors” but they never manage to find the page using the query.

Only when I go and do and click on the ‘test’ button by hand, it finds the page.

What kind of bug is this?

Hi , I believe the 2 events (charge succeeded and checkout session) might happened at the same time and trigger workflows at the same time, but you want the actions in those triggers happen in sequence. This is the cause of your syncing issue in your workflows (notion page created in the first one and not found in other)

To solve this, I would suggest you to make the first workflow triggers the second one via a HTTP webhook. Specifically:
• On the second workflow, replace the stripe trigger with http trigger (with body)
• On the first workflow, add to the last step of your workflow a HTTP action with the destination is the HTTP trigger endpoint of the second workflow
By this, you will guarantee to have the second workflow always find the Notion page that you created on the first workflow

Problem is, the two events are different, and I can’t get the data i want from the first event, i can only get them from the second event that is triggered at the same time

If I do HTTP request from the first event, I won’t be able to retrieve the data i get from the second event

Hey , if you just want to get data, how about adding a stripe action to get the Checkout Session on the first workflow, then send it to the second workflow via HTTP request body?

Posted thread to Discourse: Why Can't I Find a Notion Page Using Database Query in a Stripe Webhook Triggered Workflow?

it’s impossible to link a Stripe payment event with a checkout session

I wish i could do that but it just doesn’t work that way

I solved it with some refacto, thanks