django-payments
django-payments copied to clipboard
Use only required fields in stripe js
Stripe doesn't require address, to create card token: https://stripe.com/docs/api#create_card_token
@mociepka?
It doesn't require it but you can provide them. Management from stripe account will be simpler with all data.
In my opinion we shouldn't force to provide address data. There are checkout systems, collecting only basic data like email and credit card details. It'll be more universal I think
Can you provide screenshots of before and after? Can we somehow send the data that we have to Stripe without prompting the user?
With address data, stripe does some additional checks I think:
With data:
Without:
But it looks like Street check
and Zip check
are not so strict (passed with Polish zip code and US as a country)
From end user perspective there is no difference (we're sending address data as data attributes of stripe input)