#RockstarsNFT - update customer

1 messages · Page 1 of 1 (latest)

merry mural
#

Hi. One moment

#

How are you currently collecting payment details?

rocky oriole
#

thanks - currently when a user creates an account on our platform, our backend sends a request to stripe to create a customer

#

but until now we've omitted shipping details

#

which we now want to collect, but not pass through our backend for compliance reasons, so we'd like to do it via the frontend

#

credit card, cvc, and postal code are collected with stripe elements, tokenized via stripe.createToken, and then and sent to our backend for processing

merry mural
#

Gotcha. With the payment element, you can collect billing address, but you will have to build out shipping address collection on your own if you are using Elements

rocky oriole
#

my understanding from the api was that you can only set those billing fields to either 'auto' or 'never', so if it's not strictly needed, it won't show up

merry mural
#

You can do that here with stripe.js

#

Although since you are using stripe.createToken, it sounds like you are using an older flow