mozilla / payments

The root repository for all things Payments at Mozilla.
Other
9 stars 9 forks source link

Display field errors and API errors. #45

Closed andymckay closed 9 years ago

andymckay commented 9 years ago

screenshot 2015-05-05 09 34 35

Shows errors (this is based on an older mock).

Questions for @brampitoyo:

brampitoyo commented 9 years ago

There will be a delay as we ping braintree and attempt verification, should something happen then?

I forgot to account for this.

When clicked, the “Subscribe” button should change from blue (selectable) to gray (disabled) with a throbber animation. On failure, the button should appear disabled until the problematic value has been changed.

payment-buy-error

(The animation isn’t completely accurate. The wrong field should be outlined red).

Is there a difference between field and non-field errors?

If necessary, we can show the red error flag outside of the field, but I think the in-field error flags should be able to take care of everything we could think of?

When an error happens outside of the field or the process itself (for example, if your subscription fails to renew), we could send an email notification.