SIT-14070: Show Failed Payment Details

How to Use This Feature

Feature Summary: Credit Card Payment Processing

Overview

The feature aims to ensure that credit card payment processing is consistent across the UI, Adyen, and invoice records.

Behavior

  • When a credit card payment is applied successfully:
  • + The UI displays "Payment Successful".

    + Invoice detail updates with the payment amount and transaction ID.

    + Invoice summary reflects the new balance.

  • When a credit card payment fails (declined or non-response from Adyen):
  • + The UI displays "Payment Failed" with a message indicating the reason for failure (e.g. "Payment failed due to {{refusal_reason}}").

    + No changes are made to invoice summary.

    + An entry is added to the invoice with transaction details, including a status of "Failed".

    Goals

  • Display payment failed message above the modal.
  • Keep the modal open after a failed payment attempt.
  • Ensure split payments follow the same functionality as single payments.
  • Note: The feature aims to maintain consistency across the UI, Adyen, and invoice records, while also providing a clear indication of payment failure.

    Additional Information

    Status: QA
    Assigned to: rohit.singh
    🏠 Home View in Jira