You are here

function Braintree_CustomerTest::updateCustomerViaTr in Commerce Braintree 7

4 calls to Braintree_CustomerTest::updateCustomerViaTr()
Braintree_CustomerTest::testUpdateFromTransparentRedirect in braintree_php/tests/integration/CustomerTest.php
Braintree_CustomerTest::testUpdateFromTransparentRedirect_withParamsInTrData in braintree_php/tests/integration/CustomerTest.php
Braintree_CustomerTest::testUpdateFromTransparentRedirect_withUpdateExisting in braintree_php/tests/integration/CustomerTest.php
Braintree_CustomerTest::testUpdateFromTransparentRedirect_withValidationErrors in braintree_php/tests/integration/CustomerTest.php

File

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

Class

Braintree_CustomerTest

Code

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