Our third party form isn't updating the credit card expiration date

We have a form on our website using the API and it posts to InfusionSoft. The problem is that if a member makes a donation using the same credit card they have on file but that card is expired in Infusionsoft but they enter a new expiration date, the form doesn’t update the expiration date. Does anyone know how to fix this or if it is even possible?