To update your payment method, click on the user icon on the top bar and click on My Account.
Use the Add payment method link to enter your card details.
To set a default payment method (if you have multiple payment methods) click on the three-dot icon next to the payment method and select Make default.
Understanding the basics