#felix_api

1 messages ¡ Page 1 of 1 (latest)

near horizonBOT
#

👋 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/1331612666523025548

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

pliant arch
#

Hi, what do you mean by this?

blazing maple
#

stripe. not showing up the methods i can use

pliant arch
#

Please don't share your secret key, this is a public forum

blazing maple
#

Ups

#

Its just test, but youre right

#

There we go

#

So if i type in strip. it's not shwoing up suggested methods i can use

pliant arch
#

What IDE are you using?

blazing maple
#

VSC

#

Visual Studio Code

pliant arch
#

Could you please share more details about your setup? How are you installing Stripe.js, etc.?

blazing maple
#

I used npm

#

to install the package

pliant arch
#

Does it work with other packages?
Are you using TypeScript?
How are you building your project?

blazing maple
#

I dont use typescript, it works with other packages and I'm not building my project im just executing my .js file

pliant arch
#

Is it stripe-node or Stripe.js?

blazing maple
pliant arch
#

I don't think this is supposed to work without types. I am able to reproduce this and it seems expected.

blazing maple
#

So i have to live with it? xD

pliant arch
#

Yeah, sorry. I see that it works with packages like express. Not sure why it doesn't work in plain JS files. It is certainly not a problem when using TS.
I guess you could submit an issue to the GitHub page: https://github.com/stripe/stripe-node/issues

blazing maple
#

Okay, another question, how to expand the products and payment intents with a subscription.updated event
by this:
lineItems = await stripe.subscriptionItems.list({subscription: event.data.object.id}); paymentIntent = await stripe.subscriptions.retrieve(event.data.object.id, {expand: ['latest_invoice.payment_intent.payment_method']});?

#

And how to get the custom field related to the subscription?

pliant arch
#

You can fetch a Subscription and expand ['latest_invoice.payment_intent', 'line_items'].

pliant arch
blazing maple
#

Yes, but now i want the custom field from a subscription.updated event

#

The custom field is saved on the sub page

pliant arch
#

What do you mean by "sub page"?

blazing maple
#

Ohhh, it's not listed anywhere?

#

Is it somewhere accessable at the GUI?

#

Can I acess the checkout information via the GUI (control panel)?

#

Dashboard

pliant arch
#

Let me check

#

But I don't think you can find it anywhere on the Subscription.

blazing maple
#

Or ist it possible to add a cumstom field for the customer itself like "Adress" to show this info

pliant arch
#

You can always take it from the Checkout Session and update Subscription's or Customer's metadata field.

near horizonBOT
pliant arch
#

You can find the value of the custom field on the Payment page on the Dashboard.

blazing maple
#

Do you mean transactions?

hollow ridge
#

hi! I'm taking over this thread.

#

yes you can view the payments in the Dashboard in the "transactions" page.