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.

Issue fork govuk_pay-3530335

Command icon 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

ekes created an issue. See original summary.

ekes’s picture

StatusFileSize
new43.97 KB

Patch at this point

pankajroyal made their first commit to this issue’s fork.

pankajroyal’s picture

Title: Confirmation: Success and Failure pages » Success confirmation title
StatusFileSize
new326.71 KB
new5.36 KB

In 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.
  • Add a confirmation_title field in the module settings which is available on the success page to use as title.

Confirmation title field

Data model changes

  • confirmation_title
pankajroyal’s picture

Title: Success confirmation title » Confirmation: Success and Failure pages
pankajroyal’s picture

StatusFileSize
new6.1 KB
pankajroyal’s picture

Issue tags: +DevDaysLGD