You are here

protected function CommerceBraintreeCofTest::getCredentials in Commerce Braintree 7

Same name and namespace in other branches
  1. 7.3 tests/commerce_braintree_cof.test \CommerceBraintreeCofTest::getCredentials()
  2. 7.2 tests/commerce_braintree_cof.test \CommerceBraintreeCofTest::getCredentials()

Init Braintree test credentials.

1 call to CommerceBraintreeCofTest::getCredentials()
CommerceBraintreeCofTest::createTrDataInfo in tests/commerce_braintree_cof.test
Return an array with credit card info.

File

tests/commerce_braintree_cof.test, line 72
Functional tests for the commerce payment module user interface.

Class

CommerceBraintreeCofTest
Test payment user interface.

Code

protected function getCredentials() {

  // Include Braintree API.
  // Using a test account.
  require_once drupal_get_path('module', 'commerce_braintree') . '/braintree_php/lib/Braintree.php';
  Braintree_Configuration::environment('sandbox');
  Braintree_Configuration::merchantId('y37hv7xmv9tqspcz');
  Braintree_Configuration::publicKey('25sz2yrhy4nr8vj7');
  Braintree_Configuration::privateKey('90907493a55d78ffdccaf415a3226f25');
}