#Dan Rosewarne-available-methods
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I'm not aware of any prebuilt component that we have for this, and I think it could be tricky to implement depending on the reach of your site. For example, you'd have to try to know the customer's country to confirm a payment method is available for them.
Thanks for the quick response. I thought the same, I just wondered if there was a way to use Stripe.js to ask for the same info that it uses in the checkout so it uses exactly the same mechanism.
Hhmm, the only approach that comes to mind is likely too clunky to be worth using. Trying to render the checkout process in an invisible frame, finding the available payment method information inside of it, and then surfacing that back up to your site.
Ouch, yeah I think that's going to be too much for us. Is there a good place to make a feature request for this? Feels like something that could be really useful for others.
You read my mind!
In fact, Klarna for example have a widget that can show you repayments in page which is great, but isn't available because of the Stripe abstraction.
I'd suggest filing it as an issue under that github repo:
https://github.com/stripe/react-stripe-js/issues/new
More specifically you'd likely want to do it as an API Review:
https://github.com/stripe/react-stripe-js/blob/master/.github/API_REVIEW.md
Thanks, will do