#josh-dev627

1 messages · Page 1 of 1 (latest)

kindred quartzBOT
shy wind
#

Hi
One option could be to make an API request using that secret key.

plush basalt
#

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!

shy wind
#

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

plush basalt
#

is paymentIntents.create appropriate for testing this?

shy wind
#

You can too ...

plush basalt
#

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.

shy wind
#

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.

kindred quartzBOT
plush basalt
#

Thank you!