After using the library I have found this would be a better approach since they are numbers afterall. Do the following: Send expiry as an int with both month and year separate. Send CVV as an int as well.