#cgray9 - save cards
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
Great! Thanks so much. Nothing critical here.
You should be able to expand the same way, yes. Can you share the code you're using? Is it not doing what you expect?
From looking at the docs it appears that retrieveSetupIntent only takes in a clientSecret and doesn't allow you to pass options with an expand flag. Let me know if I'm missing something
https://stripe.com/docs/js/setup_intents/retrieve_setup_intent
Ah, right, ok
So, you can't do this with those Stripe.js retrieve functions
But!
You can retrieve the SI directly from the API using your PK and the client_secret:
https://stripe.com/docs/api/setup_intents/retrieve#retrieve_setup_intent-client_secret
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And that supports expansion
So you can write a fetch or other HTTP request to the API from your client application to get this, just not via Stripe.js
Got it, I've done that before. I was trying to use stripe-js to accomplish it. Anyway to bubble up this feature request?
I can make a request to the api directly in the meantime
Definitely I can share that, would be handy I agree ๐
Great thanks! Let me know if there is anywhere I can track it.
It's only internal, so no nothing to track externally