Thanks koistya, you saved me a lot of debugging time with those fixes. I
would like to add that the expiration date needs to have the year first:
YYYY-MM So the line should be:card.expirationDate =
String.Format(expirationYear > 99 ? "{0:D4}-{1:D2}" ...