I think you are not getting proper response because the response structure that is received for QUERY does not contains any token by name recordsToDelete. The array name is records.
If you change your line to
var recordToDelete = paymentDelete.getArray("records");
I belivebelieve that will solve the problem