Baketa0000B
BuildShip2y ago
4 replies
Baketa0000

Baketa0000 - Hi, hope anyone can help me to und...

Hi, hope anyone can help me to understand what I am doing wrong or if I have encounter a software bug, I want to capture the payment information from a stripe webhook, I have the hook configured to "checkout.session.completed" and everything is set up properly on the Stripe side of things and I do get the hook.
Next node is to get data for the transaction from my supabase table, it works fine, I can retrieve all the fields related to the transaction refered by the stripe´s checkout id.
The problem is with the branch node that follows, here is the condition: " ctx["root"]["c133b812-5de5-4680-a6b9-7bf6cab3b54a"][0].credits == true " so that if the value of the field "credits" I got from the Get Row node equals "true" then do something else do something else.
For some reason it fails with the error " "label": "Branch",
"message": "Cannot read properties of undefined (reading 'credits')"
}"

which I don´t understand why, so I set up a new workflow which is the same other than the trigger node being a Post request insted, and this one works fine, here is a screnshot of both, the details , filters, and everything on the supabase node and branch node are identical
image.png
image.png
Was this page helpful?