#kanohian
1 messages · Page 1 of 1 (latest)
What do you mean exactly?
I have many prices related to a product
However only one of them is the real product price, the rest are addos the customer can choose from
so I want in the payment link to appear my product name and all of the addons the customer is paying for
I make an idea of include them via inline-items prop
Ah, right -- with payment links you need to used a known price: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-line_items-price
If you want to define dynamic product data, you can do so by creating your own checkout sessions directly:
but I still need the payment link. Can I create this checkout and pass it to my payment link?
You get a url for the one session -- its different than a re-usable payment link
Can you explain how you want to use this?
sure.
customer receives an sms with a payment link
he opens it and gets the product and all of the addons included
now problem is that it is already implemented, so I have to deal with it
Do these items need to be customized per customer?
not really
Or do you use re-usable links?
problem is they are no stripe product
this addons are not stripe products, but yet have a price object associated
these prices are related directly to an actual stripe product
Well you will need to create those as Stripe products then, yes
And include them in the line items when you configure the payment link
yeah that is waht i suppossed
so the line-items of either plinks or checkout
can not be customized
its display name I mean
if you create the checkout sessions (per customer) yourself, you can customize this in price_data[product_data] like i linked to
NP!