When Sir Felix arrived, Lord Alfred was earning his entertainment by talking to Mr. Melmotte in a summer-house. 
When Sir Felix arrived, Lord Alfred was earning his keep by talking to Mr. Melmotte in a summer-house