#rozig
1 messages Β· Page 1 of 1 (latest)
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
The request works just fine. I mean in the stripe-js package. Since I am using stripe-js with typescript, the options that Iβm passing to the function is strict. Basically here is what I am talking about
https://stripe.com/docs/js/setup_intents/confirm_card_setup#stripe_confirm_card_setup-options
I think expand should be here
Oh, no this isn't valid.
Expand is not valid from Stripe.js AFAIK. It's a server-side API parameter
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
That is correct
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
Hmmmm.... that isn't documented. It could be an undocumented parameter (which we don't include in strongly typed scenarios).
I see, thanks
You're welcome. I can file this as feedback to suggest we document this parameter and specify it as a valid input.
That would be greatly appreciated πππ
Filed
Thank you so much @sleek plover π