Closed RigelAC closed 10 years ago
Ahhh, good catch. We don't have limits in our own Postgres database, so I didn't bother putting limits on the text fields. Apparently there's a limit on the size of what we submit to Stripe. A good fix would be to just update our stripe_form
custom tag to crop the name length.
(oh, that's easy then)
Is this on Stripe's pop-up form? We have somewhat limited control of that form (this is by design - we run CC info through Stripe so we never have to worry about handling it), so this is definitely worth looking into.
Yes, failure occurred on Stripe's popup form.
The relevant template is https://github.com/magfest/ubersystem/blob/master/uber/templates/preregistration/stripeForm.html which is rendered by https://github.com/magfest/ubersystem/blob/master/uber/custom_tags.py#L381
So the two relevant fields are:
email
(taken from attendee.email
)charge.description
(taken from https://github.com/magfest/ubersystem/blob/master/uber/utils.py#L122 which is not used on the main index page but will sometimes be relevant on other forms)We could just update our stripe_form
tag and/or template to just cap the length of what we pass to Stripe to whatever Stripe's maximum is.
This is now fixed in ac-staging.
Entered large amounts of text in all available text fields, then attempted payment. Payment failed with network error, would not permit payment.
To resolve, should probably add a character limit to all text fields.