Patently Apple details a recent Apple patent application that describes a system by which customers can use their iPhone as an electronic wallet and payment system.
Apple Mobile Payment System 'Transaction' - an iPhone-based eWallet
Apple Mobile Payment System 'Transaction' - an iPhone-based eWallet