Redeeming gift card

today i went to the store and bought 5 $20 gift card. 3 of them worked perfectly fine but the other 2 for some reason when i type in the code it shows that it is a $20 gift card but when i go to confirm it tells me that something went wrong and idk what went wrong