Pending purchases indicate a purchase that was unable to be charged successfully to your valid payment method on file or Apple Account balance, as such you are responsible for that purchase, and must allow it to successfully complete before anything else can be done.
3 different ways to achieve one goal, see ⤵️
Sign in to your Apple ID account page and edit / update your Apple ID details -> https://appleid.apple.com
- On the Sidebar click Payment methods -> then tap Payments Methods and tap Manage payment method.
or
If you need to change or update your Apple ID payment method
If you need to change or update your Apple ID payment method - Apple Support
- If you want to change your card, you need to add first the new card, then remove the old card.
- or if you want to use your Apple Account balance, you need to set your Apple Account balance as your default payment.
or
Add a payment method to your Apple ID
Add a payment method to your Apple ID – Apple Support (UK)
- If you want to change your card, you need to add first the new card, then remove the old card.
- or if you want to use your Apple Account balance, you need to set your Apple Account balance as your default payment.
See also the following Apple articles:
Payment methods you can use with your Apple ID
Payment methods you can use with your Apple ID – Apple Support (UK)
fyi: Not all credit & debit cards seem to work with App Store / iTunes Store, try a different one, or preferably a credit card. If your card is not accepted as a paymenf method, you need to contact your bank.
Remove a payment method from your Apple ID
Remove a payment method from your Apple ID - Apple Support
⤵️
If you can't remove a payment method
If you have subscriptions like iCloud+, have an unpaid balance, or you use purchase sharing, you must keep at least one payment method on file.
If you still need help, get support from Apple directly -> Get Support or call Apple in your region see -> Contact Apple for support and service or check -> here for more support and assistance.
-----
iPhone 12 Pro Max, iOS 17
Not sure if the problem is related to beta version iOS 17.
Installing iOS beta version is at your own risk.
iOS 17 version has not been released to the public, so you have to wait.
We are not allowed to discuss about Beta version here.