Class DonationConfirmationController

java.lang.Object
ui.controller.donation.DonationConfirmationController
All Implemented Interfaces:
NavigationAware, DonationSessionAware

public class DonationConfirmationController extends Object implements NavigationAware, DonationSessionAware
Controller for the donation confirmation page. Displays the organization name and donation amount after a successful donation.
  • Constructor Details

    • DonationConfirmationController

      public DonationConfirmationController()
  • Method Details

    • setOnNavigate

      public void setOnNavigate(Consumer<Page> onNavigate)
      Sets the navigation callback.
      Specified by:
      setOnNavigate in interface NavigationAware
      Parameters:
      onNavigate - the callback for navigating to a page
    • setDonationSession

      public void setDonationSession(DonationSession session)
      Sets the donation session and updates the confirmation labels.
      Specified by:
      setDonationSession in interface DonationSessionAware
      Parameters:
      session - the completed donation session