Feature Summary: Credit Card Payment Processing
The feature aims to ensure that credit card payment processing is consistent across the UI, Adyen, and invoice records.
+ The UI displays "Payment Successful".
+ Invoice detail updates with the payment amount and transaction ID.
+ Invoice summary reflects the new balance.
+ 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".
Note: The feature aims to maintain consistency across the UI, Adyen, and invoice records, while also providing a clear indication of payment failure.