<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IDTECH Augusta encrypted MSR to Authorize.net in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IDTECH-Augusta-encrypted-MSR-to-Authorize-net/m-p/90650#M56988</link>
    <description>&lt;P&gt;I have been trying to get this Encrypted card reader to create a payment transaction in Authorize.net for a week no with no luck.&lt;/P&gt;&lt;P&gt;When I display the cardData.msr_RawData it does not start with 02 and end with 03. However when I view the swipe in the IDTechSDK, it does.&lt;/P&gt;&lt;P&gt;When I try to send the transaction to Authorize.Net I receive an E00061 error : Device information not formatted correctly.&lt;/P&gt;&lt;P&gt;var test = Run(AID,Common.getHexStringFromBytes(cardData.msr_rawData) , AKEY,Common.getHexStringFromBytes(cardData.msr_KSN), Convert.ToDecimal(.10), "MikeTest", cardData.msr_encTrack2, ref transCode, ref authCode, ref respCode);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static ANetApiResponse Run(String ApiLoginID, string ecrdata, String ApiTransactionKey,string KSNstring, decimal amount, string SOPNUMBER, byte[] track2a, ref string transCode, ref string authc, ref string respcode)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;&lt;BR /&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.PRODUCTION;&lt;/P&gt;&lt;P&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()&lt;BR /&gt;{&lt;BR /&gt;name = ApiLoginID,&lt;BR /&gt;ItemElementName = ItemChoiceType.transactionKey,&lt;BR /&gt;Item = ApiTransactionKey,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var keyManagement = new KeyManagementScheme&lt;BR /&gt;{&lt;BR /&gt;DUKPT = new KeyManagementSchemeDUKPT&lt;BR /&gt;{&lt;BR /&gt;Operation = OperationType.DECRYPT,&lt;BR /&gt;Mode = new KeyManagementSchemeDUKPTMode&lt;BR /&gt;{ Data = "1"&lt;BR /&gt;//PIN = KSNstring&lt;BR /&gt;},&lt;BR /&gt;DeviceInfo = new KeyManagementSchemeDUKPTDeviceInfo&lt;BR /&gt;{&lt;BR /&gt;Description = KSNstring&lt;BR /&gt;},&lt;BR /&gt;EncryptedData = new KeyManagementSchemeDUKPTEncryptedData&lt;BR /&gt;{&lt;BR /&gt;Value = ecrdata&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var paymentType = new paymentType&lt;BR /&gt;{&lt;BR /&gt;Item = new encryptedTrackDataType&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FormOfPayment = new KeyBlock&lt;BR /&gt;{&lt;BR /&gt;Value = new KeyValue&lt;BR /&gt;{&lt;BR /&gt;Encoding = EncodingType.Hex,&lt;BR /&gt;EncryptionAlgorithm = EncryptionAlgorithmType.TDES,&lt;BR /&gt;Scheme = keyManagement&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;dataSource = "SWIPE"&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var ordert = new orderType { invoiceNumber = SOPNUMBER };&lt;/P&gt;&lt;P&gt;// Add line Items&lt;BR /&gt;var lineItems = new lineItemType[1];&lt;BR /&gt;lineItems[0] = new lineItemType { itemId = "1", name = SOPNUMBER, quantity = 1, unitPrice = amount };&lt;/P&gt;&lt;P&gt;var transactionRequest = new transactionRequestType&lt;BR /&gt;{&lt;BR /&gt;transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), // charge the card&lt;/P&gt;&lt;P&gt;amount = amount,&lt;BR /&gt;payment = paymentType,&lt;BR /&gt;order = ordert,&lt;BR /&gt;lineItems = lineItems,&lt;BR /&gt;currencyCode = "USD",&lt;BR /&gt;&lt;BR /&gt;retail = new transRetailInfoType { deviceType = "1", marketType = "2" }&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var request = new createTransactionRequest { transactionRequest = transactionRequest };&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var controller = new createTransactionController(request);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;controller.Execute();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var response = controller.GetApiResponse();&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 17:46:02 GMT</pubDate>
    <dc:creator>mvalfromCT</dc:creator>
    <dc:date>2024-10-30T17:46:02Z</dc:date>
    <item>
      <title>IDTECH Augusta encrypted MSR to Authorize.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IDTECH-Augusta-encrypted-MSR-to-Authorize-net/m-p/90650#M56988</link>
      <description>&lt;P&gt;I have been trying to get this Encrypted card reader to create a payment transaction in Authorize.net for a week no with no luck.&lt;/P&gt;&lt;P&gt;When I display the cardData.msr_RawData it does not start with 02 and end with 03. However when I view the swipe in the IDTechSDK, it does.&lt;/P&gt;&lt;P&gt;When I try to send the transaction to Authorize.Net I receive an E00061 error : Device information not formatted correctly.&lt;/P&gt;&lt;P&gt;var test = Run(AID,Common.getHexStringFromBytes(cardData.msr_rawData) , AKEY,Common.getHexStringFromBytes(cardData.msr_KSN), Convert.ToDecimal(.10), "MikeTest", cardData.msr_encTrack2, ref transCode, ref authCode, ref respCode);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static ANetApiResponse Run(String ApiLoginID, string ecrdata, String ApiTransactionKey,string KSNstring, decimal amount, string SOPNUMBER, byte[] track2a, ref string transCode, ref string authc, ref string respcode)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;&lt;BR /&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.PRODUCTION;&lt;/P&gt;&lt;P&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()&lt;BR /&gt;{&lt;BR /&gt;name = ApiLoginID,&lt;BR /&gt;ItemElementName = ItemChoiceType.transactionKey,&lt;BR /&gt;Item = ApiTransactionKey,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var keyManagement = new KeyManagementScheme&lt;BR /&gt;{&lt;BR /&gt;DUKPT = new KeyManagementSchemeDUKPT&lt;BR /&gt;{&lt;BR /&gt;Operation = OperationType.DECRYPT,&lt;BR /&gt;Mode = new KeyManagementSchemeDUKPTMode&lt;BR /&gt;{ Data = "1"&lt;BR /&gt;//PIN = KSNstring&lt;BR /&gt;},&lt;BR /&gt;DeviceInfo = new KeyManagementSchemeDUKPTDeviceInfo&lt;BR /&gt;{&lt;BR /&gt;Description = KSNstring&lt;BR /&gt;},&lt;BR /&gt;EncryptedData = new KeyManagementSchemeDUKPTEncryptedData&lt;BR /&gt;{&lt;BR /&gt;Value = ecrdata&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var paymentType = new paymentType&lt;BR /&gt;{&lt;BR /&gt;Item = new encryptedTrackDataType&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FormOfPayment = new KeyBlock&lt;BR /&gt;{&lt;BR /&gt;Value = new KeyValue&lt;BR /&gt;{&lt;BR /&gt;Encoding = EncodingType.Hex,&lt;BR /&gt;EncryptionAlgorithm = EncryptionAlgorithmType.TDES,&lt;BR /&gt;Scheme = keyManagement&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;dataSource = "SWIPE"&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var ordert = new orderType { invoiceNumber = SOPNUMBER };&lt;/P&gt;&lt;P&gt;// Add line Items&lt;BR /&gt;var lineItems = new lineItemType[1];&lt;BR /&gt;lineItems[0] = new lineItemType { itemId = "1", name = SOPNUMBER, quantity = 1, unitPrice = amount };&lt;/P&gt;&lt;P&gt;var transactionRequest = new transactionRequestType&lt;BR /&gt;{&lt;BR /&gt;transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), // charge the card&lt;/P&gt;&lt;P&gt;amount = amount,&lt;BR /&gt;payment = paymentType,&lt;BR /&gt;order = ordert,&lt;BR /&gt;lineItems = lineItems,&lt;BR /&gt;currencyCode = "USD",&lt;BR /&gt;&lt;BR /&gt;retail = new transRetailInfoType { deviceType = "1", marketType = "2" }&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var request = new createTransactionRequest { transactionRequest = transactionRequest };&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var controller = new createTransactionController(request);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;controller.Execute();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var response = controller.GetApiResponse();&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 17:46:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/IDTECH-Augusta-encrypted-MSR-to-Authorize-net/m-p/90650#M56988</guid>
      <dc:creator>mvalfromCT</dc:creator>
      <dc:date>2024-10-30T17:46:02Z</dc:date>
    </item>
  </channel>
</rss>

