#DesertRodent-PostalCodeField
1 messages ยท Page 1 of 1 (latest)
Elements...
import { loadStripe } from '@stripe/stripe-js' import { Elements, CardElement, useStripe, useElements } from '@stripe/react-stripe-js'
Hmm, it should be hidePostalCode=true when using Elements. Let me try it as with the PaymentElement being released, some things have changed. One sec.
Thank you...the documentation doesn't even make reference to anything with regards to hiding it. I was trying to clone a RN configuration to a React Web replication we're doing
Yeah the docs reflect the new PaymentElement these days as it's the recommended flow.
Aha, here it is. Try the example at https://github.com/stripe/react-stripe-js/issues/17#issuecomment-573697028
React uses an options prop for these