SIT-13562: Apply Credits to Payment

How to Use This Feature

Purchase API Update: Restructure HappsNow Existing Modal

Overview

The Purchase API has been updated to allow users to apply credits to their purchase. The update includes improvements to the payment process, including the ability to pay with account credits and credit cards.

Key Features

* Pay with Account Credits

+ Users can select to pay with account credits during checkout

+ If there is not enough balance, a message will display informing the user that they do not have sufficient account credits

+ The remaining account balance will be updated accordingly

* Credit Card Payment

+ Users can select to pay with credit card during checkout

+ The payment process will work as expected for users with and without account credits

* API Deduction of Account Credits

+ The API will successfully deduct the correct amount of account credits upon a successful purchase

Improvements

  • Improved UI/UX, including clear labeling and alignment of elements
  • Autofocus on relevant fields to improve user experience
  • Clean state when opening the modal to reduce user confusion
  • Update information after changing the user's account credentials
  • Known Issues

  • Error "SORRY - EXPECTED A CHARGE TOKEN OR INTENT ID" may display if the user tries to pay with a credit card
  • Account credits payment method option is removed, and account credits are applied through the CreditCard payment method instead
  • Additional Information

    Status: Deployed
    🏠 Home View in Jira