Beispiel #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);
        }
Beispiel #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);
 }