#jm-elements-error
1 messages · Page 1 of 1 (latest)
And when you say "wrong client secret", you mean a different client secret than the one that's supposed to be used?
Or are you trying to account for null or erroneous values?
The former
Or in case there is a network error and couldn't communicate with Stripe and not rendering the PaymentElement
You would have to track the customer's data on your end or store the client secret I think in order to compare what is being passed to the API when you create the Element. There's not really anything on the Stripe side that I know of that would surface an error in this case.
What about if the stripe lib couldn't be loaded from stripe.com and I can't show the PaymentElement?