Пример #1
0
 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();
 }
Пример #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->cards = new Cards($this->client);
     $customer = $this->client->request('POST', 'customers');
     $this->customerId = $customer['id'];
 }
Пример #4
0
 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();
 }
Пример #5
0
 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();
 }
Пример #7
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)));
 }
Пример #8
0
 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();
 }
Пример #9
0
 protected function setUp()
 {
     parent::setUp();
     $this->coupons = new Coupons($this->client);
 }
Пример #10
0
 protected function setUp()
 {
     parent::setUp();
     $this->recipients = new Recipients($this->client);
 }
Пример #11
0
 protected function setUp()
 {
     parent::setUp();
     $this->charges = new Charges($this->client);
 }
Пример #12
0
 protected function setUp()
 {
     parent::setUp();
     $this->tokens = new Tokens($this->client);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->applicationFees = new ApplicationFees($this->client);
 }
Пример #14
0
 protected function setUp()
 {
     parent::setUp();
     $this->customers = new Customers($this->client);
 }
Пример #15
0
 protected function setUp()
 {
     parent::setUp();
     $this->accounts = new Accounts($this->client);
 }
Пример #16
0
 protected function setUp()
 {
     parent::setUp();
     $this->plans = new Plans($this->client);
 }
Пример #17
0
 protected function setUp()
 {
     parent::setUp();
     $this->events = new Events($this->client);
 }