#pedromcr-typescript-error

1 messages ยท Page 1 of 1 (latest)

brazen meteorBOT
#

Hello! We'll be with you shortly. 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.

open dagger
#

Hi ๐Ÿ‘‹

We close threads due to inactivity here. Can you summarize the current state of your quesiton?

old lance
#

I want to pass in some metadata upon creating a Payment Link, which appears it should be allowed judging from the official docs (see parameter payment_intent_data.metadata): https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-metadata

However, I don't see metadata as a valid key in payment_intent_metadata for some reason. Was I wrong to assume you could do that? How else can I pass in metadata upon creating a payment link, so that when a payment intent is generated, it passes on that metadata?

Thanks in advance

#

My stripe API version is 2023-08-16

open dagger
#

You can pass payment_intent_data.metadata. What error are you receiving?

old lance
#

It doesn't seem like I can

#

also here:

#

although the docs say you can, as per link above

#

also not picked up as a valid key by vscode:

open dagger
#

Okay that's a lot of screenshots. Can you just paste the exact error text you are receiving?

old lance
#

I guess it's not available on the 2023-08-16 API version that I'm using, only 2023-10-16. Would that be correct?

open dagger
#

No I don't think s0

#

I can see that option both with API version 2023-10-16 and 2020-08-27

#

What is the error message you are seeing?

#

And where do you see it?

old lance
open dagger
#

Okay it's a Typescript error

#

What version of stripe-node are you using?

old lance
#

I was using 13.6.0^

open dagger
#

You were using that version? Are you still?

old lance
#

I was trying to upgrade to latest to see if it changed anything, so since my last screenshot I upgraded to 13.11.0^, hence the was

open dagger
old lance
open dagger
#

Great! Happy to help ๐Ÿ™‚

#

pedromcr-typescript-error