<?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: Examples of multiple functions on the same page in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Examples-of-multiple-functions-on-the-same-page/m-p/61186#M35676</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ApiOperationBase is the base class used for all API calls and its has 2 static properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;RunEnvironment &amp;amp; &lt;STRONG&gt;&lt;EM&gt;MerchantAuthentication&amp;nbsp;which can be set only once and need not be in each function.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this help !&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 13:51:09 GMT</pubDate>
    <dc:creator>kikmak42</dc:creator>
    <dc:date>2018-01-11T13:51:09Z</dc:date>
    <item>
      <title>Examples of multiple functions on the same page</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Examples-of-multiple-functions-on-the-same-page/m-p/61158#M35649</link>
      <description>&lt;P&gt;I have one C# code page with all of my Authorize.Net functions on it.&amp;nbsp; In each function i have to have&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
            ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()
            {
                name            = ApiLoginID,
                ItemElementName = ItemChoiceType.transactionKey,
                Item            = ApiTransactionKey,
            };&lt;/PRE&gt;&lt;P&gt;Is there some way i can add this to the top of the page, in private variables?&amp;nbsp;&amp;nbsp;Is it possible to pass in the ApiOperationBase information, so i dont have to repeat the code in every function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:19:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Examples-of-multiple-functions-on-the-same-page/m-p/61158#M35649</guid>
      <dc:creator>mts176</dc:creator>
      <dc:date>2018-01-10T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of multiple functions on the same page</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Examples-of-multiple-functions-on-the-same-page/m-p/61186#M35676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ApiOperationBase is the base class used for all API calls and its has 2 static properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;RunEnvironment &amp;amp; &lt;STRONG&gt;&lt;EM&gt;MerchantAuthentication&amp;nbsp;which can be set only once and need not be in each function.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this help !&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 13:51:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Examples-of-multiple-functions-on-the-same-page/m-p/61186#M35676</guid>
      <dc:creator>kikmak42</dc:creator>
      <dc:date>2018-01-11T13:51:09Z</dc:date>
    </item>
  </channel>
</rss>

