class Stripe::PaymentLink
Related guide: [Payment Links API](stripe.com/docs/payment-links)
When a customer opens a payment link it will open a new [checkout session](stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.
A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times.
def self.list_line_items(payment_link, params = {}, opts = {})
def self.list_line_items(payment_link, params = {}, opts = {}) request_stripe_object( method: :get, path: format("/v1/payment_links/%<payment_link>s/line_items", { payment_link: CGI.escape(payment_link) }), params: params, opts: opts ) end
def list_line_items(params = {}, opts = {})
def list_line_items(params = {}, opts = {}) request_stripe_object( method: :get, path: format("/v1/payment_links/%<payment_link>s/line_items", { payment_link: CGI.escape(self["id"]) }), params: params, opts: opts ) end