A software update for MetroCard vending machines gave some straphangers an even longer commute than they bargained for.

It started around 6:30 p.m. Saturday.

The MTA received reports of debit and credit card problems at machines across the city.

Some machines had issues taking cards for payment.

The agency says the problem lasted a couple of hours and all machines should now be working properly.