To change your payment method/card details please select how you purchased the subscription:
iOS purchase
To manage your Apple ID payment methods, follow the instructions via the link or contact Apple Support at the bottom of the same page.
Android purchase
To change your payment method, you may open Google Play → Click on your profile icon at the top right → Payments & Subscription → Payment methods.
You may check the detailed article (tap here) about changing your card details.
Web purchase
Unfortunately, it is not possible to change your payment method. Please cancel your subscription (tap here). Once your current subscription is expired, you may get the new one.