You are here

protected function CommerceBraintreeCofTest::getCredentials in Commerce Braintree 7.2

Same name and namespace in other branches
  1. 7.3 tests/commerce_braintree_cof.test \CommerceBraintreeCofTest::getCredentials()
  2. 7 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.
  libraries_load('braintree_php');
  Braintree_Configuration::environment('sandbox');
  Braintree_Configuration::merchantId('y37hv7xmv9tqspcz');
  Braintree_Configuration::publicKey('25sz2yrhy4nr8vj7');
  Braintree_Configuration::privateKey('90907493a55d78ffdccaf415a3226f25');
}