Problem/Motivation
Greenwich would like different text and presentation for success and failure of payments (from webforms). This seems a reasonable requirement, and would be helpful to most users.
Proposed resolution
Create different templates for success and failure. Change the theme template in the output from the confirmation controller. Add text a test field for custom message on failure as there is now for confirmation (becomes custom message for success). Also add a link to retry the payment on the failure page.
Remaining tasks
Add templates- Some default theming.
User interface changes
New presentation on confirmation return page.
API changes
New templates and additional controller for retrying.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | confirmation_title.patch | 6.1 KB | pankajroyal |
| #5 | Gov uk Pay - Confirmation title.png | 326.71 KB | pankajroyal |
| #3 | 2.patch | 43.97 KB | ekes |
Issue fork govuk_pay-3530335
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ekes commentedPatch at this point
Comment #5
pankajroyal commentedIn addition to separate success and failure pages based on payment status, Greenwich wants to add a success confirmation title to notify user of the successful payment for the service. This confirmation title should be editable and replace the page title.
Hide Page title h1 from the confirmation page.Data model changes
Comment #6
pankajroyal commentedComment #7
pankajroyal commentedComment #8
pankajroyal commented