<?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 How to pass invoiceNumber in Json format using Node js in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-pass-invoiceNumber-in-Json-format-using-Node-js/m-p/72804#M45001</link>
    <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to pass my custom order number in invoiceNumber in Json token, I am using Node js and&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;createTransactionRequest Method, but I can't see order object in Json request format&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card&lt;/A&gt;&amp;nbsp;, I have tried to add order object same as XML format but it's not working for me. Below is my code.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;    "createTransactionRequest": {
      "merchantAuthentication": {
        "name": apiLoginID,
        "transactionKey": transactionKey
      },
      "refId": "123456",
      "transactionRequest": {
        "transactionType": "authCaptureTransaction",
        "amount": data.amount,
        "payment": {
          "opaqueData": data.opaqueData
        },
         "order": {
             invoiceNumber: "INV-12345",         
            "description": "Product description",
          },
        "profile": {createProfile: true},
        "customer": {
          type: 'individual',
          id: order.GP_customer,
          "email" : order.email
        },
        "billTo": {
            "firstName": order.billing_first_name,
            "lastName": order.billing_last_name,
            "company": order.billing_company,
            "address": order.billing_street + order.billing_street_2,
            "city": order.billing_city,
            "state": order.billing_state,
            "zip": order.billing_zip,
            "country": order.billing_country
        }
      }
    }&lt;/PRE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please help me? how to pass invoiceNumber in json format on charge credit card Json Request.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 05:07:22 GMT</pubDate>
    <dc:creator>Jsgreengalaxy</dc:creator>
    <dc:date>2020-08-10T05:07:22Z</dc:date>
    <item>
      <title>How to pass invoiceNumber in Json format using Node js</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-pass-invoiceNumber-in-Json-format-using-Node-js/m-p/72804#M45001</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to pass my custom order number in invoiceNumber in Json token, I am using Node js and&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;createTransactionRequest Method, but I can't see order object in Json request format&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card&lt;/A&gt;&amp;nbsp;, I have tried to add order object same as XML format but it's not working for me. Below is my code.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;    "createTransactionRequest": {
      "merchantAuthentication": {
        "name": apiLoginID,
        "transactionKey": transactionKey
      },
      "refId": "123456",
      "transactionRequest": {
        "transactionType": "authCaptureTransaction",
        "amount": data.amount,
        "payment": {
          "opaqueData": data.opaqueData
        },
         "order": {
             invoiceNumber: "INV-12345",         
            "description": "Product description",
          },
        "profile": {createProfile: true},
        "customer": {
          type: 'individual',
          id: order.GP_customer,
          "email" : order.email
        },
        "billTo": {
            "firstName": order.billing_first_name,
            "lastName": order.billing_last_name,
            "company": order.billing_company,
            "address": order.billing_street + order.billing_street_2,
            "city": order.billing_city,
            "state": order.billing_state,
            "zip": order.billing_zip,
            "country": order.billing_country
        }
      }
    }&lt;/PRE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please help me? how to pass invoiceNumber in json format on charge credit card Json Request.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 05:07:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-pass-invoiceNumber-in-Json-format-using-Node-js/m-p/72804#M45001</guid>
      <dc:creator>Jsgreengalaxy</dc:creator>
      <dc:date>2020-08-10T05:07:22Z</dc:date>
    </item>
  </channel>
</rss>

