#rozig

1 messages Β· Page 1 of 1 (latest)

upbeat valleyBOT
sleek plover
#

Expand is definitely a supported parameter. Can you share a request ID for one of these requests?

Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request

gray shale
#

I think expand should be here

sleek plover
#

Oh, no this isn't valid.

#

Expand is not valid from Stripe.js AFAIK. It's a server-side API parameter

gray shale
#

I see. So in order for me to get payment method details I have to make another call to my backend to get it? Because I also don’t see any function to retrieve paymentMethod in stripe.js

sleek plover
#

That is correct

gray shale
#

Got it. Thanks. Just out of curiosity, why is it invalid to have expand on this function options? Because if I provide expand on the options it actually works and responds back with expanded paymentMethod object. But the only thing is that ts compiler complains about it

sleek plover
#

Hmmmm.... that isn't documented. It could be an undocumented parameter (which we don't include in strongly typed scenarios).

gray shale
#

I see, thanks

sleek plover
#

You're welcome. I can file this as feedback to suggest we document this parameter and specify it as a valid input.

gray shale
#

That would be greatly appreciated πŸ™πŸ™πŸ™

sleek plover
#

Filed

gray shale
#

Thank you so much @sleek plover πŸ™‚