<?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 Re: where to add the  retail element in json request  for card present transactions in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75489#M47075</link>
    <description>&lt;P&gt;For those wondering how I came up with the track data... I did it with help from this site:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://neapay.com/online-tools/card-track1-track2-generator.html" target="_blank"&gt;https://neapay.com/online-tools/card-track1-track2-generator.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 15:00:48 GMT</pubDate>
    <dc:creator>simplytrue</dc:creator>
    <dc:date>2021-03-26T15:00:48Z</dc:date>
    <item>
      <title>where to add the  retail element in json request  for card present transactions</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75480#M47067</link>
      <description>&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "8Mfn3yN5r",
            "transactionKey": "8738EskJb4X83k36"
        },
        "refId": "123456",
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": "5",
               "payment": {
                "trackData": {
                    "track2": "5301250070000191=08051010912345678901"
                }
              },

            "lineItems": {
                "lineItem": {
                    "itemId": "1",
                    "name": "vase",
                    "description": "Cannes logo",
                    "quantity": "18",
                    "unitPrice": "45.00"
                }
            },
            "tax": {
                "amount": "4.26",
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "duty": {
                "amount": "8.55",
                "name": "duty name",
                "description": "duty description"
            },
            "shipping": {
                "amount": "4.26",
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "poNumber": "456654",
            "customer": {
                "id": "99999456654"
            },
            "billTo": {
                "firstName": "Ellen",
                "lastName": "Johnson",
                "company": "Souveniropolis",
                "address": "14 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            },
            "shipTo": {
                "firstName": "China",
                "lastName": "Bayles",
                "company": "Thyme for Tea",
                "address": "12 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            },
            "customerIP": "192.168.1.1",
            "transactionSettings": {
                "setting": {
                    "settingName": "testRequest",
                    "settingValue": "false"
                }
            },





            "userFields": {
                "userField": [
                    {
                        "name": "MerchantDefinedFieldName1",
                        "value": "MerchantDefinedFieldValue1"
                    },
                    {
                        "name": "favorite_color",
                        "value": "blue"
                    }
                ]
            },



			"processingOptions": {
             "isSubsequentAuth": "true"
            },



            "subsequentAuthInformation": {
             "originalNetworkTransId": "123456789NNNH",
             "originalAuthAmount": "45.00",
             "reason": "resubmission"         
            },	
            


            "authorizationIndicatorType": {
            "authorizationIndicator": "final"
          }

        }

    }
}




&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;													
{
    "transactionResponse": {
        "responseCode": "3",
        "authCode": "",
        "avsResultCode": "P",
        "cvvResultCode": "",
        "cavvResultCode": "",
        "transId": "0",
        "refTransID": "",
        "transHash": "",
        "testRequest": "0",
        "accountNumber": "",
        "accountType": "",
        "errors": [
            {
                "errorCode": "85",
                "errorText": "The market type is invalid"
            }
        ],
        "userFields": [
            {
                "name": "MerchantDefinedFieldName1",
                "value": "MerchantDefinedFieldValue1"
            },
            {
                "name": "favorite_color",
                "value": "blue"
            }
        ],
        "transHashSha2": "",
        "SupplementalDataQualificationIndicator": 3
    },
    "refId": "123456",
    "messages": {
        "resultCode": "Error",
        "message": [
            {
                "code": "E00027",
                "text": "The transaction was unsuccessful."
            }
        ]
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read in this forum that I need to add the retail element.&amp;nbsp; However, after trying I cannot understand where it goes.&amp;nbsp; Thank you for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 04:44:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75480#M47067</guid>
      <dc:creator>simplytrue</dc:creator>
      <dc:date>2021-03-26T04:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: where to add the  retail element in json request  for card present transactions</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75488#M47074</link>
      <description>&lt;P&gt;Through trial and error I found the right place.&amp;nbsp; For others here is the code that works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"createTransactionRequest": {
        "merchantAuthentication": {
            "name": "8Mfn3yN5r",
            "transactionKey": "8738EskJb4X83k36"
        },
        "refId": "123456",
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": "5",
               "payment": {
                "trackData": {
                    "track2": "4497844492644078=2401123123400001230"
                }
              },

            "lineItems": {
                "lineItem": {
                    "itemId": "1",
                    "name": "vase",
                    "description": "Cannes logo",
                    "quantity": "18",
                    "unitPrice": "45.00"
                }
            },
            "tax": {
                "amount": "4.26",
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "duty": {
                "amount": "8.55",
                "name": "duty name",
                "description": "duty description"
            },
            "shipping": {
                "amount": "4.26",
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "poNumber": "456654",
            "customer": {
                "id": "99999456654"
            },
            "billTo": {
                "firstName": "Ellen",
                "lastName": "Johnson",
                "company": "Souveniropolis",
                "address": "14 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            },
            "shipTo": {
                "firstName": "China",
                "lastName": "Bayles",
                "company": "Thyme for Tea",
                "address": "12 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            },
            "customerIP": "192.168.1.1",

            "retail": {
                "marketType": 2,
                "deviceType": 3
            },

            "transactionSettings": {
                "setting": {
                    "settingName": "testRequest",
                    "settingValue": "false"
                }
            },

            "userFields": {
                "userField": [
                    {
                        "name": "MerchantDefinedFieldName1",
                        "value": "MerchantDefinedFieldValue1"
                    },
                    {
                        "name": "favorite_color",
                        "value": "blue"
                    }
                ]
            },

			"processingOptions": {
             "isSubsequentAuth": "true"
            },

            "subsequentAuthInformation": {
             "originalNetworkTransId": "123456789NNNH",
             "originalAuthAmount": "45.00",
             "reason": "resubmission"         
            },	

            "authorizationIndicatorType": {
            "authorizationIndicator": "final"
          }

        }

    }
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:58:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75488#M47074</guid>
      <dc:creator>simplytrue</dc:creator>
      <dc:date>2021-03-26T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: where to add the  retail element in json request  for card present transactions</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75489#M47075</link>
      <description>&lt;P&gt;For those wondering how I came up with the track data... I did it with help from this site:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://neapay.com/online-tools/card-track1-track2-generator.html" target="_blank"&gt;https://neapay.com/online-tools/card-track1-track2-generator.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:00:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/where-to-add-the-retail-element-in-json-request-for-card-present/m-p/75489#M47075</guid>
      <dc:creator>simplytrue</dc:creator>
      <dc:date>2021-03-26T15:00:48Z</dc:date>
    </item>
  </channel>
</rss>

