SIT-13150: Apply Credits to Single Purchase

How to Use This Feature

Apply Credits Feature Summary

Overview

The Apply Credits feature allows admins to apply an account credit to a single event purchase.

Behavior

  • On page load:
  • + Ensure customer name comes before customer email

  • On type customer name:
  • + Ensure drop down list appears and results filter as you type

    + Display customer first & last name on H1, and email on H2

  • On select customer from list:
  • + Populate remaining inputs with customer info (email, phone)

    + If account credits available, display Apply Account Credits section with balance displayed

  • On select Apply Account Credits:
  • + Ensure admin can enter flat value

    + Validate flat value cannot exceed available account credit balance

    + Update selected credits line item and maximum applicable line item

  • On click Enter Amount:
  • + Validate input functionality for flat value

  • On click Apply Credits Button:
  • + Re-containerize button

    + Populate credits applied line item under order summary

    Transaction Handling

  • If successful:
  • + Apply account credits to transaction

    + Update customer's account credit balance

  • If transaction after credit applied is <0, log transaction and do not send through Adyen
  • If transaction failed:
  • + Reset account credits to customer profile

    Images and Designs

    🔗 figma-1766840422037-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-1766840422037-1.png - View Design
    https://www.figma.com/make/Du82KC7OGBk2JhkOvSMcq7/Apply-Credits-Flow?fullscreen=1]

    Additional Information

    Status: Deployed
    🏠 Home View in Jira