Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ECP-9408] Fix handling Giftcard payments responses (#2724)
* [ECP-9408] Fix the payment response if one of the payments has failed in case of partial payments, also fix the processGiftcard response to include all the giftcard processings * [ECP-9408] Add unit tests for multiple giftcard payment responses, update the existing one for when there is no gift cars and the array is empty * [ECP-9408] Optimize the unit tests * [ECP-9408] Fix Spaces * [ECP-9408] Transaction payment returns array of responses, modified tests accordingly, remove class type assert for multiple giftcard response test, add the foreach for verifying payments in CheckoutResponseValidator * [ECP-9408] Remove duplicate code * [ECP-9408] Remove error * [ECP-9408] Update method return type * [ECP-9408] Remove extra line * [ECP-9408] Clean up * [ECP-9408] More Clean up * [ECP-9408] Fix the mistake in array handling * [ECP-9408] Fix code sniffer issue * [ECP-9408] Created a test file and wrote first two test cases * [ECP-9408] Added all other test cases * [ECP-9408] Different creation of the ResultInterfaceFactory mock since it throws a 'class or interface does not exist' exception. * [ECP-9408] php cs fix * [ECP-9408] Re-added call to 'setMethods' * [ECP-9408] Refactored CheckoutResponseValidator to reduce 'Cognitive Complexity' from 35 to below 15 * [ECP-9408] Update parameters on the dummy test values * [ECP-9408] Update parameters on the dummy test values * [ECP-9408] Fix response collection array parameter * [ECP-9408] Remove hasOnlyGiftCards where not needed * [ECP-9408] Removed empty line * [ECP-9408] FIx `hasOnlyGiftCards` bool being overwritten * [ECP-9408] Add Unit test for CheckoutPaymentsDetailsHandler.php * [ECP-9408] Add Unit test for VaultDetailsHandler.php and update from array_last() to end() * [ECP-9408] Add Unit tests for CheckoutPaymentCommentHistoryHandler.php --------- Co-authored-by: sushmita <[email protected]>
- Loading branch information