#davidstanton_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1334910932782026849
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- davidstanton_api, 53 minutes ago, 58 messages
the asked me a question and didnt give me chance to respond, close out, thats really not good service there. The question is ho can I get variables on to here with the api:
i have now got the domain onto the invocie by using "custom fields" and the domain is on the payments description, but i cant for the life of me , get it/ them onto the invoice descriptions, so as they show in above and ideally, actually on the invoice next to the subscription
Hm I'm not sure that what's shown there is the description field on an invoice
Can you share one of those invoice id's from the screenshot so I can take a look where the portal is pulling that from?
The customer portal in general has limited customizability, so it may be that you can't change what's displayed there. Not sure
in_1QnMDVE7dsAdGvZeyHup2u51
i've done it everywhere i need to do it apart from in these bits, highly fustrating
down here perfect, just not on the actual invoice
I don't see Adysis Floors for prebid - Monthly explicitly set like that in any of the fields, so I'm assuming this is some shortened description that Customer Portal is using
I don't see a way to customize this
The Invoice's description field is set to something entirely different, so it's definitely not pulling that
its coming from a product name? i setup 6 different products, which are my subscriptions
look here:pi_3QnMDWE7dsAdGvZe06Sk9UWm you can see at the botom, your right the invoice "description" seesm to be something completelky different, so the question then, is why is it completly different, hw is anyone ment to know what they are doing when the field dont even match variables lol
this correct
That's the payment intent description not the invoice description
Invoice description is set to Thanks you for your business with Spormeon Ltd T/A Adysis
Which is coming from your dashboard settings
Invoice description is the same as the memo field on the dashboard
this some wild , random description. i think its from "live site" "default memo"
Yeah it is
Memo is the same thing as Invoice Description
I get it's a bit confusing
There's several description fields
it should be "memo" in the schema lol
how can anyone work out the logic, when there is no logic, its crazy
i got it to the meta here, but that dont display out anywhere
metadata isn't displayed anywhere. that's just for use in your app if you need to store some extra fields
We have a doc on metadata usecases here: https://docs.stripe.com/metadata
ye dont worry about that doc, that not the question here
What's the question
whats the api call to get to set that line: description
The one within the line item?
That's set automatically for subscriptions
you don't control that
lines.data.description
so there is a massive "black hole" here then, someone has designed the api, so you can add something where i want it lol, great
isurely cant be the first person to want to "pass a domain" this is the internet afterall
can the product name be "chnaged on the fly" with the api, before it gets to invoice?
You don't need to pass product id to the checkout session. If you want to define it on the fly you can via product_data. That would allow you to set the product name on a per-checkout session basis: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-name
and that will pass through and display in the user portal on those invocie line items?
It should. I don't know if there's a character limit for what the customer portal displays though. Recommend testing it out in test mode to make sure it displays how you want it
cant you mock it there, see if it works?
and where is product_data in that docs you put?
Give me a bit and I can test it for you if you want
What do you mean?
you mean:line_items.price_data.product_data.name
and dont close me out please, its friday afternoon here adn i'll be gone soon, i might not see the mock till monday
We don't leave threads open. We handle many threads, so we only keep open the ones that are active. You will still have access to closed threads though
You can view old threads
yes
And I tested this and it works as expected
For example:
{
"price_data": {
"currency": "usd",
"unit_amount": 1000,
"recurring": {"interval": "month"},
"product_data": {"name": "My test product name"},
},
"quantity": 1,
```
My test product name shows in the customer portal's invoice history
got screenshot or so, can you give me full api call, anything that helps
are you doing this in your own backend, cant you do it in mine, so i can see it etc?, in my "test mode"?
no i cannot
I did it on my own test account
I don't have access to your account
What do you need exactly?
I shared the params you need to pass above
everything, api calls etc, least i can "mock" it my end in workbench then etc adn see the flow etc etc
In your checkout session creation request, pass price_data and product_data like I did here: #1334910932782026849 message instead of price id and product id. You just need to modify your existing api calls
ok thansk, i'll try it