Edit multiple records at once

How do you edit multiple records at once? I am building a shopping cart and I want to mark all the items (records) in the cart (object) as paid after payment is approved.

I'm assuming through the API or with Javascript, I can't find this questioned answered on the board.