What does "gramercy" mean?

Gramercy: A word formerly used to express thankfulness, with surprise; many thanks. Gramercy, Mammon, said the gentle knight. Spenser.

Sources