MinnPost/donations

Bank account payments can be submitted without signing in first

Closed this issue · 3 comments

This causes an error, of course, but it indicates that the sign in link is a usability issue.

Possible solutions

  • if they click the place donation button without having signed in to their bank account, alert them that they have to do that first.
  • catch the server side error when there is no payment method token
  • don't allow the place donation button to be clickable without signing in to the bank account first
  • make the sign in link more usable
  • if possible, make the place donation button trigger the Plaid interface, then after that immediately go on to payment (not sure if this is possible)

We should also do a server side check here, and if the user doesn't have a Stripe token/payment method, we should show them an error based on the payment type field they have selected.

Commit ac3c881 allows the donate button to trigger the plaid interface. I'm just not sure if this is usable. Maybe if the button has different language.

Commit 3093fe2 is the server side portion mentioned above.