Payment Links service wrapping Stripe Payment Links (read-only).
A Payment Link's line items are what it offers. What was actually sold through it is on the Checkout Sessions it created: checkout.list({ paymentLinkId, status: 'complete' }).
checkout.list({ paymentLinkId, status: 'complete' })
const link = await stripe.paymentLinks.get('plink_123');const offered = await stripe.paymentLinks.listLineItems(link.id); Copy
const link = await stripe.paymentLinks.get('plink_123');const offered = await stripe.paymentLinks.listLineItems(link.id);
Retrieve a Payment Link by ID.
List all line items of a Payment Link (every page, fetched for you).
Optional
When paymentLinkId is missing
paymentLinkId
Payment Links service wrapping Stripe Payment Links (read-only).
A Payment Link's line items are what it offers. What was actually sold through it is on the Checkout Sessions it created:
checkout.list({ paymentLinkId, status: 'complete' }).Example