refactor function: checkOutEditPaymentMethod in CheckOutScenario.java