#davidstanton_unexpected

1 messages ¡ Page 1 of 1 (latest)

hardy torrentBOT
#

👋 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.

muted stone
#

We close threads when they become inactive

#

What's your question?

dark jacinth
#

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

muted stone
#

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

dark jacinth
#

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

muted stone
#

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

dark jacinth
#

its coming from a product name? i setup 6 different products, which are my subscriptions

muted stone
#

Ah that is the exact product name

#

Probably is that

dark jacinth
#

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

muted stone
#

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

dark jacinth
#

this some wild , random description. i think its from "live site" "default memo"

muted stone
#

Yeah it is

#

Memo is the same thing as Invoice Description

#

I get it's a bit confusing

#

There's several description fields

dark jacinth
#

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

muted stone
#

metadata isn't displayed anywhere. that's just for use in your app if you need to store some extra fields

dark jacinth
#

ye dont worry about that doc, that not the question here

muted stone
#

What's the question

dark jacinth
#

whats the api call to get to set that line: description

muted stone
#

The one within the line item?

#

That's set automatically for subscriptions

#

you don't control that

dark jacinth
#

lines.data.description

muted stone
#

Yeah that's generated automatically

#

Based on quantity of the product and its price

dark jacinth
#

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?

muted stone
dark jacinth
#

and that will pass through and display in the user portal on those invocie line items?

muted stone
#

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

dark jacinth
#

cant you mock it there, see if it works?

#

and where is product_data in that docs you put?

muted stone
muted stone
dark jacinth
#

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

muted stone
#

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

muted stone
#

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

dark jacinth
#

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"?

muted stone
#

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

dark jacinth
#

everything, api calls etc, least i can "mock" it my end in workbench then etc adn see the flow etc etc

muted stone
#

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

dark jacinth
#

ok thansk, i'll try it