SIT-13562: Apply Credits to Payment

How to Use This Feature

HappsNow Existing Modal Restructure

Purpose:

Update the HappsNow existing modal to improve user experience and functionality.

Key Features:

* Payment with Account Credits:

+ Users can pay using their account credits

+ Remaining account balance is updated accurately

+ Error message displays when insufficient account credits are available

* API for Deducting Account Credit:

+ Test the API that deducts account credits upon a successful purchase

+ Verify accurate deduction of account credits

* Credit Card Payment:

+ Users can pay with credit card only

+ Error message displays if incorrect payment method is selected

* Clean State and Autofocus:

+ Modal opens in clean state with all elements correctly aligned and functional

+ Autofocus works well on relevant fields

Resolves Issues:

  • Issue 1: Tickets can be purchased on account credit even if there is no balance or insufficient balance
  • Issue 2: All fields should be cleared when opening the modal
  • Issue 3: "Expected Charge Token or Intent ID" error displays when paying with a card
  • Issue 4: Drop-down selection for Payment Method changes without informing the user that it has changed
  • Issue 5: Calculation for the remaining balance is incorrect when using the "Account Credit" option
  • Status:

    Deployed

    Additional Information

    Status: Deployed
    🏠 Home View in Jira