protected function tearDown()
 {
     $this->customers->deleteCustomer($this->customerId);
     $this->coupons->deleteCoupon($this->couponId);
     $this->plans->deletePlan($this->planId);
     parent::tearDown();
 }
Example #2
0
 protected function setUp()
 {
     parent::setUp();
     $this->transfers = new Transfers($this->client);
     $this->balance = new Balance($this->client);
     $this->accounts = new Accounts($this->client);
 }
Example #3
0
 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)));
 }
Example #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->plans = new Plans($this->client);
 }
Example #6
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->client->delete('accounts/' . $this->request->getId());
 }
 protected function setUp()
 {
     parent::setUp();
     $this->coupons = new Coupons($this->client);
 }
Example #8
0
 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);
 }
Example #11
0
 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);
 }
Example #16
0
 protected function setUp()
 {
     parent::setUp();
     $this->tokens = new Tokens($this->client);
 }