Card manufacturing specifications

The following is the file specification for the card manufacturing files generated by Paymentology systems. These are standard specifications.

🗒️

Important

Card manufacturers may have differing file requirements. It is important for clients to confirm these with their card manufacturer.

For example a manufacturer may have a max value length of 50 for address related fields <CH_ADD1/>, <CH_ADD2/>.

File naming convention

Use the below sample file name to help understand the card manufacturing file naming convention:

Sample file name:

1_CLIENT_NAME_FC_2220_437_30012023_0717.xml

Formula:

1 = the card manufacturer ID assigned by Paymentology.
CLIENT_NAME = name of client.
FC = a constant value.
2220 = a unique number assigned to a file based on date.
437 = a unique value for the file based on minute and hour.
30012023 = this is the date the file was produced. DDMMYYYY.
0717 = this is the time the file was produced. HHMM.

Schema description

🗒️

In the XML file specification below:

<tag> represents an opening tag
<tag/> represents <tag> value </tag>
<tag\> represents a closing tag
XMLTAGTypeLengthDescriptionPresenceNulls allowed
<CARDGEN>Header tagMNo
<CARDSUM>Summary detail opening tagMNo
<DATA_FORMAT_VERSION/>DecimalIdentifies file version – simply a way to allow the use of various different structures with the same manufacturerMNo
<FILEDATE/>DateTimeFile creation dateMNo
<NO_OF_CARRIERS/>NumericNo. of carriers – means a number of shipping destinations.MNo
<NO_OF_CARDS/>NumericNo. of cards in the fileMNo
<NO_OF_PRODUCTS/>NumericNo. of card designs present in the fileMNo
<TXREF/>Alphanumeric20Transmission_Reference – this is an incrementing unique reference number; it may not be consecutive. It allows the manufacturer and processor to identify the file uniquely.MNo
</CARDSUM>MNo
<BULK_DEL>MNo
<RECORD>MNo
<BULK_DEL_ADD_CODE/>NumericAllows processor and manufacturer to agree on a pre-defined shipping destinationCNo
<BUL_DEL_METHOD/>NumericThe delivery method for the card:
0 – Standard mail
1 – Registered mail
2 – Direct delivery (courier)RFU
MNo
<DEL_TITLE/>Alphanumeric10Delivery address recipient title (Mr., Mrs., etc.)OYes
<DEL_FNAME/>Alphanumeric30Delivery first nameCNo
<DEL_SNAME/>Alphanumeric30Delivery family nameCNo
<DEL_ADD1/>Alphanumeric100Delivery address 1CNo
<DEL_ADD2/>Alphanumeric100Delivery address 2OYes
<DEL_PCODE/>Alphanumeric15Delivery PostcodeCNo
<DEL_CITY/>Alphanumeric50Delivery cityCNo
<DEL_COUNTRY/>Alphanumeric50Delivery countryCNo
<DEL_EMAIL/>Alphanumeric100Delivery emailOYes
<DEL_MOBILE/>Alphanumeric15Delivery recipient's mobile numberOYes
<DEL_LANG/>Alphanumeric3Delivery address label languageCNo
</RECORD>No
</BULK_DEL>No
<PRODUCT>No
<PRODUCT_REF/>NumericIdentifies product. N.B. This is the physical card design reference used by the card printer.MNo
<RECORD>MNo
<UID/>Numeric20Unique ID to identify the record – use this ID in error-tracking correspondence.MNo
<CLIENT_CARD_REF/>Alphanumeric20Client identification of the card orderONo
<CARRIERS>No
<CAR_DEL_METHOD/>NumericThe delivery method for the card:
0 – Standard mail
1 – Registered mail
2 – Direct delivery (courier) RFU
MNo
<DEL_CODE/>NumericThe delivery code for the card: If specified, all cards with the same delivery code are to be sent together to the specified delivery address. All the carriers with the same DEL_CODE will be grouped under the same BULK_DEL_ADD_CODE
Mandatory for Bulk Records and must have the same value as <BULK_DEL_ADD_CODE>
CNo
<CH_TITLE/>Alphanumeric10Cardholder title (Mr., Mrs., etc.)OYes
<CH_FNAME/>Alphanumeric50Cardholder first nameCNo
<CH_SNAME/>Alphanumeric50Cardholder family nameCNo
<CH_ADD1/>Alphanumeric100Cardholder address line 1CNo
<CH_ADD2/>Alphanumeric100Cardholder address line 2ONo
<CH_CITY/>Alphanumeric50Cardholder cityCNo
<CH_PCODE/>Alphanumeric15Cardholder postcode (NOTE: used in authorisation process)C
<CH_COUNTRY/>Alphanumeric50Cardholder countryCNo
<CH_EMAIL/>Alphanumeric100Cardholder email addressOYes
<CH_MOBILE/>Alphanumeric15Cardholder mobile numberOYes
<CARRIER_TYPE/>NumericDefines carrier product. N.B. This is the carrier product design reference as used by the card printerOYes
<ENVELOPE_REF/>Alphanumeric5The ID of the envelope to insert the card inCNo
<CARRIER_LANG/>Alphanumeric3Language of the insertCNo
<CARRIER_INSERT_1/>NumericDocument/letter insert reference for card manufacturerCNo
<CARRIER_INSERT_2/>NumericDocument/letter insert reference for card manufacturerCNo
<FULFIL1/>Alphanumeric50RFUOYes
<FULFIL2/>Alphanumeric50RFUOYes
</CARRIERS>MNo
<CARD>MNo
<CRD_ACTION/>NumericCard action – allows the client to define an action that should take place when the card is created. This is future-proofing and allows for bespoke actions to be put in place.OYes
<CRD_INST/>Alphanumeric50Card instruction – allows for specific instruction to support the card action. E.g. card action might be: “run a process”, and CRD_INST might contain parameters to be passed to that process.OYes
<TRACK1/>AlphanumericMaxMag stripe track 1MNo
<TRACK2/>AlphanumericMaxMag stripe track 2MNo
<TRACK3/>Numeric50Mag stripe track 3.
Note: if passed "1" in create card request Paymentology will put the card token in this field. Any other data will be passed as it is in the card file.
MNo
<EMBOSS_PAN/>Alphanumeric16-19Embossed PAN to go on the cardMNo
<EMBOSS_NAME/>Alphanumeric50The actual maximum length will depend on the card designMNo
<EMBOSS_START/>Date(MM/YY)5Card start date (Eg. maestro) MM/YYOYes
<EMBOSS_EXPIRY/>Date(MM/YY)5Card expiry date MM/YYMNo
<EMBOSS_CVC2/>Numeric3Card verification value to go on the rear of card – CVC2MNo
<EMBOSS_LINE4/>Alphanumeric35On the front of the card, there is room for a fourth emboss line – this could contain a card public token, for example – actual maximum length will depend on card design.
Note: if passed "TOK" in create card request, Paymentology will put the card token in this field.
OYes
<EXT_LINE1 />Alphanumeric20Allows for an additional line of text on the card. Note: if passed "1" in create card request, Paymentology will put the card token in this field. Any other data will be passed as it is in the card file.OYes
<EXT_LINE2 />Alphanumeric20Future proof – allows for an additional line of text on the cardOYes
<LOGO_FRONT_ID />NumericInteger allowedIdentifies the image file that will be printed on the front of the card, if supported. Pre-agreed ID with the manufacturer.OYes
<LOGO_BACK_ID />NumericIdentifies the image file that will be printed on the back of the card, if supported. Pre-agreed ID with the card manufacturer.OYes
<CUSTOM_1/>Alphanumeric255Custom data from the client for the card vendor. e.g. QR Code, any custom text, etcOYes
<CHIP>Defines chip details. This element may not be present, depending on the card type.MNo
<TYPE/>Alphanumeric20Mastercard, etc.MNo
<PAN/>Numeric16-19Card number (PAN)MNo
<PAN_SEQ/>Alphanumeric2Card sequence numberOYes
<NAME/>Alphanumeric50Cardholder name. It must match the name embedded in Track 1.CNo
<START_DATE/>Date(MM/YY)5Start date defined in the chipOYes
<EXPIRY_DATE/>Date(MM/YY)5Expiration date defined in the chipCNo
<SERVICE_CODE/>Alphanumeric3Defines the service code for the card. Mag stripe service codes are as per ISO 8583 standard (typically 122 for mag, 221 for chip, etc.)MNo
<CHIP_TRACK_2/>AlphanumericMaxTrack 2, including ICVVCNo
<PINBLOCK/>Alphanumeric16Encrypted Pin Block in Hexadecimal formatCNo
</CHIP>MNo
</CARD>MNo
</RECORD>MNo
</PRODUCT>
</CARDGEN>

