#jegans
1 messages · Page 1 of 1 (latest)
OK, and what do you mean by input their stripe keys incorrect ?
incorrectly.. so in our platfrom we have an admin dashboard. So our customer can provide their pk_ and sk_ keys
sometimes we find when our customer are copying / typing the key from stripe.com they miss characters or incorrectly type a key..
the only time they know it's incorrect is when someone tries to use the paywall..
OK. In frontend you can listen to loaderror and get notified if there's a problem with the publishable key https://stripe.com/docs/js/element/events/on_loaderror#element_on_loaderror
In backend there's no dedicated API to verify API key. But you can just make a /v1/balances API call and see if it succeeded.
thanks Jack.. we will try the /v1/balances