#chris-carmona_api
1 messages Β· Page 1 of 1 (latest)
π 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.
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?
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
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.
it pulls a unch of data, the first one is ID but i think that's the transaction ID
for this unique transaction
Ah, so they're giving you Payment Intent objects.
https://docs.stripe.com/api/payment_intents/object
Those don't contain any reference to Product or Price objects that you may have created.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do you have a sense of what objects you're creating to process payments in Stripe? Checkout Sessions, Invoices, Subscriptions, something along those lines?
Can you copy that ID that starts with pi_ and paste it here, I may be able to help get that insight.
pi_3Q0Uq5Duj6EieWob2Um7r2ch
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.
Those have a line_items array that includes information about the Price object that was used:
https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-line_items-data-price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
do you think this checkout session completed event would meet what you're saying?
Yup! That'll get you closer to the details you're looking for
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
Oh, that's gross that they don't let you listen to testmode Events.
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
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