django-payments icon indicating copy to clipboard operation
django-payments copied to clipboard

Use only required fields in stripe js

Open artursmet opened this issue 9 years ago • 5 comments

Stripe doesn't require address, to create card token: https://stripe.com/docs/api#create_card_token

artursmet avatar Nov 18 '15 12:11 artursmet

@mociepka?

patrys avatar Nov 18 '15 12:11 patrys

It doesn't require it but you can provide them. Management from stripe account will be simpler with all data.

mociepka avatar Nov 18 '15 12:11 mociepka

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

artursmet avatar Nov 18 '15 12:11 artursmet

Can you provide screenshots of before and after? Can we somehow send the data that we have to Stripe without prompting the user?

patrys avatar Nov 18 '15 12:11 patrys

With address data, stripe does some additional checks I think:

With data: stripe_with_data

Without: stripe_without_data

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)

artursmet avatar Nov 18 '15 12:11 artursmet