public function __construct($apiKey) { \Httpful\Bootstrap::init(); \RESTful\Bootstrap::init(); \Balanced\Bootstrap::init(); \Balanced\Settings::$api_key = $apiKey; }
/** * Bootstrap the application events. * * @return void */ public function boot() { \Httpful\Bootstrap::init(); \RESTful\Bootstrap::init(); \Balanced\Bootstrap::init(); $this->package('revolt-visual/laravel-balanced'); Balanced\Settings::$api_key = $this->app['config']->get('laravel-balanced::balanced.secret_key'); }
<?php namespace Balanced\Test; \Balanced\Bootstrap::init(); \RESTful\Bootstrap::init(); \Httpful\Bootstrap::init(); use Balanced\Settings; use Balanced\APIKey; use Balanced\Marketplace; use Balanced\Credit; use Balanced\Debit; use Balanced\Refund; use Balanced\Account; use Balanced\Merchant; use Balanced\BankAccount; use Balanced\Card; /** * Suite test cases. These talk to an API server and so make network calls. * * Environment variables can be used to control client settings: * * <ul> * <li>$BALANCED_URL_ROOT If set applies to \Balanced\Settings::$url_root. * <li>$BALANCED_API_KEY If set applies to \Balanced\Settings::$api_key. * </ul> */ class SuiteTest extends \PHPUnit_Framework_TestCase { static $key, $marketplace, $email_counter = 0; static function _createBuyer($email_address = null, $card = null)