#josh-dev627
1 messages · Page 1 of 1 (latest)
Hi
One option could be to make an API request using that secret key.
Hi! thanks for taking the time to answer my question. Is there any specific api request that would help validate this?
By that I mean, validate that the key given is actually working? Thank you!
if the user will set a secret key, so any get API request could work, for example retrieve the account:
https://stripe.com/docs/api/accounts/retrieve
But if the key used is a restricted key, you need to inform the user what permission you need to make on their behalf
is paymentIntents.create appropriate for testing this?
You can too ...
ahh so in theory if the key ready for production and is already is ready to accept payments in real life, I can use this to call any api request from stripe and if the request is a success this is my indicator that it is now ready to accept payments? Thank you for this guide! I'm just trying to make this right because this is the first time I integrate with stripe.
ahh so in theory if the key ready for production and is already is ready to accept payments in real life, I can use this to call any api request from stripe and if the request is a success this is my indicator that it is now ready to accept payments?
Yes, unless their account is not validated by Stripe.
Thank you!