#chris-carmona_api

1 messages Β· Page 1 of 1 (latest)

ancient canyonBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

πŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1286401401093754901

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

finite fjordBOT
cold palm
#

Hi there πŸ‘‹ quick heads up that we aren't familiar with the Stripe integration that Zapier built and provides. I can try to provide some guidance if you can tell me more about what you're looking at within Zapier and how that maps to Stripe, but I won't be familiar with that mapping offhand.

Is this some sort of webhook integration that Zapier provides that lets you listen to the Events we generate?

gentle hatch
#

hey sorry i had notifs off for discord

#

so zapier has an integration where they can see different triggers inside of stripe such as new payment. when that new payment triggers inside of zap it sends over some data of the purchase including address, amount etc.

#

from that data that zapier pulls, i want to find a way to filter out only certain products in order to achieve the rest of my automation. if theres a way to do this with webhooks from stripes developer portal, im open to that as well. zapier can catch webhooks

cold palm
#

Does Zapier give you any sort of id for the data it gives you? i'm trying to understand what Stripe objects it may be surfacing to see if I'd recommend trying to look at different object types instead.

gentle hatch
#

it pulls a unch of data, the first one is ID but i think that's the transaction ID

#

for this unique transaction

cold palm
#

Do you have a sense of what objects you're creating to process payments in Stripe? Checkout Sessions, Invoices, Subscriptions, something along those lines?

gentle hatch
#

i have no idea😭

#

i think checkout sessions

#

they are one time payments

cold palm
#

Can you copy that ID that starts with pi_ and paste it here, I may be able to help get that insight.

gentle hatch
#

pi_3Q0Uq5Duj6EieWob2Um7r2ch

cold palm
#

Alright, so it looks like these are coming from a Payment Link, which works by generating Checkout Sessions. If Zapier gives you a way to listen for Checkout Sessions rather than Payment Intents, that'll get you closer to the data up front. Otherwise you'll need to build a flow in Zapier to find the related objects and do the filtering you're wanting to.

gentle hatch
#

do you think this checkout session completed event would meet what you're saying?

cold palm
#

Yup! That'll get you closer to the details you're looking for

gentle hatch
#

ok im going to run a test transaction for $0.50 really quick to see if it works

#

idk why the test mode transaction data never gets sent to zapier

cold palm
#

Oh, that's gross that they don't let you listen to testmode Events.

gentle hatch
#

yea lmfao

#

ok it definitely worked, im ecstatic. i've been busting my head with this since yesterday for like 20 hours straight lmfao

#

thank you so much toby, youre the goat

cold palm
#

Happy to help!

#

I got nervous I wouldn't be able to when you mentioned Zapier πŸ˜…

gentle hatch
#

lol honestly bro i was open to getting this done however i know stripe has their own webhooks as well so im sure i couldve gotten it done that way as well but zapier just makes it easier