protected function setUp() { parent::setUp(); $this->transfers = new Transfers($this->client); $this->balance = new Balance($this->client); $this->accounts = new Accounts($this->client); }
protected function setUp() { parent::setUp(); $this->invoiceItems = new InvoiceItems($this->client); $this->customers = new Customers($this->client); $this->customerId = $this->customers->createCustomer()->getId(); }
protected function setUp() { parent::setUp(); $this->cards = new Cards($this->client); $customer = $this->client->request('POST', 'customers'); $this->customerId = $customer['id']; }
protected function setUp() { parent::setUp(); $this->invoices = new Invoices($this->client); $this->customers = new Customers($this->client); $customerRequest = $this->customers->createCustomerRequest()->setCard(new CreateCardRequest(self::VISA_1, 1, 2020, 123)); $this->customerId = $this->customers->createCustomer($customerRequest)->getId(); }
protected function setUp() { parent::setUp(); $this->accounts = new Accounts($this->client); $request = $this->accounts->createAccountRequest(); $request->setEmail("bob" . $this->randomString() . "@loblaw.com"); $request->setManaged(true); $this->request = $this->accounts->createAccount($request); }
protected function setUp() { parent::setUp(); $this->subscriptions = new Subscriptions($this->client); $this->plans = new Plans($this->client); $customer = $this->client->request('POST', 'customers'); $this->customerId = $customer['id']; $this->planId = $this->plans->createPlan(new CreatePlanRequest("test_plan" . rand(0, 999999), 350, "usd", "month", "test plan"))->getId(); }
protected function setUp() { parent::setUp(); $this->refunds = new Refunds($this->client); $charges = new Charges($this->client); // create a charge $createChargeRequest = new CreateChargeRequest(350, "usd"); $this->createChargeResponse = $charges->createCharge($createChargeRequest->setCard(new CreateCardRequest(self::VISA_1, 1, 2020))); }
protected function setUp() { parent::setUp(); $this->discounts = new Discounts($this->client); $this->customers = new Customers($this->client); $this->subscriptions = new Subscriptions($this->client); $this->coupons = new Coupons($this->client); $this->plans = new Plans($this->client); $this->couponId = $this->coupons->createCoupon($this->coupons->createCouponRequest('forever')->setPercentOff(50))->getId(); $customerRequest = $this->customers->createCustomerRequest()->setCard(new CreateCardRequest(self::VISA_1, 1, 2020, 123)); $this->customerId = $this->customers->createCustomer($customerRequest)->getId(); $planRequest = $this->plans->createPlanRequest("discounts_test_plan" . rand(0, 999999), 350, 'usd', 'month', 'test plan'); $this->planId = $this->plans->createPlan($planRequest)->getId(); }
protected function setUp() { parent::setUp(); $this->coupons = new Coupons($this->client); }
protected function setUp() { parent::setUp(); $this->recipients = new Recipients($this->client); }
protected function setUp() { parent::setUp(); $this->charges = new Charges($this->client); }
protected function setUp() { parent::setUp(); $this->tokens = new Tokens($this->client); }
protected function setUp() { parent::setUp(); $this->applicationFees = new ApplicationFees($this->client); }
protected function setUp() { parent::setUp(); $this->customers = new Customers($this->client); }
protected function setUp() { parent::setUp(); $this->accounts = new Accounts($this->client); }
protected function setUp() { parent::setUp(); $this->plans = new Plans($this->client); }
protected function setUp() { parent::setUp(); $this->events = new Events($this->client); }