protected function tearDown() { $this->customers->deleteCustomer($this->customerId); $this->coupons->deleteCoupon($this->couponId); $this->plans->deletePlan($this->planId); parent::tearDown(); }
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->cards = new Cards($this->client); $customer = $this->client->request('POST', 'customers'); $this->customerId = $customer['id']; }
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->plans = new Plans($this->client); }
protected function tearDown() { parent::tearDown(); $this->client->delete('accounts/' . $this->request->getId()); }
protected function setUp() { parent::setUp(); $this->coupons = new Coupons($this->client); }
protected function tearDown() { parent::tearDown(); $this->customers->deleteCustomer($this->customerId); }
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->events = new Events($this->client); }
protected function setUp() { parent::setUp(); $this->applicationFees = new ApplicationFees($this->client); }
protected function tearDown() { parent::tearDown(); $this->client->request('DELETE', 'customers/' . $this->customerId); $this->plans->deletePlan($this->planId); }
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->tokens = new Tokens($this->client); }