#fagunshah-paymentlinks

1 messages · Page 1 of 1 (latest)

slender turtle
#

hey

#

what kind of data are you hoping to receive? and what are the events you're listening to?

summer mesa
#

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?

slender turtle
#

There's no payment_link.succeeded event

#

but I still don't understand your use case

#

why are you using payment link ids?

summer mesa
slender turtle
#

do you need those on creation?

summer mesa
#

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

slender turtle
#

you could retrieve all payment details from the charge object

summer mesa
#

Can you point me to the endpoint in documentation?

slender turtle
summer mesa
#

Got it

#

Let me try that now

slender turtle
#

let me know if it works

summer mesa
#

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?

slender turtle
#

I misunderstood your question then

#

what you really need is the id of the payment link right?

summer mesa
#

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

slender turtle
#

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?

summer mesa
#

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

slender turtle
#

when you're doing payment links you can specify a price/product

#

right?

summer mesa
#

yes, but that information is also not passed in webhook data

slender turtle
#

it depends on which event you're listening to

summer mesa
#

Can you suggest me one which will include those details?

slender turtle
#

of course but let me ask you a couple of questions first

summer mesa
#

Sure

slender turtle
#

are these products, subscriptions?

#

recurring payment I mean or a one time thing?

summer mesa
#

one time payment link, same product can have different payment link with different prices

slender turtle
#

ok

#

just a second then

summer mesa
#

ok

slender turtle
#

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

summer mesa
#

let me check and try

slender turtle
#

sure

summer mesa
#

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

slender turtle
#

sorry I didn't quite get what you mean

summer mesa
#

I got it solved

slender turtle
#

perfect

summer mesa
#

Thank you so much

slender turtle
#

you're welcome

#

let me know if you need any more help

summer mesa
#

Sure, I am going to share this tips in zapier and pabbly connect community

#

I am sure it will help others as well