You are here

function Braintree_CreditCardTest::createCreditCardViaTr in Commerce Braintree 7

2 calls to Braintree_CreditCardTest::createCreditCardViaTr()
Braintree_CreditCardTest::testCreateFromTransparentRedirect in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testCreateFromTransparentRedirect_withDefault in braintree_php/tests/integration/CreditCardTest.php

File

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

Class

Braintree_CreditCardTest

Code

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