#stripeconnect-lineitems-paymentlink
1 messages ยท Page 1 of 1 (latest)
@lament gale https://stripe.com/docs/api/payment_links/payment_links/object#payment_link_object-line_items says Expandable
so you have to use https://stripe.com/docs/expand when you retrieve the PaymentLink and expand the relevant information you need
OK, great. I missed that!
Is name available though via expand????
I see line_items so we can get the price_id yes.
:name attribute?
name of what?
it's all linked together
a PaymentLink has line items, a LineItem has a Price, a Price has a Product, and you can expand what you need
that looks like the name associated with the product right?
When we create a new PaymentLink the customer is defining a name like "My Payment Link A". We are unable to pass in the name. Stripe is creating a totally different name I think just from the name of the Price/Product for which the PaymentLink is created. So then in our app the link with id 123 has a name of "My Payment Link A" in our app and a name of "Product ABC" in Stripe and we are confused how we can make sure those names are identical so the customer has a chance of finding the right link without looking at the buy.stripe.com/239893962976979uwetuttu really long url to match them
It is a customizable name field, but when we .create via the API there is no name field so we cannot set or get or update it.
I'm a bit confused I'm sorry
When we create a new PaymentLink the customer is defining a name like "My Payment Link A".
How do you do that since there's nonamein the API?
We ask the customer for a :name and a :price and then create it. We would like to be able to sync up the :name so if they go to the Stripe dashboard and update the name which they can easily do that we sync and update our name to match.
But :name is not available via the API right?
in our db - we save the user defined name entered in an input field prior to creation
where do you put the name?
okay so your own UI asks for a name, and our API takes no name, so they can't match right?
We have a payment link index page in our app
yes!
So stepping back here, we are a Stripe Connect platform as you know. We create custom Stripe Checkout code and take an application fee yes?
So now our customers are seeing Payment Links and trying to use them so if we are listening for the payments made by a payment link, we want to take our application fee yes?
So we tried to just let them use your UI to create Payment Links and we were going to just update their Payment Links with the necessary metadata and to take our application fee .
But you can't update a payment link with an application fee. ๐ฆ
So, we are going to route of having them create the PaymentLink on our end.
Now we are running into this issue where it is hard for them to see a payment link in our app and match it up with the index page in Stripe. We can send them to the link based on the ID but we are just trying to get access to the :name so we can make sure the :name is the same in our app and in Stripe's dashboard.
So now our customers are seeing Payment Links and trying to use them so if we are listening for the payments made by a payment link, we want to take our application fee yes?
Well if they create their own payment links and sell on their own, I don't see why you would take an application fee for that payment volume no
If I use your service to sell things, and separately use PaymentLinks for myself and you try to take money off of my payments, I would leave you immediately
Because after payment is made, we redirect them back to a special URL they do not understand with a CHECKOUT_SESSION and we pop up a Complete Your Signup Form and do all the magic.
but we are just trying to get access to the :name
Sure but you're expecting somethng that does not exist in the API. There is nonameproperty
Right!
so you can't want to access something that doesn't exist ๐
That is my concern, you clearly have a :name property but it is not exposed in the API
right now what we display in the Dashboard is the Product's name property https://stripe.com/docs/api/products/object#product_object-name
so we definitely do not clearly have a name property on PaymentLink
Oh!!!!!!!!!!
So you are saying when I update the name on a payment link, I am updating the name of the product??????
Are you sure?
lol
I'm sorry to be pushing back but you are really not clear
I think you see something I don't
when I update the name on a payment link
what does that mean. What do you update, where do you update it
Can you go to Payments > Payment Links and pick the one on top on any standard account.
Can you type into the name field with the big red arrow.
Are you saying when you overwrite that field that you are changing the name of the Product??????
I must be dumb lol
what does "can you type into the name field" even mean?
if I click on the name it just opens the Payment Link
Are you saying you click right where that arrow is and you can immediately see a text input and change the name?
Or are you doing multiple more steps?
wow never seen this before ๐
Okay this explains the confusion now, my account only shows the Product name everywhere
Sorry, I forgot myself.
do you have a plink_123 I can look at?
perfect, found it. So yeah we have a Dashboard-only friendly name on PaymentLink though we only let you add it after creation (not sure why). It's not in the API yet and the name column defaults to the Product's name if you haven't overridden the name on the PaymentLink
I filed a feature request with the product team to look into releasing name to the API!
Sorry for the confusion, it's the first time I ever see this and the fact that it's hidden under ... means I never thought to click there
OK, no worries. Thank you for the feature request! It would really help us make the feature work well for customers!