AstroPay gateway currently shows one generic error message no matter what went wrong with the NewInvoice call (except duplicate invoice, which also needs investigating). We should recognize the rest of the errors and give the donor some information that can help them successfully donate.
We saw these during our test:
- User unauthorized
- Empty param x_cpf (This should be mandatory - how did we let this through?)
- Invalid control
- Could not register user
- The user limit has been exceeded
- User unauthorized due to cadastral situation