{"info":{"_postman_id":"2bf1bb52-67d4-4ceb-b948-28ae7a36f37a","name":"Decrypt and Forward (DAF)","description":"<html><head></head><body><h1 id=\"additional-references\">Additional References:</h1>\n<p>Github resources: <a href=\"https://github.com/Magensa/DAFv4\">https://github.com/Magensa/DAFv4</a></p>\n<p>Playground: <a href=\"https://demo.magensa.net/Dafplayground/ClientApp/build\">https://demo.magensa.net/Dafplayground/ClientApp/build</a></p>\n<p>Endpoint URLs:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Uri</th>\n<th>Method</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>/ProcessCardSwipe</td>\n<td><a href=\"https://svc1.magensa.net/pilot-dafv4/Service.svc/JSON/help/operations/ProcessCardSwipe\">POST</a></td>\n<td>Service at <a href=\"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessCardSwipe\">https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessCardSwipe</a></td>\n</tr>\n<tr>\n<td>/ProcessData</td>\n<td><a href=\"https://svc1.magensa.net/pilot-dafv4/Service.svc/JSON/help/operations/ProcessData\">POST</a></td>\n<td>Service at <a href=\"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessData\">https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessData</a></td>\n</tr>\n<tr>\n<td>/ProcessGooglePay</td>\n<td><a href=\"https://svc1.magensa.net/pilot-dafv4/Service.svc/JSON/help/operations/ProcessGooglePay\">POST</a></td>\n<td>Service at <a href=\"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessGooglePay\">https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessGooglePay</a></td>\n</tr>\n<tr>\n<td>/ProcessInAppApplePay</td>\n<td><a href=\"https://svc1.magensa.net/pilot-dafv4/Service.svc/JSON/help/operations/ProcessInAppApplePay\">POST</a></td>\n<td>Service at <a href=\"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessInAppApplePay\">https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessInAppApplePay</a></td>\n</tr>\n<tr>\n<td>/ProcessTECApplePay</td>\n<td><a href=\"https://svc1.magensa.net/pilot-dafv4/Service.svc/JSON/help/operations/ProcessTECApplePay\">POST</a></td>\n<td>Service at <a href=\"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessTECApplePay\">https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessTECApplePay</a></td>\n</tr>\n<tr>\n<td>/ProcessToken</td>\n<td><a href=\"https://svc1.magensa.net/pilot-dafv4/Service.svc/JSON/help/operations/ProcessToken\">POST</a></td>\n<td>Service at <a href=\"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessToken\">https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/ProcessToken</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"purpose-of-the-document\">Purpose of the document</h1>\n<p>The purpose of this document is to provide a description of how to call operations of the Magensa Decrypt and Forward 4.0 Web Services.</p>\n<p>Effective use of the Decrypt and Forward Web Services enables users to easily integrate encrypted card swipe data into a payment application where the payment application traditionally transmits unencrypted card swipe data when calling web services for a third-party (or ‘target’) service provider.</p>\n<p>Users can send Magensa the encapsulated XML (SOAP) or key-value pairs for the third-party service provider, along with encrypted card swipe data from a MagTek MagneSafe reader, and Magensa will decrypt the card swipe data and insert the relevant data, including the unencrypted card data, into the target XML or key-value pairs and call the third-party service provider on behalf of the user. This process will allow a user to support encrypted card swipe data in their payment application without the third-party service provider supporting a decryption service.</p>\n<img src=\"https://content.pstmn.io/55624957-5183-45b0-9fd4-d9fb5ffc3372/ZGFmMS5wbmc=\">\n\n<p>Figure 1 - Decrypt and Forward</p>\n<p>Examples of third-party service providers to use with Decrypt and Forward:</p>\n<ul>\n<li><p>Payment processors</p>\n</li>\n<li><p>Tokenization services</p>\n</li>\n<li><p>Card fraud alert services</p>\n</li>\n<li><p>Gift card processors</p>\n</li>\n<li><p>Credit check services</p>\n</li>\n<li><p>Special-purpose gateways (EBT, procurement card, etc)</p>\n</li>\n</ul>\n<p>The Decrypt and Forward Web Service works by decrypting data from a MagneSafe encrypted card swipe and placing the appropriate decrypted data into the target XML or key-value pairs. This is accomplished by using “field replacement variables” that are inserted in-line into the payload. For instance, a target web service might accept a card Primary Account Number (PAN) as an input using the following tag:</p>\n<p>To instruct Magensa to place the decrypted PAN from the card swipe into this tag, the field replacement variable <code>{CCNum}</code> would be used as follows: <code>{CCNum}</code></p>\n<p>Variables</p>\n<ol>\n<li><p><code>{DecryptedData}</code></p>\n</li>\n<li><p><code>{CCName}</code></p>\n</li>\n<li><p><code>{CCNum}</code></p>\n</li>\n<li><p><code>{CCTrack1}</code></p>\n</li>\n<li><p><code>{CCTrack1Length}</code></p>\n</li>\n<li><p><code>{CCTrack2}</code></p>\n</li>\n<li><p><code>{CCTrack2Length}</code></p>\n</li>\n<li><p><code>{CCardType}</code></p>\n</li>\n<li><p><code>{KSN}</code></p>\n</li>\n<li><p><code>{MMYYCCExpdt}</code></p>\n</li>\n<li><p><code>{MM_YYCCExpdt}</code></p>\n</li>\n<li><p><code>{DD}</code></p>\n</li>\n<li><p><code>{MM}</code></p>\n</li>\n<li><p><code>{YY}</code></p>\n</li>\n<li><p><code>{YYYY}</code></p>\n</li>\n<li><p><code>{DecryptedBlob}</code></p>\n</li>\n</ol>\n<p>Additional variables will be added from time-to-time. If a particular card data element is required for the target web service you wish to use, please contact <a href=\"https://mailto:support@magensa.net\">support@magensa.net</a> to submit a request to have it added to the service.</p>\n<p>A unique, new feature introduced in Decrypt and Forward 4.0 is the ability to send a “batch” of requests in a single call to the service. As a result, all Decrypt and Forward 4.0 service operations take in an array of requests and return an array of responses. The service processes these input requests serially and a specific index/element of response corresponds to the specific index/element of request. All responses have a DecryptForwardFaultException element and in the case of an error or exception raised for that</p>\n<p>particular request, the details will be available in the corresponding DecryptForwardFaultException element. When successful, the value of this DecryptForwardFaultException element will be null.</p>\n<p>The Decrypt and Forward Web Services do not rely on a pre-existing integration between Magensa and the third-party service provider. As long as the third-party service provider uses web services, and Magensa can call those web services on behalf of the user, the third-party service can be used.</p>\n<p>In the case where the user has never integrated to the third-party service provider before, it is recommended for the user to integrate to the Decrypt and Forward Web Services first, and then certify to the target third-party service provider with Decrypt and Forward in-place.</p>\n<p>In order for Magensa to call the third-party service provider, consideration must be given to the following:</p>\n<ul>\n<li><p>Whether Magensa’s IP addresses and domain names must be whitelisted with the third-party</p>\n</li>\n<li><p>Whether client and/or server-side certificates are required.</p>\n</li>\n</ul>\n<p>Information in this document is subject to change without notice. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Magensa LLC.</p>\n<h1 id=\"decrypt-and-forward-version-40-operations\">Decrypt and Forward Version 4.0 Operations</h1>\n<h2 id=\"processcardswipe\">ProcessCardSwipe</h2>\n<p>A command used to decrypt and forward a processed card swipe.</p>\n<h3 id=\"input-properties\">Input Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property(*)</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>AdditionalRequestData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>CustomerCode *</td>\n<td>String</td>\n<td>Customer code for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>Password *</td>\n<td>String</td>\n<td>Password for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>Username *</td>\n<td>String</td>\n<td>Username for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>BillingLabel</td>\n<td>String</td>\n<td>Billing label</td>\n</tr>\n<tr>\n<td>CustomerTransactionId</td>\n<td>String</td>\n<td>Client-assigned transaction ID for easy cross-reference</td>\n</tr>\n<tr>\n<td>EncryptedCardSwipe</td>\n<td>String</td>\n<td>Container for magnetic stripe card data. This container is optional. EncryptedCardSwipe and all the following properties within shall be omitted if an encrypted card swipe is not available: IsReturnCardID, DeviceSN, KSN, MagnePrint, MagnePrintStatus, Track1, Track2, and Track3.</td>\n</tr>\n<tr>\n<td>IsReturnCardID</td>\n<td>Boolean</td>\n<td>Flag indicating whether the value of CardID is returned from Magensa  <br>  <br>0 = (false)  <br>  <br>1 = (true)</td>\n</tr>\n<tr>\n<td>DeviceSN</td>\n<td>String</td>\n<td>Device serial number</td>\n</tr>\n<tr>\n<td>KSN *</td>\n<td>String</td>\n<td>Key serial number of the device</td>\n</tr>\n<tr>\n<td>MagnePrint *</td>\n<td>String</td>\n<td>Encrypted MagnePrint</td>\n</tr>\n<tr>\n<td>MagnePrintStatus *</td>\n<td>String</td>\n<td>MagnePrint status</td>\n</tr>\n<tr>\n<td>Track1</td>\n<td>String</td>\n<td>Encrypted track1 data</td>\n</tr>\n<tr>\n<td>Track2 *</td>\n<td>String</td>\n<td>Encrypted track2 data</td>\n</tr>\n<tr>\n<td>Track3</td>\n<td>String</td>\n<td>Encrypted track3 data</td>\n</tr>\n<tr>\n<td>AdditionalPayloadInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under See sample request.</td>\n</tr>\n<tr>\n<td>Base64ClientCert</td>\n<td>String</td>\n<td>Client certificate to accessing the targeted web service formatted in base64</td>\n</tr>\n<tr>\n<td>ClientCertPassword</td>\n<td>String</td>\n<td>Client certificate password</td>\n</tr>\n<tr>\n<td>AdditionalHTTPInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>Headers</td>\n<td>Array of key / value</td>\n<td>Contains custom HTTP headers required by the target web service. Elements are expressed as key/value pairs grouped under . See examples.</td>\n</tr>\n<tr>\n<td>NetworkProtocolType</td>\n<td>String</td>\n<td>Network protocol to use when forwarding the payload to the processor:  <br>  <br>HTTP  <br>  <br>TCPIP</td>\n</tr>\n<tr>\n<td>Payload *</td>\n<td>String</td>\n<td>Payload data  <br>  <br>Example:</td>\n</tr>\n<tr>\n<td>AccessEngineHeaderHex</td>\n<td>String</td>\n<td>Access engine header in base64 format</td>\n</tr>\n<tr>\n<td>AdditionalTCPIPInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>NumberOfBytesToAddForLength *</td>\n<td>Integer</td>\n<td>This field may be required by some processors. If it is not 0, the defined number of bytes are added in front of the TCPIP message. Then the total length of the TCPIP binary message is calculated and written into those bytes. The value should be defined in the processor documentation, usually should be 2. Set to 0 when NetworkProtocolType is HTTP.</td>\n</tr>\n<tr>\n<td>Port *</td>\n<td>Integer</td>\n<td>This is the TCPIP port number. Set to 0 when NetworkProtocolType is HTTP.</td>\n</tr>\n<tr>\n<td>Uri *</td>\n<td>String</td>\n<td>Address to forward the payload</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note: * = Required</p>\n<h3 id=\"output-properties\">Output Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>AdditionalOutputData</td>\n<td>Array of key / value</td>\n<td>Contains additional output data returned by the target web service. Elements are expressed as key/value pairs grouped under . See examples.</td>\n</tr>\n<tr>\n<td>CardID</td>\n<td>String</td>\n<td>Card ID from Magensa</td>\n</tr>\n<tr>\n<td>IsReplay</td>\n<td>String</td>\n<td>Boolean value indicating prior use of KSN from Magensa</td>\n</tr>\n<tr>\n<td>MagnePrintScore</td>\n<td>String</td>\n<td>MagnePrint score</td>\n</tr>\n<tr>\n<td>CustomerTransactionId</td>\n<td>String</td>\n<td>Client-assigned transaction ID for easy cross-reference</td>\n</tr>\n<tr>\n<td>DecryptForwardFaultException</td>\n<td>String</td>\n<td>Contains a fault exception returned by the target web service. Elements are expressed as Code and Message.</td>\n</tr>\n<tr>\n<td>MagTranId</td>\n<td>String</td>\n<td>Magensa assigned unique transaction ID in GUID form.</td>\n</tr>\n<tr>\n<td>PayloadResponse</td>\n<td>String</td>\n<td>Response from the Uri input</td>\n</tr>\n<tr>\n<td>PayloadToken</td>\n<td>String</td>\n<td>Payload token</td>\n</tr>\n<tr>\n<td>TransactionUTCTimestamp</td>\n<td>String</td>\n<td>Transaction timestamp from Magensa</td>\n</tr>\n</tbody>\n</table>\n</div><p>The Web Services Description Language URL for consuming this web service may be located at:</p>\n<p><a href=\"https://daf.magensa.net/v4/Service.svc?singleWsdl\">https://daf.magensa.net/v4/Service.svc?singleWsdl</a></p>\n<h2 id=\"processdata\">ProcessData</h2>\n<p>A command used to process and forward a transaction. The transaction may be encrypted, non-encrypted, TLV encoded, or not TLV encoded based on the input properties.</p>\n<h3 id=\"input-properties-1\">Input Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property(*)</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>AdditionalRequestData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>CustomerCode *</td>\n<td>String</td>\n<td>Customer code for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>Password *</td>\n<td>String</td>\n<td>Password for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>Username *</td>\n<td>String</td>\n<td>Username for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>BillingLabel</td>\n<td>String</td>\n<td>Billing label</td>\n</tr>\n<tr>\n<td>CustomerTransactionId</td>\n<td>String</td>\n<td>Client-assigned transaction ID for easy cross-reference</td>\n</tr>\n<tr>\n<td>Data *</td>\n<td>String</td>\n<td>Transaction data to be sent to the processor</td>\n</tr>\n<tr>\n<td>DataFormatType</td>\n<td>String</td>\n<td>Format for Data:  <br>  <br>TLV  <br>  <br>NONE</td>\n</tr>\n<tr>\n<td>EncryptionType *</td>\n<td>String</td>\n<td>Encryption type used for Data when Data is encrypted:  <br>  <br>80 = (DUKPT Key Data Variant)  <br>  <br>81 = (DUKPT Key PIN Variant)</td>\n</tr>\n<tr>\n<td>KSN *</td>\n<td>String</td>\n<td>Key serial number of the device.</td>\n</tr>\n<tr>\n<td>NumberOfPaddedBytes *</td>\n<td>Integer</td>\n<td>Number of bytes padded to the end of the decrypted EMVSREDData to make a multiple of 8 bytes.</td>\n</tr>\n<tr>\n<td>IsEncrypted</td>\n<td>Boolean</td>\n<td>Flag indicating whether Data is encrypted:  <br>  <br>0 = (false and default if not present)  <br>  <br>1 = (true)</td>\n</tr>\n<tr>\n<td>AdditionalPayloadInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>Base64ClientCert</td>\n<td>String</td>\n<td>Client certificate to accessing the targeted web service formatted in base64</td>\n</tr>\n<tr>\n<td>ClientCertPassword</td>\n<td>String</td>\n<td>Client certificate password</td>\n</tr>\n<tr>\n<td>AdditionalHTTPInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>Headers</td>\n<td>Array of key / value</td>\n<td>Contains custom HTTP headers required by the target web service. Elements are expressed as key/value pairs grouped under . See examples.</td>\n</tr>\n<tr>\n<td>NetworkProtocolType</td>\n<td>String</td>\n<td>Network protocol to use when forwarding the payload to the processor:  <br>  <br>HTTP  <br>  <br>TCPIP</td>\n</tr>\n<tr>\n<td>Payload *</td>\n<td>String</td>\n<td>Payload data  <br>  <br>Example:</td>\n</tr>\n<tr>\n<td>AccessEngineHeaderHex</td>\n<td>String</td>\n<td>Access engine header in base64 format</td>\n</tr>\n<tr>\n<td>AdditionalTCPIPInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>NumberOfBytesToAddForLength *</td>\n<td>Integer</td>\n<td>This field may be required by some processors. If it is not 0, the defined number of bytes are added in front of the TCPIP message. Then the total length of the TCPIP binary message is calculated and written into those bytes. The value should be defined in the processor documentation, usually should be 2. Set to 0 when NetworkProtocolType is HTTP.</td>\n</tr>\n<tr>\n<td>Port *</td>\n<td>Integer</td>\n<td>This is the TCPIP port number. Set to 0 when NetworkProtocolType is HTTP.</td>\n</tr>\n<tr>\n<td>Uri *</td>\n<td>String</td>\n<td>Address to forward the payload</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note: * = Required</p>\n<h3 id=\"output-properties-1\">Output Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CustomerTransactionId</td>\n<td>String</td>\n<td>Client-assigned transaction ID for easy cross-reference</td>\n</tr>\n<tr>\n<td>AdditionalOutputData</td>\n<td>Array of key / value</td>\n<td>Contains additional output data returned by the target web service. Elements are expressed as key/value pairs grouped under . See examples.</td>\n</tr>\n<tr>\n<td>CardID</td>\n<td>String</td>\n<td>Card ID from Magensa</td>\n</tr>\n<tr>\n<td>IsReplay</td>\n<td>Boolean</td>\n<td>Boolean value indicating prior use of KSN from Magensa</td>\n</tr>\n<tr>\n<td>DecryptForwardFaultException</td>\n<td>String</td>\n<td>Contains a fault exception returned by the target web service. Elements are expressed as Code and Message.</td>\n</tr>\n<tr>\n<td>MagTranId</td>\n<td>String</td>\n<td>Magensa assigned unique transaction ID in GUID form.</td>\n</tr>\n<tr>\n<td>PayloadResponse</td>\n<td>String</td>\n<td>Response from the Uri input</td>\n</tr>\n<tr>\n<td>PayloadToken</td>\n<td>String</td>\n<td>Payload token</td>\n</tr>\n<tr>\n<td>TransactionUTCTimestamp</td>\n<td>String</td>\n<td>Transaction timestamp from Magensa</td>\n</tr>\n</tbody>\n</table>\n</div><p>The Web Services Description Language URL for consuming this web service may be located at:</p>\n<p><a href=\"https://daf.magensa.net/v4/Service.svc?singleWsdl\">https://daf.magensa.net/v4/Service.svc?singleWsdl</a></p>\n<h2 id=\"processtoken\">ProcessToken</h2>\n<p>A command used to process a token.</p>\n<h3 id=\"input-properties-2\">Input Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property(*)</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>AdditionalRequestData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>CustomerCode *</td>\n<td>String</td>\n<td>Customer code for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>Password *</td>\n<td>String</td>\n<td>Password for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>Username *</td>\n<td>String</td>\n<td>Username for credential assigned by Magensa</td>\n</tr>\n<tr>\n<td>BillingLabel</td>\n<td>String</td>\n<td>Billing label</td>\n</tr>\n<tr>\n<td>CustomerTransactionId</td>\n<td>String</td>\n<td>Client-assigned transaction ID for easy cross-reference</td>\n</tr>\n<tr>\n<td>AdditionalPayloadInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>Base64ClientCert</td>\n<td>String</td>\n<td>Client certificate to accessing the targeted web service formatted in base64</td>\n</tr>\n<tr>\n<td>ClientCertPassword</td>\n<td>String</td>\n<td>Client certificate password</td>\n</tr>\n<tr>\n<td>AdditionalHTTPInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>Headers</td>\n<td>Array of key / value</td>\n<td>Contains custom HTTP headers required by the target web service. Elements are expressed as key/value pairs grouped under . See examples.</td>\n</tr>\n<tr>\n<td>NetworkProtocolType</td>\n<td>String</td>\n<td>Network protocol to use when forwarding the payload to the processor:  <br>  <br>HTTP  <br>  <br>TCPIP</td>\n</tr>\n<tr>\n<td>Payload *</td>\n<td>String</td>\n<td>Payload data  <br>  <br>Example:</td>\n</tr>\n<tr>\n<td>AccessEngineHeaderHex</td>\n<td>String</td>\n<td>Access engine header in base64 format</td>\n</tr>\n<tr>\n<td>AdditionalTCPIPInfoData</td>\n<td>Array of key / value</td>\n<td>Contains custom request data required by the target service provider. Elements are expressed as key/value pairs grouped under . See sample request.</td>\n</tr>\n<tr>\n<td>NumberOfBytesToAddForLength *</td>\n<td>Integer</td>\n<td>This field may be required by some processors. If it is not 0, the defined number of bytes are added in front of the TCPIP message. Then the total length of the TCPIP binary message is calculated and written into those bytes. The value should be defined in the processor documentation, usually should be 2. Set to 0 when NetworkProtocolType is HTTP.</td>\n</tr>\n<tr>\n<td>Port *</td>\n<td>Integer</td>\n<td>This is the TCPIP port number. Set to 0 when NetworkProtocolType is HTTP.</td>\n</tr>\n<tr>\n<td>Uri *</td>\n<td>String</td>\n<td>Address to forward the payload</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note: * = Required</p>\n<h3 id=\"output-properties-2\">Output Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>AdditionalProcessTokenResponseData</td>\n<td>Array of key / value</td>\n<td>A group that contains additional output data returned by the target web service. Elements are expressed as Key/Value pairs grouped under . See examples.</td>\n</tr>\n<tr>\n<td>CustomerTransactionId</td>\n<td>String&gt;</td>\n<td>Client-assigned transaction ID for easy cross-reference</td>\n</tr>\n<tr>\n<td>DecryptForwardFaultException</td>\n<td>String</td>\n<td>Contains a fault exception returned by the target web service. Elements are expressed as Code and Message.</td>\n</tr>\n<tr>\n<td>MagTranId</td>\n<td>String</td>\n<td>Magensa assigned unique transaction ID in GUID form</td>\n</tr>\n<tr>\n<td>PayloadResponse</td>\n<td>String</td>\n<td>Response from the Uri input</td>\n</tr>\n<tr>\n<td>PayloadToken</td>\n<td>String</td>\n<td>Hexadecimal format</td>\n</tr>\n<tr>\n<td>TransactionUTCTimestamp</td>\n<td>String</td>\n<td>Transaction timestamp from Magensa</td>\n</tr>\n</tbody>\n</table>\n</div><p>The Web Services Description Language URL for consuming this web service may be located at:</p>\n<p><a href=\"https://daf.magensa.net/v4/Service.svc?singleWsdl\">https://daf.magensa.net/v4/Service.svc?singleWsdl</a></p>\n<h1 id=\"status-codes-and-messages\">Status Codes and Messages</h1>\n<p>Status Codes and Messages returned by Magensa for Decrypt and Forward 4.0 web service operations.</p>\n<p>Internal errors</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>5000</td>\n<td>Unknown Error</td>\n</tr>\n</tbody>\n</table>\n</div><p>Input Validation errors</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>602</td>\n<td>KSN is required</td>\n</tr>\n<tr>\n<td>603</td>\n<td>CustomerCode is required</td>\n</tr>\n<tr>\n<td>604</td>\n<td>Username is required</td>\n</tr>\n<tr>\n<td>605</td>\n<td>Password is required</td>\n</tr>\n<tr>\n<td>607</td>\n<td>KSN is not valid</td>\n</tr>\n<tr>\n<td>610</td>\n<td>EncryptedTrack2 is required</td>\n</tr>\n<tr>\n<td>611</td>\n<td>MagnePrint is required</td>\n</tr>\n<tr>\n<td>614</td>\n<td>MagnePrint status is required</td>\n</tr>\n<tr>\n<td>673</td>\n<td>ProcessCardSwipe Inputs is required</td>\n</tr>\n<tr>\n<td>674</td>\n<td>ProcessDataInputs is required</td>\n</tr>\n<tr>\n<td>675</td>\n<td>ProcessToken Inputs is required</td>\n</tr>\n<tr>\n<td>676</td>\n<td>HTTP Info is required when NetworkProtocolTypes is HTTP</td>\n</tr>\n<tr>\n<td>677</td>\n<td>Invalid Network Protocol Type</td>\n</tr>\n<tr>\n<td>701</td>\n<td>Access Denied</td>\n</tr>\n<tr>\n<td>707</td>\n<td>Payload is required</td>\n</tr>\n<tr>\n<td>708</td>\n<td>EncryptionType is required</td>\n</tr>\n<tr>\n<td>711</td>\n<td>GetResponse FaultException</td>\n</tr>\n<tr>\n<td>712</td>\n<td>Decrypt web service failed</td>\n</tr>\n<tr>\n<td>714</td>\n<td>Decrypt web service exception</td>\n</tr>\n<tr>\n<td>715</td>\n<td>Decrypt web service failed. DecryptCardSwipeResponse is null</td>\n</tr>\n<tr>\n<td>716</td>\n<td>Invalid Track data after Decryption</td>\n</tr>\n<tr>\n<td>721</td>\n<td>Payload post failed</td>\n</tr>\n<tr>\n<td>722</td>\n<td>URI is not authorized</td>\n</tr>\n<tr>\n<td>733</td>\n<td>Error parsing TLVData</td>\n</tr>\n<tr>\n<td>738</td>\n<td>Invalid EMVSREDData</td>\n</tr>\n<tr>\n<td>754</td>\n<td>Error in Base64-Client-Cert</td>\n</tr>\n<tr>\n<td>755</td>\n<td>TCP Info is required</td>\n</tr>\n<tr>\n<td>756</td>\n<td>EncryptionInfo is required</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"template-functions\">Template Functions</h1>\n<p>The following functions can be used in conjunction with field variables in order to build processor payloads request. A space is not needed between commas which delimit the parameters, unless specifically need as part of the parameter. All parameters shall not be enclosed in quotations (“”).</p>\n<h2 id=\"add\">$Add()</h2>\n<p>This function adds two numbers.</p>\n<p>$Add(Operand1_Numeric,Operand2_Numeric,ToStringFormat_Optional)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1_Numeric</td>\n<td>Numeric</td>\n<td>Number 1</td>\n</tr>\n<tr>\n<td>Operand2_Numeric</td>\n<td>Numeric</td>\n<td>Number 2</td>\n</tr>\n<tr>\n<td>ToStringFormat_Optional</td>\n<td>String</td>\n<td>Optional output string format specifier</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The numeric sum of Operand1_Numeric and Operand2_Numeric.</p>\n<h2 id=\"datetimenow\">$DateTimeNow()</h2>\n<p>This function returns the current date and time.</p>\n<p>$DateTimeNow(Optional_format,Optional_0_Local_Or_1_Universal)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Optional_format</td>\n<td>String</td>\n<td>Optional standard or custom date and time format string.  <br>  <br>Examples but not limited to:  <br>  <br>yyyyMMddhhmmss – 4 digit year in 12 hour format  <br>  <br>yyMMddHHmmss – 2 digit year in 24 hour format</td>\n</tr>\n<tr>\n<td>Optional_0_Local_Or_1_Universal</td>\n<td>Integer</td>\n<td>Optional flag to return local time or global time.  <br>  <br>0 – Local time  <br>  <br>1 – Global time</td>\n</tr>\n<tr>\n<td>Optional_format</td>\n<td>String</td>\n<td>Optional standard or custom date and time format string.  <br>  <br>Examples but not limited to:  <br>  <br>yyyyMMddhhmmss – 4 digit year in 12 hour format  <br>  <br>yyMMddHHmmss – 2 digit year in 24 hour format</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A string of the current date and time.</p>\n<h2 id=\"decimaltostring\">$DecimalToString()</h2>\n<p>This function converts a numeric value to an equivalent string.</p>\n<p>$DecimalToString(Operand1_Numeric,ToStringFormat_Optional)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1_Numeric</td>\n<td>Numeric</td>\n<td>Decimal number to convert</td>\n</tr>\n<tr>\n<td>ToStringFormat_Optional</td>\n<td>String</td>\n<td>Optional output string format specifier</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A string equivalent of the Operand1_Numeric.</p>\n<h2 id=\"indexof\">$IndexOf()</h2>\n<p>This function finds the position of one string within another.</p>\n<p>$IndexOf(string,searchString,startPosition,numberOfCharacterPosition)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>The source string</td>\n</tr>\n<tr>\n<td>searchString</td>\n<td>String</td>\n<td>The string to seek.</td>\n</tr>\n<tr>\n<td>startPosition</td>\n<td>String</td>\n<td>The search starting position.</td>\n</tr>\n<tr>\n<td>numberOfCharacterPosition</td>\n<td>String</td>\n<td>The number of character positions to examine.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The zero-based index position of value from the start of the current instance if that string is found, or -1 if it is not. If string is empty, the return value is startPosition.</p>\n<h2 id=\"indexignorecaseof\">$IndexIgnoreCaseOf()</h2>\n<p>This function finds the position of one string within another and is case insensitive.</p>\n<p>$IndexIgnoreCaseOf(string,searchString,startPosition,numberOfCharacterPosition)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>The source string</td>\n</tr>\n<tr>\n<td>searchString</td>\n<td>String</td>\n<td>The string to seek</td>\n</tr>\n<tr>\n<td>startPosition</td>\n<td>String</td>\n<td>The search starting position</td>\n</tr>\n<tr>\n<td>numberOfCharacterPosition</td>\n<td>String</td>\n<td>The number of character positions to examine</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The zero-based index position of value from the start of the current instance if that string is found, or -1 if it is not. If string is empty, the return value is startPosition.</p>\n<h2 id=\"length\">$Length()</h2>\n<p>This function returns the number of characters in a string.</p>\n<p>$Length(string)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>String to count</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The string length.</p>\n<h2 id=\"multiply\">$Multiply()</h2>\n<p>This function multiplies two numbers.</p>\n<p>$Multiply(Operand1_Numeric,Operand2_Numeric,ToStringFormat_Optional)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1_Numeric</td>\n<td>Numeric</td>\n<td>Number 1</td>\n</tr>\n<tr>\n<td>Operand2_Numeric</td>\n<td>Numeric</td>\n<td>Number 2</td>\n</tr>\n<tr>\n<td>ToStringFormat_Optional</td>\n<td>String</td>\n<td>Optional output string format specifier</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The product of Operand1_Numeric and Operand2_Numeric.</p>\n<h2 id=\"replace\">$Replace()</h2>\n<p>This function replaces a substring within another string.</p>\n<p>$Replace(string,oldValue,newValue)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>Source string</td>\n</tr>\n<tr>\n<td>oldValue</td>\n<td>String</td>\n<td>String being sought</td>\n</tr>\n<tr>\n<td>newValue</td>\n<td>String</td>\n<td>New value of string to replace the old value</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A string of which all instances of an oldValue substring has been replaced with a newValue substring.</p>\n<h2 id=\"substring\">$Substring()</h2>\n<p>This function retrieves a substring of the source string.</p>\n<p>$Substring(string,startindex,length)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>The source string</td>\n</tr>\n<tr>\n<td>startindex</td>\n<td>Integer</td>\n<td>The zero-based starting character position of the string</td>\n</tr>\n<tr>\n<td>length</td>\n<td>Integer</td>\n<td>The number of characters in the substring</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A string that is equivalent to the substring of specified length.</p>\n<h2 id=\"tlvlength\">$TLVLength()</h2>\n<p>This function returns the length of the data portion for a single TLV element string.</p>\n<p>$TLVLength(string)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>Tag octet of the TLV element  <br>  <br>Example of full TLV:  <br>  <br>When Application PAN TLV=5A081234567890123456, $TLVLength(5A) returns 08  <br>  <br>+--Literal-----------------------------+</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The hexadecimal data length of the TLV element.</p>\n<h2 id=\"trim\">$Trim()</h2>\n<p>This function removes leading and trailing spaces from a string.</p>\n<p>$Trim(string)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>string</td>\n<td>String</td>\n<td>String to trim</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A string without leading and trailing spaces.</p>\n<h2 id=\"regexismatch\">$RegExIsMatch()</h2>\n<p>This function evaluates a regular expression to find a match in the input string.</p>\n<p>$RegExIsMatch(InputString,patternString, RegexOptionsStringOptional)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>InputString</td>\n<td>String</td>\n<td>Input string to search for a match</td>\n</tr>\n<tr>\n<td>patternString</td>\n<td>String</td>\n<td>Pattern string to match</td>\n</tr>\n<tr>\n<td>RegexOptionsStringOptional</td>\n<td>String</td>\n<td>Optional regular expression options</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string if the regular expression finds a match, otherwise returns “False”.</p>\n<h2 id=\"regexreplace\">$RegExReplace()</h2>\n<p>This function replaces all strings that match a regular expression with a replacement string.</p>\n<p>$RegExReplace(InputString,PatternString,ReplacementString,RegexOptionsStringOptional)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>InputString</td>\n<td>String</td>\n<td>Input string to search for a match</td>\n</tr>\n<tr>\n<td>PatternString</td>\n<td>String</td>\n<td>Pattern string to match</td>\n</tr>\n<tr>\n<td>ReplacementString</td>\n<td>String</td>\n<td>String to replace a match</td>\n</tr>\n<tr>\n<td>RegexOptionsStringOptional</td>\n<td>String</td>\n<td>Optional regular expression options</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A new string that is identical to the input string, except that the replacement string takes the place of each matched string. If pattern is not matched, the input string is returned.</p>\n<h2 id=\"regexunescape\">$RegExUnescape()</h2>\n<p>This function converts an expression into its unescaped form.</p>\n<p>$RegExUnescape(InputString)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>InputString</td>\n<td>String</td>\n<td>String containing the text to convert</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>A string of characters with any escaped characters converted to their unescaped form.</p>\n<h2 id=\"iif\">$Iif()</h2>\n<p>This function evaluates an expression and returns either a true or false result string.</p>\n<p>$Iif(ConditionBool,ResultTrueString,ReturnFalseStringOptional)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ConditionBool</td>\n<td>Expression</td>\n<td>Expression to evaluate</td>\n</tr>\n<tr>\n<td>ResultTrueString</td>\n<td>Expression</td>\n<td>String returned if ConditionalBool evaluates as True</td>\n</tr>\n<tr>\n<td>ResultFalseStringOptional</td>\n<td>Expression</td>\n<td>Optional string returned if ConditionalBool evaluates as False</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>The True result string if the Boolean condition is true, otherwise the False result string.</p>\n<h2 id=\"notbool\">$NotBool()</h2>\n<p>This function negates a Boolean value.</p>\n<p>$NotBool(OperandBool)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>OperandBool</td>\n<td>Boolean</td>\n<td>Boolean to negate</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when OperandBool is false. “False” string when OperandBool is true.</p>\n<h2 id=\"andbool\">$AndBool()</h2>\n<p>This function performs an AND operation on two Boolean values.</p>\n<p>$AndBool(Operand1Bool,Operand2Bool)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1Bool</td>\n<td>Boolean</td>\n<td>Boolean value 1</td>\n</tr>\n<tr>\n<td>Operand2Bool</td>\n<td>Boolean</td>\n<td>Boolean value 2</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when both Operand1Bool and Operand2Bool are true, otherwise returns “False”.</p>\n<h2 id=\"orbool\">$OrBool()</h2>\n<p>This function performs an OR operation on two Boolean values.</p>\n<p>$OrBool(Operand1Bool,Operand2Bool)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1Bool</td>\n<td>Boolean</td>\n<td>Boolean value 1</td>\n</tr>\n<tr>\n<td>Operand2Bool</td>\n<td>Boolean</td>\n<td>Boolean value 2</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when both Operand1Bool and Operand2Bool are true,</p>\n<p>“True” string when either Operand1Bool or Operand2Bool are true, otherwise returns “False”.</p>\n<h2 id=\"iscontains\">$IsContains()</h2>\n<p>This function checks if the source string contains a substring.</p>\n<p>$IsContains(String,ContainsString,IgnoreCaseBool)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>String</td>\n<td>String</td>\n<td>Source string sought</td>\n</tr>\n<tr>\n<td>ContainsString</td>\n<td>String</td>\n<td>String to seek</td>\n</tr>\n<tr>\n<td>IgnoreCaseBool</td>\n<td>Boolean</td>\n<td>Flag to make the search be case insensitive  <br>  <br>false – Search is case sensitive  <br>  <br>true – Search is case insensitive</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when ContainsString is found, otherwise returns “False”.</p>\n<h2 id=\"isequalstrings\">$IsEqualStrings()</h2>\n<p>This function compares two strings.</p>\n<p>$IsEqualStrings(Operand1String,Operand2String,IgnoreCaseBool)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1String</td>\n<td>String</td>\n<td>String to compare</td>\n</tr>\n<tr>\n<td>Operand2String</td>\n<td>String</td>\n<td>String to compare</td>\n</tr>\n<tr>\n<td>IgnoreCaseBool</td>\n<td>Boolean</td>\n<td>Flag to make the search be case insensitive  <br>  <br>false – Search is case sensitive  <br>  <br>true – Search is case insensitive</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when Operand1String and Operand2String match, otherwise returns “False”.</p>\n<h2 id=\"isequalnumbers\">$IsEqualNumbers()</h2>\n<p>This function compares for the equality of two numbers.</p>\n<p>$IsEqualNumbers(Operand1Number,Operand2Number)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1Number</td>\n<td>Numeric</td>\n<td>Number to compare</td>\n</tr>\n<tr>\n<td>Operand2Number</td>\n<td>Numeric</td>\n<td>Number to compare</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when Operand1Number and Operand2Number match, otherwise returns “False”.</p>\n<h2 id=\"isgreaterorequal\">$IsGreaterOrEqual()</h2>\n<p>This function compares for the inequality of two numbers.</p>\n<p>$IsGreaterOrEqual(Operand1Number,Operand2Number)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Value Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Operand1Number</td>\n<td>Numeric</td>\n<td>Number to compare</td>\n</tr>\n<tr>\n<td>Operand2Number</td>\n<td>Numeric</td>\n<td>Number to compare</td>\n</tr>\n</tbody>\n</table>\n</div><p>Return Value:</p>\n<p>“True” string when Operand1Number is greater than or equal to Operand2Number, otherwise returns “False”.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Additional References:","slug":"additional-references"},{"content":"Purpose of the document","slug":"purpose-of-the-document"},{"content":"Decrypt and Forward Version 4.0 Operations","slug":"decrypt-and-forward-version-40-operations"},{"content":"Status Codes and Messages","slug":"status-codes-and-messages"},{"content":"Template Functions","slug":"template-functions"}],"owner":"33729815","collectionId":"2bf1bb52-67d4-4ceb-b948-28ae7a36f37a","publishedId":"2sAYdkJVAf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-05T16:22:45.000Z"},"item":[{"name":"ProcessCardSwipe","id":"db02d3e2-ab29-4eb6-80c7-b78adf96e0c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"text/xml;charset=UTF-8"},{"key":"SOAPAction","value":"http://tempuri.org/IDecryptAndForward/ProcessCardSwipe"}],"body":{"mode":"raw","raw":"{\n\t\"Authentication\":{\n\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\"Password\":\"{{Password}}\",\n\t\t\"Username\":\"{{Username}}\"\n\t},\n\t\"CustomerTransactionID\":\"R - Customer Defined Field up to a 256 character string\",\n\t\"ProcessCardSwipeInputs\":[{\n\t\t\"AdditionalRequestData\":[{\n\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\"value\":\"<string>\"\n\t\t\t}],\n\t\t\"Authentication\":{\n\t\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\t\"Password\":\"{{Password}}\",\n\t\t\t\"Username\":\"{{Username}}\"\n\t\t},\n\t\t\"BillingLabel\":\"<string>\",\n\t\t\"CustomerTransactionID\":\"<string>\",\n\t\t\"EncryptedCardSwipe\":{\n\t\t\t\"AdditionalEncryptedCardSwipeData\":[{\n\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\"value\":\"<string>\"\n\t\t\t}],\n\t\t\t\"DeviceSN\":\"<string>\",\n\t\t\t\"IsReturnCardID\":<bool>,\n\t\t\t\"KSN\":\"<string>\",\n\t\t\t\"MagnePrint\":\"<string>\",\n\t\t\t\"MagnePrintStatus\":\"<string>\",\n\t\t\t\"Track1\":\"<string>\",\n\t\t\t\"Track2\":\"<string>\",\n\t\t\t\"Track3\":\"<string>\"\n\t\t},\n\t\t\"PayloadInfo\":{\n\t\t\t\"AdditionalPayloadInfoData\":[{\n\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\"value\":\"<string>\"\n\t\t\t}],\n\t\t\t\"HTTPInfo\":{\n\t\t\t\t\"AdditionalHTTPInfoData\":[{\n\t\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\t\"value\":\"<string>\"\n\t\t\t\t}],\n\t\t\t\t\"Headers\":[{\n\t\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\t\"value\":\"<string>\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"NetworkProtocolType\":<Integer>,\n\t\t\t\"Payload\":\"<string>\",\n\t\t\t\"Uri\":\"<string>\"\n\t\t}\n\t}]\n}"},"url":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON//ProcessCardSwipe","urlObject":{"path":["ProcessCardSwipe"],"host":["https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/"],"query":[],"variable":[]}},"response":[{"id":"127924e7-0416-4481-9296-4250e9f2153a","name":"ProcessCardSwipe_Tsys","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"SOAPAction","value":"http://tempuri.org/IDecryptAndForward/ProcessCardSwipe"}],"body":{"mode":"raw","raw":"{\n\t\"Authentication\":{\n\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\"Password\":\"{{Password}}\",\n\t\t\"Username\":\"{{Username}}\"\n\t},\n\t\"CustomerTransactionID\":\"CustomerTransactionID\",\n\t\"ProcessCardSwipeInputs\":[{\n\t\t\"AdditionalRequestData\":[],\n\t\t\"Authentication\":{\n\t\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\t\"Password\":\"{{Password}}\",\n\t\t\t\"Username\":\"{{Username}}\"\n\t\t},\n\t\t\"BillingLabel\":\"BillingLabel\",\n\t\t\"CustomerTransactionID\":\"CustomerTransactionID\",\n\t\t\"EncryptedCardSwipe\":{\t\t\t\"DeviceSN\":\"\",\n\t\t\t\"IsReturnCardID\":true,\n\t\t\t\"KSN\":\"9011400B4278430001F8\",\n\t\t\t\"MagnePrint\":\"C061DF5D1CE8F29A3E50D2B81A966D72B80F502052F306376B512A114D14B28ED6D781DB406398BD3A649F6B03215907C4D0137CBDAAFF7E\",\n\t\t\t\"MagnePrintStatus\":\"00200611\",\n\t\t\t\"Track1\":\"\",\n\t\t\t\"Track2\":\"E2897D17AB86880D334E2718E4C36531FF910CABE23F4481A96FB54694F74E9DEA05504E2F08DC9D\"\n\t\t},\n\t\t\"PayloadInfo\":{\n\t\t\t\"HTTPInfo\":{\n\t\t\t},\n\t\t\t\"NetworkProtocolType\":0,\n\t\t\t\"Payload\":\"<Sale> <deviceID>$IfUndefined(88600000004501,{deviceIDProfile})<\\/deviceID>\\t<transactionKey>LV96SBCXCT4PQCNHXZ57FHR5VGSXNWJ9<\\/transactionKey>\\r\\n<cardDataSource>$IfUndefined({cardDataSource},SWIPE)<\\/cardDataSource>\\t\\t\\t\\t\\t\\t\\t\\t<transactionAmount>1.00<\\/transactionAmount>\\r\\n<tip>{tip}<\\/tip>\\r\\n<currencyCode>$IfUndefined({currencyCode},USD)<\\/currencyCode>\\r\\n<track2Data>;$IfUndefined({Track2KVP},{CCTrack2})?<\\/track2Data>\\t\\t\\r\\n<emvFallbackCondition>{emvFallbackCondition}<\\/emvFallbackCondition>\\r\\n<lastChipRead>{lastChipRead}<\\/lastChipRead>\\r\\n<paymentAppVersion>{paymentAppVersion}<\\/paymentAppVersion>\\r\\n<terminalCapability>$IfUndefined(MAGSTRIPE_READ_ONLY,ICC_CHIP_CONTACT_CONTACTLESS)<\\/terminalCapability>\\r\\n<terminalOperatingEnvironment>$IfUndefined({terminalOperatingEnvironment},ON_MERCHANT_PREMISES_ATTENDED)<\\/terminalOperatingEnvironment>\\r\\n<cardholderAuthenticationMethod>$IfUndefined({cardholderAuthenticationMethod},MANUAL_SIGNATURE)<\\/cardholderAuthenticationMethod>\\r\\n<terminalAuthenticationCapability>$IfUndefined({terminalAuthenticationCapability},NO_CAPABILITY)<\\/terminalAuthenticationCapability>\\r\\n<terminalOutputCapability>$IfUndefined({terminalOutputCapability},PRINT_AND_DISPLAY)<\\/terminalOutputCapability>\\r\\n<maxPinLength>$IfUndefined({maxPinLength},NOT_SUPPORTED)<\\/maxPinLength>\\r\\n<cardPresentDetail>$IfUndefined({cardPresentDetail},CARD_PRESENT)<\\/cardPresentDetail>\\r\\n<cardDataInputMode>$IfUndefined({cardDataInputMode},MAGNETIC_STRIPE_READER_INPUT)<\\/cardDataInputMode>\\r\\n<cardholderAuthenticationEntity>$IfUndefined({cardholderAuthenticationEntity},MERCHANT_CARD_ACCEPTOR_SIGNATURE)<\\/cardholderAuthenticationEntity>\\r\\n<cardDataOutputCapability>$IfUndefined({cardDataOutputCapability},NONE)<\\/cardDataOutputCapability>\\r\\n<developerID>000894G003<\\/developerID>\\r\\n<\\/Sale>\",\n\t\t\t\"Uri\":\"https://stagegw.transnox.com/servlets/TransNox_API_Server\"\n\t\t}\n\t}]\n}","options":{"raw":{"language":"json"}}},"url":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON//ProcessCardSwipe"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"db02d3e2-ab29-4eb6-80c7-b78adf96e0c4"},{"name":"ProcessData","id":"86a13feb-1502-4a16-b915-5ad8c0e51bd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"text/xml;charset=UTF-8"},{"key":"SOAPAction","value":"http://tempuri.org/IDecryptAndForward/ProcessData"}],"body":{"mode":"raw","raw":"{\n\t\"AdditionalProcessDataRequestData\":[{\n\t\t\"key\":\"<string>\",\n\t\t\"value\":\"<string>\"\n\t}],\n\t\"Authentication\":{\n\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\"Password\":\"{{Password}}\",\n\t\t\"Username\":\"{{Username}}\"\n\t},\n\t\"CustomerTransactionID\":\"<string>\",\n\t\"ProcessDataInputs\":[{\n\t\t\"AdditionalRequestData\":[{\n\t\t\t\"key\":\"<string>\",\n\t\t\t\"value\":\"<string>\"\n\t\t}],\n\t    \"Authentication\":{\n\t\t    \"CustomerCode\":\"{{CustomerCode}}\",\n\t\t    \"Password\":\"{{Password}}\",\n\t\t    \"Username\":\"{{Username}}\"\n\t    },\n        \"BillingLabel\":\"<string>\",\n\t\t\"CustomerTransactionID\":\"<string>\",\n\t\t\"DataInput\":{\n\t\t\t\"Data\":\"<string>\",\n\t\t\t\"DataFormatType\":<integer>,\n\t\t\t\"EncryptionInfo\":{\n\t\t\t\t\"EncryptionType\":\"<string>\",\n\t\t\t\t\"KSN\":\"<string>\",\n\t\t\t\t\"NumberOfPaddedBytes\":<integer>\n\t\t\t},\n\t\t\t\"IsEncrypted\":<bool>\n\t\t},\n\t\t\"PayloadInfo\":{\n\t\t\t\"AdditionalPayloadInfoData\":[{\n\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\"value\":\"<string>\"\n\t\t\t}],\n\t\t\t\"HTTPInfo\":{\n\t\t\t\t\"AdditionalHTTPInfoData\":[{\n\t\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\t\"value\":\"<string>\"\n\t\t\t\t}],\n\t\t\t\t\"Headers\":[{\n\t\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\t\"value\":\"<string>\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"NetworkProtocolType\":<integer>,\n\t\t\t\"Payload\":\"<string>\",\n\t\t\t\"Uri\":\"<string>\"\n\t\t}\n\t}]\n}"},"url":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON//ProcessData","urlObject":{"path":["ProcessData"],"host":["https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/"],"query":[],"variable":[]}},"response":[{"id":"f7881d82-ce12-4bf5-8915-5bdd5d151d49","name":"ProcessData_Tsys","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"SOAPAction","value":"http://tempuri.org/IDecryptAndForward/ProcessData"}],"body":{"mode":"raw","raw":"{\n\t\"Authentication\":{\n\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\"Password\":\"{{Password}}\",\n\t\t\"Username\":\"{{Username}}\"\n\t},\n\t\"CustomerTransactionID\":\"123\",\n\t\"ProcessDataInputs\":[{\n\t\t\"AdditionalRequestData\":[{\n\t\t\t\"key\":\"\",\n\t\t\t\"value\":\"\"\n\t\t}],\n    \t\"Authentication\":{\n\t    \t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t    \"Password\":\"{{Password}}\",\n\t\t    \"Username\":\"{{Username}}\"\n\t    },\n\t\t\"BillingLabel\":\"234\",\n\t\t\"CustomerTransactionID\":\"1234\",\n\t\t\"DataInput\":{\n\t\t\t\"Data\":\"01D0F98201CCDFDF540A9070040B55901E0001ACDFDF550182DFDF250742353539303145FA8201AA708201A682021800DFDF530100DFDF4D223B343736313030303034303030303031313D3030303030303030303030303030303FDFDF520105F882016EDFDF59820150F87355CE877A6812C1354B296EB64F27CE44EA9790DB6AA77D2E104595F1A8DE78BA3F9D29C10404E4D543FE766D65D635C8A1940B5688EB965F25259C2A37CA00A4FCBBBB50579623ECBFC2A1E9FA45BE2C8B68648935F9B9FC2CB2ECBEAF414F4C71B69113692EF69CA3BEB5F9D59FF5771F39046DFDC04C732DE710609FE60539AF3918C28137F3B1BAFE3104E4006FE581E0A892971998C3105D50A7FBB06A4570E06CE654A9D53A74F7CC328ADD2019D1F10E48941F57D50314DC76106484A479E2B6B27E88EF0F4158E0E04F9E31170951C69B08113AD7212364CAC22A5068621E3C1E97589EF09BD8CB87AB905F9B01273D4866AEDC56AD6FFD830DD0E6EADA158120D846A919EBCCF9D703104EDEEBE0BF4733E638E0D6E92374B832A9FB2B4451C1E827E0E67B53BB45F18FC73B7BDAAB3F8643AF2E12B9A3BF9EFF0DF2D7715A3B942BE9465E4EF8ED1887DFDF560A9070040B55901E0001ACDFDF570180DFDF580104000000000000D053BE0F\",\n\t\t\t\"DataFormatType\":0,\n\t\t\t\"EncryptionInfo\":{\n\t\t\t\t\"EncryptionType\":\"80\",\n\t\t\t\t\"KSN\":\"9070040B55901E0001AC\",\n\t\t\t\t\"NumberOfPaddedBytes\":4\n\t\t\t},\n\t\t\t\"IsEncrypted\":true\n\t\t},\n\t\t\"PayloadInfo\":{\n\t\t\t\"HTTPInfo\":{\n\t\t\t},\n\t\t\t\"NetworkProtocolType\":0,\n\t\t\t\"Payload\":\"<Sale><deviceID>$IfUndefined(88600000004501,{deviceIDProfile})<\\/deviceID><transactionKey>LV96SBCXCT4PQCNHXZ57FHR5VGSXNWJ9<\\/transactionKey><cardDataSource>$IfUndefined({cardDataSource},$Iif($IsEqualStrings($IfUndefined({DFDF52},99),08),NFC,$Iif($IsEqualStrings($IfUndefined({DFDF52},99),06),EMV_CONTACTLESS,EMV)))<\\/cardDataSource><transactionAmount>1.00<\\/transactionAmount><currencyCode>$IfUndefined({currencyCode},USD)<\\/currencyCode><track2Data RemoveCondition=\\\"$IsEqualStrings($IfUndefined({DFDF52},99),08)=='False'\\\">$Substring($Hex2ASCII($IfUndefined({DFDF4C},00000000))00000000000000000000000000000000000000,0,37)<\\/track2Data><emvTags RemoveCondition=\\\"$IsEqualStrings($IfUndefined({DFDF52},99),08)=='True'\\\"><tag>4F$TLVLength(4F){4F}<\\/tag><tag>57$TLVLength(57){57}<\\/tag><tag>5F24$TLVLength(5F24){5F24}<\\/tag><tag>5F2A$TLVLength(5F2A){5F2A}<\\/tag><tag>5F24$TLVLength(5F24){5F24}<\\/tag><tag>5F34$TLVLength(5F34){5F34}<\\/tag><tag>82$TLVLength(82){82}<\\/tag><tag>84$TLVLength(84){84}<\\/tag><tag>91$TLVLength(91){91}<\\/tag><tag>95$TLVLength(95){95}<\\/tag><tag>9A$TLVLength(9A){9A}<\\/tag><tag>9B$TLVLength(9B){9B}<\\/tag><tag>9C$TLVLength(9C){9C}<\\/tag><tag>9F03$TLVLength(9F03){9F03}<\\/tag><tag>9F06$TLVLength(9F06){9F06}<\\/tag><tag>9F08$TLVLength(9F08){9F08}<\\/tag><tag>9F09$TLVLength(9F09){9F09}<\\/tag><tag>9F1A$TLVLength(9F1A){9F1A}<\\/tag><tag>9F1B$TLVLength(9F1B){9F1B}<\\/tag><tag>9F21$TLVLength(9F21){9F21}<\\/tag><tag>9F35$TLVLength(9F35){9F35}<\\/tag><tag>9F39$TLVLength(9F39){9F39}<\\/tag><tag>9F40$TLVLength(9F40){9F40}<\\/tag><tag>9F41$TLVLength(9F41){9F41}<\\/tag><tag>9F530152<\\/tag><tag>9F5B052000000000<\\/tag><tag>9F6E$TLVLength(9F6E){9F6E}<\\/tag><tag>9F1E$TLVLength(9F1E){9F1E}<\\/tag><tag>9F02$TLVLength(9F02){9F02}<\\/tag><tag>9F26$TLVLength(9F26){9F26}<\\/tag><tag>9F27$TLVLength(9F27){9F27}<\\/tag><tag>9F37$TLVLength(9F37){9F37}<\\/tag><tag>9F10$TLVLength(9F10){9F10}<\\/tag><tag>9F33$TLVLength(9F33){9F33}<\\/tag><tag>9F34$TLVLength(9F34){9F34}<\\/tag><tag>9F36$TLVLength(9F36){9F36}<\\/tag><tag>$BuildTLV(DF78,$IfUndefined({9F1E},$IfUndefined({DFDF25},0000000000000000)),0)<\\/tag><tag>$IfUndefined({DF79},DF791A44796E6150726F20454D56204C32204B65726E656C20342E3348)<\\/tag><\\/emvTags><paymentAppVersion RemoveCondition=\\\"$IsEqualStrings($IfUndefined({DFDF52},99),08)=='True'\\\">$IfUndefined({paymentAppVersion},Version2)<\\/paymentAppVersion><terminalCapability>$IfUndefined({terminalCapability},ICC_CHIP_CONTACT_CONTACTLESS)<\\/terminalCapability><terminalOperatingEnvironment>$IfUndefined({terminalOperatingEnvironment},ON_MERCHANT_PREMISES_ATTENDED)<\\/terminalOperatingEnvironment><cardholderAuthenticationMethod>$IfUndefined({cardholderAuthenticationMethod},MANUAL_SIGNATURE)<\\/cardholderAuthenticationMethod><terminalAuthenticationCapability>$IfUndefined({terminalAuthenticationCapability},NO_CAPABILITY)<\\/terminalAuthenticationCapability><terminalOutputCapability>$IfUndefined({terminalOutputCapability},PRINT_ONLY)<\\/terminalOutputCapability><maxPinLength>$IfUndefined({maxPinLength},NOT_SUPPORTED)<\\/maxPinLength><cardholderPresentDetail RemoveCondition=\\\"$IsEqualStrings($IfUndefined({DFDF52},99),08)=='False'\\\">$IfUndefined({cardholderPresentDetail},CARDHOLDER_PRESENT)<\\/cardholderPresentDetail><cardPresentDetail RemoveCondition=\\\"$IsEqualStrings($IfUndefined({DFDF52},99),08)=='False'\\\">$IfUndefined({cardPresentDetail},CONTACTLESS_CHIP_TRANSACTIONS)<\\/cardPresentDetail><cardDataInputMode>$IfUndefined({cardDataInputMode},$Iif($IsEqualStrings($IfUndefined({DFDF52},99),08),PAN_AUTO_ENTRY_CONTACTLESS_MAGNETIC_STRIPE,$Iif($IsEqualStrings($IfUndefined({DFDF52},99),06),PAN_AUTO_ENTRY_CONTACTLESS_CHIP_CARD,ONLINE_CHIP)))<\\/cardDataInputMode><cardholderAuthenticationEntity RemoveCondition=\\\"$IsEqualStrings($IfUndefined({DFDF52},99),08)=='False'\\\">$IfUndefined({cardholderAuthenticationEntity},MERCHANT_CARD_ACCEPTOR_SIGNATURE)<\\/cardholderAuthenticationEntity><developerID>000894G003<\\/developerID><\\/Sale>\",\n\t\t\t\"Uri\":\"https://stagegw.transnox.com/servlets/TransNox_API_Server\"\n\t\t}\n\t}]\n}","options":{"raw":{"language":"json"}}},"url":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON//ProcessData"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"86a13feb-1502-4a16-b915-5ad8c0e51bd5"},{"name":"ProcessToken","id":"32ca0785-d8c7-4ab4-acd0-a14cd3fd508c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"text/xml;charset=UTF-8"},{"key":"SOAPAction","value":"http://tempuri.org/IDecryptAndForward/ProcessToken"}],"body":{"mode":"raw","raw":"{\n\t\"AdditionalProcessTokenRequestData\":[{\n\t\t\"key\":\"<string>\",\n\t\t\"value\":\"<string>\"\n\t}],\n\t\"Authentication\":{\n\t\t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t\"Password\":\"{{Password}}\",\n\t\t\"Username\":\"{{Username}}\"\n\t},\n\t\"CustomerTransactionID\":\"<string>\",\n\t\"ProcessTokenInputs\":[{\n\t\t\"AdditionalRequestData\":[{\n\t\t\t\"key\":\"<string>\",\n\t\t\t\"value\":\"<string>\"\n\t\t}],\n    \t\"Authentication\":{\n\t    \t\"CustomerCode\":\"{{CustomerCode}}\",\n\t\t    \"Password\":\"{{Password}}\",\n\t\t    \"Username\":\"{{Username}}\"\n\t    },\n\t\t\"BillingLabel\":\"<string>\",\n\t\t\"CustomerTransactionID\":\"<string>\",\n\t\t\"OutputPanLast4Format\":\"<string>\",\n\t\t\"PayloadInfo\":{\n\t\t\t\"AdditionalPayloadInfoData\":[{\n\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\"value\":\"<string>\"\n\t\t\t}],\n\t\t\t\"HTTPInfo\":{\n\t\t\t\t\"AdditionalHTTPInfoData\":[{\n\t\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\t\"value\":\"<string>\"\n\t\t\t\t}],\n\t\t\t\t\"Headers\":[{\n\t\t\t\t\t\"key\":\"<string>\",\n\t\t\t\t\t\"value\":\"<string>\"\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"NetworkProtocolType\":<int>,\n\t\t\t\"Payload\":\"<string>\",\n\t\t\t\"Uri\":\"<string>\"\n\t\t},\n\t\t\"Token\":\"<string>\"\n\t}]\n}"},"url":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON//ProcessToken","urlObject":{"path":["ProcessToken"],"host":["https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/"],"query":[],"variable":[]}},"response":[{"id":"3304d9cf-e0ff-4f4c-a540-c0fe6bf3a808","name":"ProcessToken_FDC","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"SOAPAction","value":"http://tempuri.org/IDecryptAndForward/ProcessToken"}],"body":{"mode":"raw","raw":"{\n  \"Authentication\": {\n    \"CustomerCode\": \"{{CustomerCode}}\",\n    \"Password\": \"{{Password}}\",\n    \"Username\": \"{{Username}}\"\n  },\n  \"CustomerTransactionID\": \"123\",\n  \"ProcessTokenInputs\": [\n    {\n      \"AdditionalRequestData\": [\n        {\n          \"key\": \"InputVariables\",\n          \"value\": \"<InputVariables><Variable><Name>STAN</Name><Value>000277</Value></Variable></InputVariables>\"\n        }\n      ],\n      \"Authentication\": {\n        \"CustomerCode\": \"{{CustomerCode}}\",\n        \"Password\": \"{{Password}}\",\n        \"Username\": \"{{Username}}\"\n      },\n      \"BillingLabel\": \"BillingLabel\",\n      \"CustomerTransactionID\": \"CustomerTransactionID\",\n      \"PayloadInfo\": {\n        \"HTTPInfo\": {},\n        \"NetworkProtocolType\": 0,\n        \"Payload\": \"<Request Version=\\\"3\\\" ClientTimeout=\\\"30\\\"><ReqClientID><DID>00013130461722837092</DID><App>RAPIDCONNECTSRS</App><Auth>10001RCTST0000006242|00000001</Auth><ClientRef>010001VRMA008</ClientRef></ReqClientID><Transaction><ServiceID>160</ServiceID><Payload Encoding=\\\"cdata\\\"><![CDATA[<?xml version=\\\"1.0\\\"encoding=\\\"utf-8\\\"?><GMF  xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns=\\\"com/firstdata/Merchant/gmfV3.10\\\"><CreditRequest><AddtlAmtGrp><AddAmt>{AddAmt}</AddAmt><AddAmtCrncy>{AddAmtCrncy}</AddAmtCrncy><AddAmtType>{AddAmtType}</AddAmtType><AddAmtAcctType>{AddAmtAcctType}</AddAmtAcctType><HoldInfo>{HoldInfo}</HoldInfo><PartAuthrztnApprvlCapablt>PartAuthrztnApprvlCapablt}</PartAuthrztnApprvlCapablt></AddtlAmtGrp><CommonGrp><PymtType>Credit</PymtType><TxnType>Refund</TxnType><LocalDateTime>$DateTimeNow(yyyyMMddHHmmss,0)</LocalDateTime><TrnmsnDateTime>$DateTimeNow(yyyyMMddHHmmss,1)</TrnmsnDateTime><STAN>{STAN}</STAN><RefNum>000000000277</RefNum><OrderNum>00000277</OrderNum>\\t<TPPID>RMA008</TPPID><TermID>00000001</TermID><MerchID>RCTST0000006242</MerchID><AltMerchID>AltMerchID}</AltMerchID><MerchCatCode>{MerchCatCode}</MerchCatCode><POSEntryMode>901</POSEntryMode><POSCondCode>00</POSCondCode>\\t<TermCatCode>01</TermCatCode><TermEntryCapablt>04</TermEntryCapablt><TxnAmt>0000100</TxnAmt><TxnCrncy>840</TxnCrncy><TermLocInd>0</TermLocInd><CardCaptCap>1</CardCaptCap><GroupID>10001</GroupID></CommonGrp><CardGrp>\\t<AcctNum>$Replace({5A},F,)</AcctNum><CardActivDate>CardActivDate}</CardActivDate><CardExpiryDate \\r\\n RemoveCondition=\\\"CCTrack2}!='\\\">20$Substring({5F24},0,4)</CardExpiryDate><Track2Data>{CCTrack2}</Track2Data><CardType>$Iif($IsEqualStrings($Substring({5A},0,1),4),Visa,$Iif($IsEqualStrings($Substring({5A},0,2),51),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),52),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),53),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),54),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),55),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),34),Amex,$Iif($IsEqualStrings($Substring({5A},0,2),37),Amex,$Iif($IsEqualStrings($Substring({5A},0,3),622),Discover,$Iif($IsEqualStrings($Substring({5A},0,4),6011),Discover,$Iif($IsEqualStrings($Substring({5A},0,3),644),Discover,$Iif($IsEqualStrings($Substring({5A},0,3),645),Discover,$Iif($IsEqualStrings($Substring({5A},0,3),646),Discover,$Iif($IsEqualStrings($Substring({5A},0,3),647),Discover,$Iif($IsEqualStrings($Substring({5A},0,3),648),Discover,$Iif($IsEqualStrings($Substring({5A},0,3),649),Discover,$Iif($IsEqualStrings($Substring({5A},0,2),65),Discover,$Iif($IsEqualStrings($Substring({5A},0,2),22),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),23),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),24),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),25),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),26),MasterCard,$Iif($IsEqualStrings($Substring({5A},0,2),27),MasterCard,Unknown)))))))))))))))))))))))</CardType><AVSResultCode>AVSResultCode}</AVSResultCode><CCVInd>{CCVInd}</CCVInd><CCVData RemoveCondition=\\\"{CCTrack2}!='\\\">{CVV}</CCVData><CCVResultCode>{CCVResultCode}</CCVResultCode>\\t</CardGrp><AmexGrp RemoveCondition=\\\"{CCardType}!='Amex'\\\">\\t<AmExPOSData>{AmExPOSData}</AmExPOSData><AmExTranID>{AmExTranID}</AmExTranID></AmexGrp><DSGrp RemoveCondition=\\\"{CCardType}!='Discover'\\\"><DiscProcCode>{DiscProcCode}</DiscProcCode><DiscPOSEntry>{DiscPOSEntry}</DiscPOSEntry><DiscRespCode>{DiscRespCode}</DiscRespCode><DiscPOSData>{DiscPOSData}</DiscPOSData><DiscTransQualifier>{DiscTransQualifier}</DiscTransQualifier><DiscNRID>{DiscNRID}</DiscNRID></DSGrp><MCGrp RemoveCondition=\\\"{CCardType}!='MasterCard'\\\"><BanknetData>{BanknetData}</BanknetData><MCMSDI>{MCMSDI}</MCMSDI><CCVErrorCode>{CCVErrorCode}</CCVErrorCode><POSEntryModeChg>{POSEntryModeChg}</POSEntryModeChg><TranEditErrCode>{TranEditErrCode}</TranEditErrCode></MCGrp><VisaGrp RemoveCondition=\\\"{CCardType}!='Visa'\\\"><ACI>{ACI}</ACI><MrktSpecificDataInd>{MrktSpecificDataInd}</MrktSpecificDataInd><ExistingDebtInd>{ExistingDebtInd}</ExistingDebtInd><CardLevelResult>{CardLevelResult}</CardLevelResult><SourceReasonCode>{SourceReasonCode}</SourceReasonCode><TransID>{TransID}</TransID><VisaBID>{VisaBID}</VisaBID><VisaAUAR>{VisaAUAR}</VisaAUAR><TaxAmtCapablt>{TaxAmtCapablt}</TaxAmtCapablt></VisaGrp><CustInfoGrp><AVSBillingAddr>{AVSBillingAddr}</AVSBillingAddr></CustInfoGrp><OrigAuthGrp><OrigAuthID>{ReferenceAuthCode}</OrigAuthID><OrigLocalDateTime>{OrigLocalDateTime}</OrigLocalDateTime><OrigTranDateTime>{OrigTranDateTime}</OrigTranDateTime><OrigSTAN>{ReferenceTransactionID}</OrigSTAN><OrigRespCode>{OrigRespCode}</OrigRespCode></OrigAuthGrp></CreditRequest></GMF>]]></Payload></Transaction></Request>\",\n        \"Uri\": \"https://stg.dw.us.fdcnet.biz/rc\"\n      },\n      \"Token\": \"FA820138DFE0012430626661616462332D326530322D346438362D623862332D653430366262303864336431DFE00205312E352E30DFE0041B323032392D31322D31325430303A30303A30302E30303030303030DFE0050454657374DFE0061C323032352D30322D31335430373A31323A34392E383038313939365ADFE0070C4F534D414754454B4D505047DFE0080731303037383131DFE0092432343363653136652D393835302D346335622D613135612D376566653533643534386266DFE01130B2DAFF193DF8703E42EE4E2BBBDB4CE5F096A727508EFE35CCCD38F93DC26C8DAB12E938C0FFE8C469A70A6AEA805205DFE0120A9010010000000000BD39DFE014023437DFE02108446166546F6B656EDFE0250133DFE00320C471309433576F0CB36AC2AB524378D08E0CAFCBA559C900AAEA4A0D8C86DB47\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON//ProcessToken"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"32ca0785-d8c7-4ab4-acd0-a14cd3fd508c"}],"event":[{"listen":"prerequest","script":{"id":"00565de3-6146-4737-8a60-58d935c0abb9","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"a79cfa47-95aa-422b-8e29-d905b6233ac6","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://svc1.magensa.net/Pilot-DAFV4/Service.svc/JSON/","type":"string"}]}