You are here

public static function Braintree_TestHelper::createViaTr in Commerce Braintree 7

File

braintree_php/tests/TestHelper.php, line 45

Class

Braintree_TestHelper

Code

public static function createViaTr($regularParams, $trParams) {
  $trData = Braintree_TransparentRedirect::transactionData(array_merge($trParams, array(
    "redirectUrl" => "http://www.example.com",
  )));
  return Braintree_TestHelper::submitTrRequest(TransparentRedirect::url(), $regularParams, $trData);
}