#felix_api
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/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.
- felix_webhooks, 6 days ago, 65 messages
Hi, what do you mean by this?
stripe. not showing up the methods i can use
Please don't share your secret key, this is a public forum
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
What IDE are you using?
Could you please share more details about your setup? How are you installing Stripe.js, etc.?
Does it work with other packages?
Are you using TypeScript?
How are you building your project?
I dont use typescript, it works with other packages and I'm not building my project im just executing my .js file
Is it stripe-node or Stripe.js?
stripe@17.5.0 from https://www.npmjs.com/package/stripe (stripe-node)
I don't think this is supposed to work without types. I am able to reproduce this and it seems expected.
So i have to live with it? xD
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
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?
You can fetch a Subscription and expand ['latest_invoice.payment_intent', 'line_items'].
You created the Subscription via Checkout Session?
Yes, but now i want the custom field from a subscription.updated event
The custom field is saved on the sub page
What do you mean by "sub page"?
You will need to fetch the Checkout Session by Subscription ID: https://docs.stripe.com/api/checkout/sessions/list#list_checkout_sessions-subscription
And in custom_fields.*.value you can find the value the customer provided: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-custom_fields-text-value
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
Or ist it possible to add a cumstom field for the customer itself like "Adress" to show this info
You can always take it from the Checkout Session and update Subscription's or Customer's metadata field.
You can find the value of the custom field on the Payment page on the Dashboard.
Do you mean transactions?