public void setup()
        {
            ApiConfig.SetDebug(true);
            ApiConfig.SetSandbox(true);
            var path = MasterCard.Core.Util.GetCurrenyAssemblyPath();

            var authentication = new OAuthAuthentication("L5BsiPgaF-O3qA36znUATgQXwJB6MRoMSdhjd7wt50c97279!50596e52466e3966546d434b7354584c4975693238513d3d", path + "\\Test\\mcapi_sandbox_key.p12", "test", "password");

            ApiConfig.SetAuthentication(authentication);

            var interceptor = new MDESCryptography(path + "\\Test\\mastercard_public.crt", path + "\\Test\\mastercard_private.pem");

            ApiConfig.AddCryptographyInterceptor(interceptor);
        }
Ejemplo n.º 2
0
        public void setup()
        {
            ApiConfig.setSandbox(true);
            ApiConfig.setDebug(true);


            var path = MasterCard.Core.Util.GetCurrenyAssemblyPath();


            var authentication = new OAuthAuthentication("gVaoFbo86jmTfOB4NUyGKaAchVEU8ZVPalHQRLTxeaf750b6!414b543630362f426b4f6636415a5973656c33735661383d", path + "\\Test\\prod_key.p12", "alias", "password");

            ApiConfig.setAuthentication(authentication);

            String mastercardPublic  = path + "\\Test\\mastercard_public.crt";
            String mastercardPrivate = path + "\\Test\\mastercard_private.pem";
            var    interceptor       = new MDESCryptography(mastercardPublic, mastercardPrivate);

            ApiConfig.AddCryptographyInterceptor(interceptor);
        }