You can add your credit card to your Microsoft account wallet at
account.microsoft.com/billing/payments
Then you can select it when making payments. Your credit card information will auto-fill.
Make sure your Microsoft account is secure. Set up Windows Hello and use passkeys to sign into your account.