Exemplo n.º 1
0
 protected function tearDown()
 {
     $this->customers->deleteCustomer($this->customerId);
     $this->coupons->deleteCoupon($this->couponId);
     $this->plans->deletePlan($this->planId);
     parent::tearDown();
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->cards = new Cards($this->client);
     $customer = $this->client->request('POST', 'customers');
     $this->customerId = $customer['id'];
 }
Exemplo n.º 4
0
 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)));
 }
Exemplo n.º 5
0
 protected function setUp()
 {
     parent::setUp();
     $this->plans = new Plans($this->client);
 }
Exemplo n.º 6
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->client->delete('accounts/' . $this->request->getId());
 }
Exemplo n.º 7
0
 protected function setUp()
 {
     parent::setUp();
     $this->coupons = new Coupons($this->client);
 }
Exemplo n.º 8
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->customers->deleteCustomer($this->customerId);
 }
Exemplo n.º 9
0
 protected function setUp()
 {
     parent::setUp();
     $this->recipients = new Recipients($this->client);
 }
Exemplo n.º 10
0
 protected function setUp()
 {
     parent::setUp();
     $this->charges = new Charges($this->client);
 }
Exemplo n.º 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);
 }
Exemplo n.º 14
0
 protected function setUp()
 {
     parent::setUp();
     $this->customers = new Customers($this->client);
 }
Exemplo n.º 15
0
 protected function setUp()
 {
     parent::setUp();
     $this->accounts = new Accounts($this->client);
 }
Exemplo n.º 16
0
 protected function setUp()
 {
     parent::setUp();
     $this->tokens = new Tokens($this->client);
 }