You are here

function Braintree_CreditCardTest::updateCreditCardViaTr in Commerce Braintree 7

3 calls to Braintree_CreditCardTest::updateCreditCardViaTr()
Braintree_CreditCardTest::testUpdateFromTransparentRedirect in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testUpdateFromTransparentRedirect_andUpdateExistingBillingAddress in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testUpdateFromTransparentRedirect_withDefault in braintree_php/tests/integration/CreditCardTest.php

File

braintree_php/tests/integration/CreditCardTest.php, line 929

Class

Braintree_CreditCardTest

Code

function updateCreditCardViaTr($regularParams, $trParams) {
  $trData = Braintree_TransparentRedirect::updateCreditCardData(array_merge($trParams, array(
    "redirectUrl" => "http://www.example.com",
  )));
  return Braintree_TestHelper::submitTrRequest(Braintree_CreditCard::updateCreditCardUrl(), $regularParams, $trData);
}