#fagunshah-paymentlinks
1 messages · Page 1 of 1 (latest)
hey
what kind of data are you hoping to receive? and what are the events you're listening to?
I am listening to charge.succeeded event
And we want the payment link ids in the webhook data so we can setup different paths based on that
in zapier
But stripe is not sending payment link id in charge.succeeded event webhook data
Should I try some other event for payment link successful payments?
There's no payment_link.succeeded event
but I still don't understand your use case
why are you using payment link ids?
do you need those on creation?
I need to send payment links' payment details to webhook
But the webhook data should have payment link id so I can setup different actions in zapier based on the payment link id received in webhook data
you could retrieve all payment details from the charge object
Can you point me to the endpoint in documentation?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let me know if it works
yes, give me 5-10 min
It does not give any details on the which payment link was used to complete the payment
Should I try some other webhook event?
I misunderstood your question then
what you really need is the id of the payment link right?
yes, on webhook data when the payment is made on that payment link(successful or failed)
that way I can enroll them in different courses
ok, now I understand your use case
could you please give me a couple of minutes to find you the best suited solution for your use case?
Sure, and I will also record a video to explain it in detail in the meantime
I really appreciate all your help
Check this video for more details
yes, but that information is also not passed in webhook data
it depends on which event you're listening to
Can you suggest me one which will include those details?
of course but let me ask you a couple of questions first
Sure
one time payment link, same product can have different payment link with different prices
ok
I guess your best way of doing this is to listen to the checkout.session.completed event
in that event you have the payment_link id
which you can use
let me check and try
sure
nice, it does not match link id in the stripe dashboard
But I think I can capture with test payment for each link
THe id stays same for the each link
sorry I didn't quite get what you mean
I got it solved
perfect
Thank you so much