Skip to content

Instantly share code, notes, and snippets.

@EvgEvg
Created July 31, 2013 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvgEvg/6126988 to your computer and use it in GitHub Desktop.
Save EvgEvg/6126988 to your computer and use it in GitHub Desktop.
<?php
require_once('vendor/autoload.php');
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
// Switch API key depending on config
$API_KEY_SECRET =
Mage::getStoreConfig('payment/payments/test')
? 'xxx' // TEST KEY
: 'xxx'; // LIVE KEY
Balanced\Settings::$api_key = $API_KEY_SECRET;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment