You can update or change your payment method directly in the store account you use to install the app.
For the App Store (iOS):
Open Settings on your device → iTunes & App Store.
Tap your Apple ID email and select View Apple ID (you may be asked to sign in).
Tap Payment Information. If you’re part of a Family Sharing group, only the organizer can edit payment methods.
Update or remove your information. To remove a payment method completely, select None.
Tap Done to save changes.
Note: Apple may place a temporary authorization hold (a small test charge) to confirm your new payment method is valid.
For Google Play (Android):
Open the Google Play Store.
Tap Menu → Account → Payment methods → More payment settings.
Sign in to your Google Payments account if prompted.
Tap Menu → Payment methods in the browser.
Tap Edit under your selected payment method, make changes, and then Save.