SIT-13150: Apply Credits to Single Events

How to Use This Feature

Apply Credits Feature Summary

Overview

The Apply Credits feature allows admins to apply account credits to single event purchases.

Behavior

  • On page load, ensure customer name comes before customer email.
  • On typing customer name, ensure drop-down list appears and filters as you type.
  • When selecting a customer from the list:
  • + Ensure all other customer information is populated in surrounding inputs.

    + If the customer has available account credits, display the Apply Account Credits section with balance displayed.

  • On selecting Apply Account Credits:
  • + Ensure admins can select credits and enter a flat value.

    + Validate that the selected credit amount does not exceed the available account credit balance.

    + Ensure the Apply Credits button becomes active when selecting or entering credits.

    + Populate the selected credits line item with the selected amount and maximum applicable line item with the max amount that can be applied to the order.

  • On clicking the Apply Credits button:
  • + Re-contained UI.

    + Populate the credits applied line item under the order summary.

    Transaction Flow

  • If successful, apply account credits to transaction and update customer's account credit balance.
  • If transaction after credit applied is <0, log transaction without sending it through Adyen.
  • If transaction failed, reset account credits to customer profile.
  • Images and Designs

    🔗 figma-1767211038139-0.png - View Design
    https://www.figma.com/board/cUCAQQQgCx9uAvVxaXTYPk/Group-Deposits?node-id=0-1&p=f&t=VfJ91wW72Thwd8n9-0|https://www.figma.com/board/cUCAQQQgCx9uAvVxaXTYPk/Group-Deposits?node-id=0-1&p=f&t=VfJ91wW72Thwd8n9-0|smart-link]
    🔗 figma-1767211038139-1.png - View Design
    https://www.figma.com/make/Du82KC7OGBk2JhkOvSMcq7/Apply-Credits-Flow?fullscreen=1]

    Additional Information

    Status: Deployed
    🏠 Home View in Jira