public void Init()
        {
#if DEBUG
            _gateway = new PlatformGateway(PlatformEnvironment.DEVELOPMENT, Constants.PUBLIC_KEY, Constants.PRIVATE_KEY);
#else
            _gateway = new PlatformGateway(PlatformEnvironment.QA, Constants.PUBLIC_KEY, Constants.PRIVATE_KEY);
#endif
        }
        public void Init()
        {
#if DEBUG
            _gateway = new PlatformGateway(PlatformEnvironment.DEVELOPMENT, Constants.PUBLIC_KEY, Constants.PRIVATE_KEY);
#else
            _gateway = new PlatformGateway(PlatformEnvironment.QA, Constants.PUBLIC_KEY, Constants.PRIVATE_KEY);
#endif
            _testsHelper = new TestsHelper(_gateway);
            _testData = _testsHelper.PrepareSettingsTestData();
        }
        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            base.Initialize(requestContext);

            //Instantiate DynabicPlatform and DynabicBilling Gateways with the provided configuration.
            //Modify these configuration variables in Config class.
            _dynabicPlatformGateway = new PlatformGateway(
                Config.PlatformEnvironment,
                Config.PublicKey,
                Config.PrivateKey);

            _dynabicBillingGateway = new BillingGateway(
                Config.BillingEnvironment,
                Config.PublicKey,
                Config.PrivateKey);
        }
Beispiel #4
0
 public TestsHelper(PlatformGateway gateway)
 {
     _gateway = gateway;
     CleanupTestData();
 }