#jm-elements-error

1 messages · Page 1 of 1 (latest)

pearl sage
#

Which Elements component are you talking about specifically?

topaz vapor
#

Elements with PaymentElement

pearl sage
#

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?

topaz vapor
#

The former

#

Or in case there is a network error and couldn't communicate with Stripe and not rendering the PaymentElement

pearl sage
#

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.

topaz vapor
#

What about if the stripe lib couldn't be loaded from stripe.com and I can't show the PaymentElement?