#Vishal0910-Invoice

1 messages · Page 1 of 1 (latest)

fringe rampart
#

Hi, I think you have mixed up a few things. PaymentLink and Checkout are similar, but they have different integration path

#

When you generated a PaymentLink, you got a link to send to your customer. They can make a Payment on that

#

It's not really an "invoice"

#

but payment will be completed by that link

hollow pelican
#

When a customer opens a payment link it will open a new checkout session to render the payment page. You can use checkout session events to track payments through payment links.

basically i want to access this checkout session to get those tax details applied on it via stripe tax

#

basically i have to create a custom page where i have to render all payment details

fringe rampart
#

When a customer opens a payment link it will open a new checkout session to render the payment page. You can use checkout session events to track payments through payment links.

#

Is this from some document? Can I have the link?

hollow pelican
fringe rampart
#

I mean, PaymentLink and Checkout using the same core component underneath indeed

#

Sure, thanks

#

So I think you can listen to this webhook event checkout.session.completed

hollow pelican
#

but suppose i created multiple links....how to acess session of a particular link...may be i am wrong since i am quite new to it

fringe rampart
#

For each Payment link, it can generated multiple Checkout Session each time one customer open the link

#

So let's say you created 1 link for 1 of your products, sent it out to 10 customers. Then each of them will trigger a creation of a Checkout Session

#

The questions is, how to distinguish Sessions belongs to different Links

hollow pelican
#

yes

fringe rampart
#

Inside the Session object, you will have the Payment Link