Presence field letter meaning:

M: Mandatory
C: Conditional
O: Optional

Sample card manufacturing specification file

<CARDGEN>
  <CARDSUM>
    <DATA_FORMAT_VERSION>1.0</DATA_FORMAT_VERSION>
    <FILEDATE>2023-06-06T12:53:12.294396</FILEDATE>
    <NO_OF_CARRIERS>4</NO_OF_CARRIERS>
    <NO_OF_CARDS>4</NO_OF_CARDS>
    <NO_OF_PRODUCTS>1</NO_OF_PRODUCTS>
    <TXREF>PAYMENTOLOGY_MASTER_ACCOUNT_FC_1234_1233</TXREF>
  </CARDSUM>
  <BULK_DEL>
    <RECORD>
      <BULK_DEL_ADD_CODE/>
      <BULK_DEL_METHOD/>
      <DEL_TITLE/>
      <DEL_FNAME/>
      <DEL_SNAME/>
      <DEL_ADD1/>
      <DEL_ADD2/>
      <DEL_PCODE/>
      <DEL_CITY/>
      <DEL_COUNTRY/>
      <DEL_EMAIL/>
      <DEL_MOBILE/>
      <DEL_LANG/>
    </RECORD>
  </BULK_DEL>
  <PRODUCT>
    <PRODUCT_REF>0</PRODUCT_REF>
    <RECORD>
      <UID>12345</UID>
      <CLIENT_CARD_REF>client choice</CLIENT_CARD_REF>
      <CARRIERS>
        <CAR_DEL_METHOD>1</CAR_DEL_METHOD>
        <DEL_CODE/>
        <CH_TITLE>Mr</CH_TITLE>
        <CH_FNAME>Firstname</CH_FNAME>
        <CH_SNAME>Surname</CH_SNAME>
        <CH_ADD1>London</CH_ADD1>
        <CH_ADD2>London</CH_ADD2>
        <CH_CITY>London</CH_CITY>
        <CH_PCODE>00977</CH_PCODE>
        <CH_COUNTRY>London</CH_COUNTRY>
        <CH_EMAIL>[email protected]</CH_EMAIL>
        <CH_MOBILE>+1234565655522</CH_MOBILE>
        <CARRIER_TYPE>1</CARRIER_TYPE>
        <ENVELOPE_REF>1</ENVELOPE_REF>
        <CARRIER_LANG>ENG</CARRIER_LANG>
        <CARRIER_INSERT_1>1</CARRIER_INSERT_1>
        <CARRIER_INSERT_2>1</CARRIER_INSERT_2>
        <FULFIL1/>
        <FULFIL2/>
      </CARRIERS>
      <CARD>
        <CRD_ACTION>0</CRD_ACTION>
        <CRD_INST/>
        <TRACK1>B5454543334080149^Firstname/Surname^2705221695000000000000</TRACK1>
        <TRACK2>5454543334080149=27052210115497322695</TRACK2>
        <TRACK3/>
        <EMBOSS_PAN>5454543334080149</EMBOSS_PAN>
        <EMBOSS_NAME>Firstname Surname</EMBOSS_NAME>
        <EMBOSS_START>05/23</EMBOSS_START>
        <EMBOSS_EXPIRY>05/27</EMBOSS_EXPIRY>
        <EMBOSS_CVC2>980</EMBOSS_CVC2>
        <EMBOSS_LINE4/>
        <EXT_LINE1/>
        <EXT_LINE2/>
        <LOGO_FRONT_ID>0</LOGO_FRONT_ID>
        <LOGO_BACK_ID>0</LOGO_BACK_ID>
        <CUSTOM_1/>
        <CHIP>
          <TYPE>MASTERCARD</TYPE>
          <PAN>5454543334080149</PAN>
          <PAN_SEQ>00</PAN_SEQ>
          <NAME>Firstname/Surname</NAME>
          <START_DATE>05/23</START_DATE>
          <EXPIRY_DATE>05/27</EXPIRY_DATE>
          <SERVICE_CODE>221</SERVICE_CODE>
          <CHIP_TRACK_2>1234563334080149D27052210115497322190F</CHIP_TRACK_2>
          <PINBLOCK>F374BCF15555C149</PINBLOCK>
        </CHIP>
      </CARD>
    </RECORD>
    <RECORD>
      <UID>11123</UID>
      <CLIENT_CARD_REF>client choice</CLIENT_CARD_REF>
      <CARRIERS>
        <CAR_DEL_METHOD>1</CAR_DEL_METHOD>
        <DEL_CODE/>
        <CH_TITLE>Mr</CH_TITLE>
        <CH_FNAME>Firstname</CH_FNAME>
        <CH_SNAME>Surname</CH_SNAME>
        <CH_ADD1>London</CH_ADD1>
        <CH_ADD2>London</CH_ADD2>
        <CH_CITY>London</CH_CITY>
        <CH_PCODE>00977</CH_PCODE>
        <CH_COUNTRY>London</CH_COUNTRY>
        <CH_EMAIL>[email protected]</CH_EMAIL>
        <CH_MOBILE>+1234565655522</CH_MOBILE>
        <CARRIER_TYPE>1</CARRIER_TYPE>
        <ENVELOPE_REF>1</ENVELOPE_REF>
        <CARRIER_LANG>ENG</CARRIER_LANG>
        <CARRIER_INSERT_1>1</CARRIER_INSERT_1>
        <CARRIER_INSERT_2>1</CARRIER_INSERT_2>
        <FULFIL1/>
        <FULFIL2/>
      </CARRIERS>
      <CARD>
        <CRD_ACTION>0</CRD_ACTION>
        <CRD_INST/>
        <TRACK1>B5454543334081543^Firstname/Surname^2705221184000000000000</TRACK1>
        <TRACK2>123456334081543=27052210115535222184</TRACK2>
        <TRACK3/>
        <EMBOSS_PAN>5454543334081543</EMBOSS_PAN>
        <EMBOSS_NAME>Firstname Surname</EMBOSS_NAME>
        <EMBOSS_START>05/23</EMBOSS_START>
        <EMBOSS_EXPIRY>05/27</EMBOSS_EXPIRY>
        <EMBOSS_CVC2>054</EMBOSS_CVC2>
        <EMBOSS_LINE4/>
        <EXT_LINE1/>
        <EXT_LINE2/>
        <LOGO_FRONT_ID>0</LOGO_FRONT_ID>
        <LOGO_BACK_ID>0</LOGO_BACK_ID>
        <CUSTOM_1/>
        <CHIP>
          <TYPE>MASTERCARD</TYPE>
          <PAN>5454543334081543</PAN>
          <PAN_SEQ>00</PAN_SEQ>
          <NAME>Firstname/Surname</NAME>
          <START_DATE>05/23</START_DATE>
          <EXPIRY_DATE>05/27</EXPIRY_DATE>
          <SERVICE_CODE>221</SERVICE_CODE>
          <CHIP_TRACK_2>1234563334081543D27052210115535222871F</CHIP_TRACK_2>
          <PINBLOCK>C9C2E6A34EC34C17</PINBLOCK>
        </CHIP>
      </CARD>
    </RECORD>
    <RECORD>
      <UID>11124</UID>
      <CLIENT_CARD_REF>client choice</CLIENT_CARD_REF>
      <CARRIERS>
        <CAR_DEL_METHOD>1</CAR_DEL_METHOD>
        <DEL_CODE/>
        <CH_TITLE>Mr</CH_TITLE>
        <CH_FNAME>Firstname</CH_FNAME>
        <CH_SNAME>Surname</CH_SNAME>
        <CH_ADD1>London</CH_ADD1>
        <CH_ADD2>London</CH_ADD2>
        <CH_CITY>London</CH_CITY>
        <CH_PCODE>00977</CH_PCODE>
        <CH_COUNTRY>London</CH_COUNTRY>
        <CH_EMAIL>[email protected]</CH_EMAIL>
        <CH_MOBILE>+1234565655522</CH_MOBILE>
        <CARRIER_TYPE>1</CARRIER_TYPE>
        <ENVELOPE_REF>1</ENVELOPE_REF>
        <CARRIER_LANG>ENG</CARRIER_LANG>
        <CARRIER_INSERT_1>1</CARRIER_INSERT_1>
        <CARRIER_INSERT_2>1</CARRIER_INSERT_2>
        <FULFIL1/>
        <FULFIL2/>
      </CARRIERS>
      <CARD>
        <CRD_ACTION>0</CRD_ACTION>
        <CRD_INST/>
        <TRACK1>B5454543334011748^Firstname/Surname^2705221450000000000000</TRACK1>
        <TRACK2>5454543334011748=27052210115540244450</TRACK2>
        <TRACK3/>
        <EMBOSS_PAN>5454543334011748</EMBOSS_PAN>
        <EMBOSS_NAME>Firstname Surname</EMBOSS_NAME>
        <EMBOSS_START>05/23</EMBOSS_START>
        <EMBOSS_EXPIRY>05/27</EMBOSS_EXPIRY>
        <EMBOSS_CVC2>097</EMBOSS_CVC2>
        <EMBOSS_LINE4/>
        <EXT_LINE1/>
        <EXT_LINE2/>
        <LOGO_FRONT_ID>0</LOGO_FRONT_ID>
        <LOGO_BACK_ID>0</LOGO_BACK_ID>
        <CUSTOM_1/>
        <CHIP>
          <TYPE>MASTERCARD</TYPE>
          <PAN>5454543334011748</PAN>
          <PAN_SEQ>00</PAN_SEQ>
          <NAME>Firstname/Surname</NAME>
          <START_DATE>05/23</START_DATE>
          <EXPIRY_DATE>05/27</EXPIRY_DATE>
          <SERVICE_CODE>221</SERVICE_CODE>
          <CHIP_TRACK_2>5454543334011748D27052210115540244727F</CHIP_TRACK_2>
          <PINBLOCK>18AB147E62A60CD1</PINBLOCK>
        </CHIP>
      </CARD>
    </RECORD>
    <RECORD>
      <UID>11125</UID>
      <CLIENT_CARD_REF>client choice</CLIENT_CARD_REF>
      <CARRIERS>
        <CAR_DEL_METHOD>1</CAR_DEL_METHOD>
        <DEL_CODE/>
        <CH_TITLE>Mr</CH_TITLE>
        <CH_FNAME>Adish</CH_FNAME>
        <CH_SNAME>Surname</CH_SNAME>
        <CH_ADD1>London</CH_ADD1>
        <CH_ADD2>London</CH_ADD2>
        <CH_CITY>London</CH_CITY>
        <CH_PCODE>00977</CH_PCODE>
        <CH_COUNTRY>London</CH_COUNTRY>
        <CH_EMAIL>[email protected]</CH_EMAIL>
        <CH_MOBILE>+1234565655522</CH_MOBILE>
        <CARRIER_TYPE>1</CARRIER_TYPE>
        <ENVELOPE_REF>1</ENVELOPE_REF>
        <CARRIER_LANG>ENG</CARRIER_LANG>
        <CARRIER_INSERT_1>1</CARRIER_INSERT_1>
        <CARRIER_INSERT_2>1</CARRIER_INSERT_2>
        <FULFIL1/>
        <FULFIL2/>
      </CARRIERS>
      <CARD>
        <CRD_ACTION>0</CRD_ACTION>
        <CRD_INST/>
        <TRACK1>B1234567894045787^ADISH/Surname^2705221854000000000000</TRACK1>
        <TRACK2>1234567894045787=27052210115520905854</TRACK2>
        <TRACK3/>
        <EMBOSS_PAN>1234567894045787</EMBOSS_PAN>
        <EMBOSS_NAME>ADISH Surname</EMBOSS_NAME>
        <EMBOSS_START>05/23</EMBOSS_START>
        <EMBOSS_EXPIRY>05/27</EMBOSS_EXPIRY>
        <EMBOSS_CVC2>501</EMBOSS_CVC2>
        <EMBOSS_LINE4/>
        <EXT_LINE1/>
        <EXT_LINE2/>
        <LOGO_FRONT_ID>0</LOGO_FRONT_ID>
        <LOGO_BACK_ID>0</LOGO_BACK_ID>
        <CUSTOM_1/>
        <CHIP>
          <TYPE>MASTERCARD</TYPE>
          <PAN>1234567894045787</PAN>
          <PAN_SEQ>00</PAN_SEQ>
          <NAME>ADISH/Surname</NAME>
          <START_DATE>05/23</START_DATE>
          <EXPIRY_DATE>05/27</EXPIRY_DATE>
          <SERVICE_CODE>221</SERVICE_CODE>
          <CHIP_TRACK_2>1234567894045787D27052210115520905911F</CHIP_TRACK_2>
          <PINBLOCK>6C124E4AF7D26A42</PINBLOCK>
        </CHIP>
      </CARD>
    </RECORD>
  </PRODUCT>
</CARDGEN>

Who to contact about a failed job or error

🗒️

You can contact our Customer Support via the Customer Support Platform.