You are here

function Braintree_CustomerTest::createCustomerViaTr in Commerce Braintree 7

3 calls to Braintree_CustomerTest::createCustomerViaTr()
Braintree_CustomerTest::testCreateFromTransparentRedirect in braintree_php/tests/integration/CustomerTest.php
Braintree_CustomerTest::testCreateFromTransparentRedirect_withParamsInTrData in braintree_php/tests/integration/CustomerTest.php
Braintree_CustomerTest::testCreateFromTransparentRedirect_withValidationErrors in braintree_php/tests/integration/CustomerTest.php

File

braintree_php/tests/integration/CustomerTest.php, line 922

Class

Braintree_CustomerTest

Code

function createCustomerViaTr($regularParams, $trParams) {
  Braintree_TestHelper::suppressDeprecationWarnings();
  $trData = Braintree_TransparentRedirect::createCustomerData(array_merge($trParams, array(
    "redirectUrl" => "http://www.example.com",
  )));
  return Braintree_TestHelper::submitTrRequest(Braintree_Customer::createCustomerUrl(), $regularParams, $trData);
}