1. Open the Settings app.
  2. Tap your name.
  3. Tap Payment & Shipping. You might be asked to sign in with your Apple ID.
  4. Tap Add Payment Method.

To edit a payment method – tap the payment method, then edit your information and tap Done.

Official guide from Apple