1- using System . Collections . Generic ;
2-
1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . IO ;
4+
35namespace Cybersource_rest_samples_dotnet
46{
57 public class Configuration
@@ -13,7 +15,7 @@ public Dictionary<string, string> GetConfiguration()
1315 _configurationDictionary . Add ( "merchantID" , "testrest" ) ;
1416 _configurationDictionary . Add ( "merchantsecretKey" , "yBJxy6LjM2TmcPGu+GaJrHtkke25fPpUX+UY6/L/1tE=" ) ;
1517 _configurationDictionary . Add ( "merchantKeyId" , "08c94330-f618-42a3-b09d-e1e43be5efda" ) ;
16- _configurationDictionary . Add ( "keysDirectory" , " Source\\ Resource") ;
18+ _configurationDictionary . Add ( "keysDirectory" , Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , ".. \\ .. \\ .. \\ Source\\ Resource") ) ;
1719 _configurationDictionary . Add ( "keyFilename" , "testrest" ) ;
1820 _configurationDictionary . Add ( "runEnvironment" , "apitest.cybersource.com" ) ;
1921 _configurationDictionary . Add ( "keyAlias" , "testrest" ) ;
@@ -45,7 +47,7 @@ public Dictionary<string, string> GetAlternativeConfiguration()
4547 _configurationDictionary . Add ( "merchantID" , "testrest_cpctv" ) ;
4648 _configurationDictionary . Add ( "merchantsecretKey" , "JXm4dqKYIxWofM1TIbtYY9HuYo7Cg1HPHxn29f6waRo=" ) ;
4749 _configurationDictionary . Add ( "merchantKeyId" , "e547c3d3-16e4-444c-9313-2a08784b906a" ) ;
48- _configurationDictionary . Add ( "keysDirectory" , " Resource") ;
50+ _configurationDictionary . Add ( "keysDirectory" , Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , ".. \\ .. \\ .. \\ Source \\ Resource") ) ;
4951 _configurationDictionary . Add ( "keyFilename" , "testrest_cpctv" ) ;
5052 _configurationDictionary . Add ( "runEnvironment" , "apitest.cybersource.com" ) ;
5153 _configurationDictionary . Add ( "keyAlias" , "testrest_cpctv" ) ;
0 commit comments