this method is huge and with a lot of 'ifses', I think you can at least break it into multiple smaller ones or better to create a credit card updater service or something alike