I am using stripe
to receive payments and I am following this guide to get the address
of the my buyers, but the guide seems to be wrong wrong:
- when importing
import {AddressElement} from '@stripe/react-stripe-js';
, the library doesnt seem to have theAddressElement
anywhere in there (I also searched manually for it) andAddressElement
isundefined
Do you any idea if the guide is actually wrong?
2
Answers
The problem was easy to solve - I had an older version of
@stripe/react-stripe-js
. Installing the latest one solved the issueInstead of using
Stripe now provides a
component that you can use to collect a customer’s billing address.