Import Person Credit Card Number

This feature allows Administrators to associate credit card number entries with Unanet users.  Note that this is not a credit card transaction import, but rather a mean for an Administrator to load user credit card number information in mass.  


This screen is available to users having any of the following roles: Administrator and P&R Administrator


This feature is available with any Unanet edition.


Performance Tip Note:  Depending on the number of users in your installation and other factors such as the overall performance of your platform, the activity of importing one or many files may take up to several minutes.  Should this be the case with your installation, you may want to consider running these processes at non-peak times to minimize database contention.


Topics covered on this help page include:

Import File Record Layout



Field Header Name





ALWAYS REQUIRED. Unique username (user id), for example JDoe or jdoe (it does not need to be capitalized.)  This value must match an existing Username value in your system.  If the Username you are trying to import is not an existing valid value,  the entire record will be rejected.




REQUIRED on Add.  This field will contain the name of the lending institution that issued the credit card.  This field is not displayed on other Unanet screens.

Maximum Length: 64 characters




REQUIRED on Add.  This field is intended to contain the name as it appears on the credit card.

Maximum Length: 128 characters




ALWAYS REQUIRED.  This field is used to contain a value that will uniquely identify a users credit card account.    The value supplied in this field (may it be an actual credit card number or other user identifying number) will be stored in Unanet as a hashed value for security purposes.  This value is used in conjunction with the various credit card import facilities.  Imported credit card transactions will be associated with users by matching a similarly hashed value on the imported transaction files with the values stored in each users person profile.  On various screens, only the last 4 digits of this number are displayed.  

Note that having existing credit card transactions in the system that relate to a specific credit card number does not prevent the disassociation of that card number from a user.

Minimum Length: 5  Maximum Length: 32 characters




REQUIRED on Add.  This field is intended to contain the expiration date as printed on the credit card.

The value supplied must be in   mm/yy   format (2 position month / 2 position year).

Maximum Length: 5 characters




REQUIRED on Add.  The intention of this field is for the user to enter a value identifying the type of credit card (e.g. MasterCard, Visa, Amex, etc).  This value is displayed on various imported credit card detail screens in conjunction with the last for digits of the users credit card number in what is called a "Source" field (e.g.  Mastercard ********1234). There is no predetermined valid value set for this field.

Maximum Length: 32 characters




This field can be used to trigger the system to delete a person credit card entry.  In order for the delete to happen, you must include the following text string !DELETE! in this field.  

Note that having existing credit card transactions in the system that relate to a specific credit card number does not prevent the disassociation of that card number from a user.


Note: Check out the Unanet Data model for specific field data types, lengths, and other attributes.

Import File Format

The file to import must be saved in a comma delimited format.   The fields can be enclosed in double quotes -- which would be particularly necessary should the data being imported contain commas.  

Importing a Sub-Set of Columns using a Field Header Record

If you are not using the default column layout sequence as defined above, you must include a header record (prefixed with an asterisk *), containing the column Header Names for those columns you are including in the import file (to indicated what data is contained in each column).  The specific Header Names for each column are listed in the table above.


#Delete example

Excel Template

You can create the comma delimited import file with any number of tools.  For those interested in using an Excel spreadsheet to create the file, you can download an Excel Template with predefined headers and required fields noted.  

See the Excel Tips regarding the use of double quotes and more.

Import Screen

The Import Person Credit Card Number screen looks like:

Field Descriptions:



Type of Import

Select the appropriate import type from the list of available types of imports.

File to Import

Enter (or browse for) the file that you would like to import.

Output Options

Specify the level of detail included in the output.  


The import process is triggered by pressing the Import button.  All Warnings and Error messages are written to the screen and can then be saved if desired.  While some line items may be found invalid and rejected, the remaining line items will be successfully imported and saved in the database.  The rejected line items will be written out to a file on the Unanet server as well as displayed at the bottom of the user feedback screen.  The rejected record file name will be UnanetPersonCreditCardNumberImportErrorxxx, where xxx is a randomly generated number.  The file will be placed in the Unanet temporary directory (which is defined by the Temp Directory (Fully Qualified Directory Name) (unanet.temp_directory) Unanet property).

Related Topics