예제 #1
0
        public OpenpayAPI( string api_key, string merchant_id,bool production = false)
        {
            this.httpClient = new OpenpayHttpClient(api_key, merchant_id, production);
            CustomerService = new CustomerService(this.httpClient);
            CardService = new CardService(this.httpClient);
            BankAccountService = new BankAccountService(this.httpClient);
            ChargeService = new ChargeService(this.httpClient);
            PayoutService = new PayoutService(this.httpClient);
            TransferService = new TransferService(this.httpClient);
            FeeService = new FeeService(this.httpClient);
            PlanService = new PlanService(this.httpClient);
            SubscriptionService = new SubscriptionService(this.httpClient);
			OpenpayFeesService = new OpenpayFeesService(this.httpClient);
			WebhooksService = new WebhookService (this.httpClient);
        }
예제 #2
0
 public OpenpayAPI(string api_key, string merchant_id, bool production = false)
 {
     this.httpClient     = new OpenpayHttpClient(api_key, merchant_id, production);
     CustomerService     = new CustomerService(this.httpClient);
     CardService         = new CardService(this.httpClient);
     BankAccountService  = new BankAccountService(this.httpClient);
     ChargeService       = new ChargeService(this.httpClient);
     PayoutService       = new PayoutService(this.httpClient);
     TransferService     = new TransferService(this.httpClient);
     FeeService          = new FeeService(this.httpClient);
     PlanService         = new PlanService(this.httpClient);
     SubscriptionService = new SubscriptionService(this.httpClient);
     OpenpayFeesService  = new OpenpayFeesService(this.httpClient);
     WebhooksService     = new WebhookService(this.httpClient);
     PayoutReportService = new PayoutReportService(this.httpClient);
     MerchantService     = new MerchantService(this.httpClient);
 }
		internal OpenpayFeesService(OpenpayHttpClient opHttpClient)
		{
			this.httpClient = opHttpClient;
		}
		public OpenpayFeesService(string api_key, string merchant_id, bool production = false)
		{
			this.httpClient = new OpenpayHttpClient(api_key, merchant_id, production);
		}