The payment information registered to your Apple ID is used for payments on iTunes, iCloud, the App Store, and more.

Mac - Change Apple ID Credit Card

See here for other Apple ID related information.