Permalink
Browse files

Initial Commit

  • Loading branch information...
0 parents commit 45bf6398528a8c663d11c8b443a894b5a3aef69a @iammerrick committed Aug 19, 2011
Showing with 22 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +8 −0 config/braintree.php
  3. +10 −0 init.php
  4. +1 −0 vendor
@@ -0,0 +1,3 @@
+[submodule "vendor"]
+ path = vendor
+ url = git://github.com/braintree/braintree_php.git
@@ -0,0 +1,8 @@
+<?php defined('SYSPATH') or die('No direct script access.');
+
+return array(
+ 'environment' => 'sandbox',
+ 'merchantId' => 'xxxxxx',
+ 'publicKey' => 'xxxxxx',
+ 'privateKey' => 'xxxxx'
+);
@@ -0,0 +1,10 @@
+<?php defined('SYSPATH') or die('No direct script access.');
+
+require_once Kohana::find_file('vendor', 'lib/Braintree');
+
+$configuration = Kohana::$config->load('braintree');
+
+Braintree_Configuration::environment($configuration->environment);
+Braintree_Configuration::merchantId($configuration->merchantId);
+Braintree_Configuration::publicKey($configuration->publicKey);
+Braintree_Configuration::privateKey($configuration->privateKey);
1 vendor
Submodule vendor added at 056aae

0 comments on commit 45bf639

Please sign in to comment.