<?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: How do I set the invoiceNumber in the .NET SDK using VB.nET in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-set-the-invoiceNumber-in-the-NET-SDK-using-VB-nET/m-p/74693#M46473</link>
    <description>&lt;P&gt;Ok I figured it out.&amp;nbsp; This has to be done with the orderType class.&amp;nbsp; This goes BEFORE the transactionRequest class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Set the invoice number and description&lt;BR /&gt;Dim orderType As New orderType With {&lt;BR /&gt;.invoiceNumber = adnumber.ToString(),&lt;BR /&gt;.description = Left(txtAdDescription.Text, 255)&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 00:09:35 GMT</pubDate>
    <dc:creator>alambert</dc:creator>
    <dc:date>2021-01-15T00:09:35Z</dc:date>
    <item>
      <title>How do I set the invoiceNumber in the .NET SDK using VB.nET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-set-the-invoiceNumber-in-the-NET-SDK-using-VB-nET/m-p/74690#M46470</link>
      <description>&lt;P&gt;I have been trying to wrap my brain around the invoiceNumber field.&amp;nbsp; It's blank in my transaction e-mail and I want to be able to set the invoice number in the VB.NET SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have found so far is that invoiceNumber is a part of the transaction request under the order property.&amp;nbsp; However when I try to set it I get errors.&amp;nbsp; I tried this first:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim transactionRequest As New transactionRequestType With&lt;BR /&gt;{&lt;BR /&gt;.transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),&lt;BR /&gt;.amount = adprice,&lt;BR /&gt;.payment = paymentType,&lt;BR /&gt;.billTo = billingAddress,&lt;BR /&gt;.lineItems = adlineItems,&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;.order.invoiceNumber = adnumber&lt;/FONT&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That gave me an error that invoiceNumber is not a part of transactionRequestType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this method as well&lt;/P&gt;&lt;P&gt;transactionRequest.order.invoiceNumber = adnumber and that gives me a null refrence object error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I supposed to do to send the invoiceNumber.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything else in my code works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 19:25:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-set-the-invoiceNumber-in-the-NET-SDK-using-VB-nET/m-p/74690#M46470</guid>
      <dc:creator>alambert</dc:creator>
      <dc:date>2021-01-14T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the invoiceNumber in the .NET SDK using VB.nET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-set-the-invoiceNumber-in-the-NET-SDK-using-VB-nET/m-p/74693#M46473</link>
      <description>&lt;P&gt;Ok I figured it out.&amp;nbsp; This has to be done with the orderType class.&amp;nbsp; This goes BEFORE the transactionRequest class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Set the invoice number and description&lt;BR /&gt;Dim orderType As New orderType With {&lt;BR /&gt;.invoiceNumber = adnumber.ToString(),&lt;BR /&gt;.description = Left(txtAdDescription.Text, 255)&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 00:09:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-set-the-invoiceNumber-in-the-NET-SDK-using-VB-nET/m-p/74693#M46473</guid>
      <dc:creator>alambert</dc:creator>
      <dc:date>2021-01-15T00:09:35Z</dc:date>
    </item>
  </channel>
</rss>

