<?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 A Required Key Missing in the Configuration Dictionary Object Passed to the instance of MerchantConf in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/A-Required-Key-Missing-in-the-Configuration-Dictionary-Object/m-p/84984#M606</link>
    <description>&lt;P&gt;Hello. I am taking the first steps to integrate CyberSource into our internet shop application. I am using the C# API as pulled from github. When calling&lt;/P&gt;&lt;P&gt;var configDictionary = new CyberSourceConfiguration(Configuration).GetConfiguration();&lt;BR /&gt;var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary);&lt;BR /&gt;var apiInstance = new PaymentsApi(clientConfig);&lt;BR /&gt;PtsV2PaymentsPost201Response result = apiInstance.CreatePayment(requestObj);&lt;/P&gt;&lt;P&gt;I am getting the error message "A Required Key Missing in the Configuration Dictionary Object Passed to the instance of MerchantConfig Object". The error message does not give me any indication of *what* key is missing.&lt;/P&gt;&lt;P&gt;The GetConfiguration() function is copied from the Sample Code available on github, with our values substituted in for merchantId, merchantsecretKey, and merchantKeyId:&lt;/P&gt;&lt;P&gt;_configurationDictionary.Add("authenticationType", "HTTP_SIGNATURE");&lt;BR /&gt;_configurationDictionary.Add("merchantID", OUR_MERCH_ID);&lt;BR /&gt;_configurationDictionary.Add("merchantsecretKey", OUR_SECRET_KEY);&lt;BR /&gt;_configurationDictionary.Add("merchantKeyId", OUR_PUBLIC_KEY);&lt;BR /&gt;_configurationDictionary.Add("keysDirectory", Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..\\..\\..\\Source\\Resource"));&lt;BR /&gt;_configurationDictionary.Add("keyFilename", "EIS_Cybersource");&lt;BR /&gt;_configurationDictionary.Add("runEnvironment", _shopConfig.ReadBoolean("CYBERSOURCE_USE_SANDBOX", true) ? "apitest.cybersource.com" : "api.cybersource.com");&lt;BR /&gt;_configurationDictionary.Add("keyAlias", "EIS_Cybersource");&lt;BR /&gt;_configurationDictionary.Add("keyPass", "EIS_Cybersource");&lt;BR /&gt;_configurationDictionary.Add("timeout", "300000");&lt;BR /&gt;&lt;BR /&gt;// Configs related to meta key&lt;BR /&gt;_configurationDictionary.Add("portfolioID", string.Empty);&lt;BR /&gt;_configurationDictionary.Add("useMetaKey", "false");&lt;BR /&gt;&lt;BR /&gt;// Configs related to OAuth&lt;BR /&gt;_configurationDictionary.Add("enableClientCert", "false");&lt;BR /&gt;_configurationDictionary.Add("clientCertDirectory", "Resource");&lt;BR /&gt;_configurationDictionary.Add("clientCertFile", "");&lt;BR /&gt;_configurationDictionary.Add("clientCertPassword", "");&lt;BR /&gt;_configurationDictionary.Add("clientId", "");&lt;BR /&gt;_configurationDictionary.Add("clientSecret", "");&lt;/P&gt;&lt;P&gt;How can I determine *what* key is missing from this configuration dictionary? I am not able to find any documentation on the configuration on the CyberSource website, beyond links to the Sample Code on github.&lt;/P&gt;&lt;P&gt;Thank you for your time&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 16:21:28 GMT</pubDate>
    <dc:creator>dtp_paul</dc:creator>
    <dc:date>2022-11-21T16:21:28Z</dc:date>
    <item>
      <title>A Required Key Missing in the Configuration Dictionary Object Passed to the instance of MerchantConf</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/A-Required-Key-Missing-in-the-Configuration-Dictionary-Object/m-p/84984#M606</link>
      <description>&lt;P&gt;Hello. I am taking the first steps to integrate CyberSource into our internet shop application. I am using the C# API as pulled from github. When calling&lt;/P&gt;&lt;P&gt;var configDictionary = new CyberSourceConfiguration(Configuration).GetConfiguration();&lt;BR /&gt;var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary);&lt;BR /&gt;var apiInstance = new PaymentsApi(clientConfig);&lt;BR /&gt;PtsV2PaymentsPost201Response result = apiInstance.CreatePayment(requestObj);&lt;/P&gt;&lt;P&gt;I am getting the error message "A Required Key Missing in the Configuration Dictionary Object Passed to the instance of MerchantConfig Object". The error message does not give me any indication of *what* key is missing.&lt;/P&gt;&lt;P&gt;The GetConfiguration() function is copied from the Sample Code available on github, with our values substituted in for merchantId, merchantsecretKey, and merchantKeyId:&lt;/P&gt;&lt;P&gt;_configurationDictionary.Add("authenticationType", "HTTP_SIGNATURE");&lt;BR /&gt;_configurationDictionary.Add("merchantID", OUR_MERCH_ID);&lt;BR /&gt;_configurationDictionary.Add("merchantsecretKey", OUR_SECRET_KEY);&lt;BR /&gt;_configurationDictionary.Add("merchantKeyId", OUR_PUBLIC_KEY);&lt;BR /&gt;_configurationDictionary.Add("keysDirectory", Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..\\..\\..\\Source\\Resource"));&lt;BR /&gt;_configurationDictionary.Add("keyFilename", "EIS_Cybersource");&lt;BR /&gt;_configurationDictionary.Add("runEnvironment", _shopConfig.ReadBoolean("CYBERSOURCE_USE_SANDBOX", true) ? "apitest.cybersource.com" : "api.cybersource.com");&lt;BR /&gt;_configurationDictionary.Add("keyAlias", "EIS_Cybersource");&lt;BR /&gt;_configurationDictionary.Add("keyPass", "EIS_Cybersource");&lt;BR /&gt;_configurationDictionary.Add("timeout", "300000");&lt;BR /&gt;&lt;BR /&gt;// Configs related to meta key&lt;BR /&gt;_configurationDictionary.Add("portfolioID", string.Empty);&lt;BR /&gt;_configurationDictionary.Add("useMetaKey", "false");&lt;BR /&gt;&lt;BR /&gt;// Configs related to OAuth&lt;BR /&gt;_configurationDictionary.Add("enableClientCert", "false");&lt;BR /&gt;_configurationDictionary.Add("clientCertDirectory", "Resource");&lt;BR /&gt;_configurationDictionary.Add("clientCertFile", "");&lt;BR /&gt;_configurationDictionary.Add("clientCertPassword", "");&lt;BR /&gt;_configurationDictionary.Add("clientId", "");&lt;BR /&gt;_configurationDictionary.Add("clientSecret", "");&lt;/P&gt;&lt;P&gt;How can I determine *what* key is missing from this configuration dictionary? I am not able to find any documentation on the configuration on the CyberSource website, beyond links to the Sample Code on github.&lt;/P&gt;&lt;P&gt;Thank you for your time&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 16:21:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/A-Required-Key-Missing-in-the-Configuration-Dictionary-Object/m-p/84984#M606</guid>
      <dc:creator>dtp_paul</dc:creator>
      <dc:date>2022-11-21T16:21:28Z</dc:date>
    </item>
  </channel>
</rss>

