Error Handling
Overviewβ
This section provides a comprehensive reference for all UI validation rules and error messages in the Convenient Checkout (CCG) widget. Error messages are organized by screen, not by session mode β several session modes can land a user on the same screen, and that screen's validations don't change based on which mode led there.
Structureβ
| Screen | Page | Reached from |
|---|---|---|
| Add Payment Method | Add Payment Method Screen | Guest Pay, One Time Pay, Pay and Save, and WALLET mode |
| Edit Payment Method | Edit Payment Method Screen | WALLET mode |
One page, two contexts
Field-level validation for Add Payment Method is identical regardless of how the screen was reached (one shared validator, not two) β so it's documented once. Only the form-level (decline/processing) messages differ by context β shown as two sub-sections on that page.
Validation Typesβ
Each use case doc covers two types of validations:
- Field Level Validations: Rules and messages triggered when a specific input field fails validation (e.g., required field, invalid format). This is the widget's own client-side validation β authoritative.
- Form Level Validations: Messages triggered at the form-submission level for cross-field or server-side scenarios (e.g., duplicate payment method). These are illustrative, not an authoritative catalog β the widget doesn't define a fixed set of decline-reason messages; it displays whatever message the payment processor returns. Don't write matching logic against the exact strings shown on either page β handle the error generically instead.
Payment Methods Coveredβ
Each page documents validations for the following payment method types:
- Bank Account (ACH) β including telephonic entry where applicable
- Card β including telephonic entry where applicable