function Braintree_TransactionTest::createTransactionViaTr in Commerce Braintree 7
4 calls to Braintree_TransactionTest::createTransactionViaTr()
- Braintree_TransactionTest::testCreateFromTransparentRedirect in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testCreateFromTransparentRedirectWithInvalidParams in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testCreateFromTransparentRedirect_withParamsInTrData in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testCreateFromTransparentRedirect_withValidationErrors in braintree_php/
tests/ integration/ TransactionTest.php
File
- braintree_php/
tests/ integration/ TransactionTest.php, line 1337
Class
Code
function createTransactionViaTr($regularParams, $trParams) {
Braintree_TestHelper::suppressDeprecationWarnings();
$trData = Braintree_TransparentRedirect::transactionData(array_merge($trParams, array(
"redirectUrl" => "http://www.example.com",
)));
return Braintree_TestHelper::submitTrRequest(Braintree_Transaction::createTransactionUrl(), $regularParams, $trData);
}