function Braintree_TransactionTest::createTransactionToRefund in Commerce Braintree 7
4 calls to Braintree_TransactionTest::createTransactionToRefund()
- Braintree_TransactionTest::testMultipleRefundsWithPartialAmounts in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testRefund in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testRefundWithPartialAmount in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testRefundWithUnsuccessfulPartialAmount in braintree_php/
tests/ integration/ TransactionTest.php
File
- braintree_php/
tests/ integration/ TransactionTest.php, line 1350
Class
Code
function createTransactionToRefund() {
$transaction = Braintree_Transaction::saleNoValidate(array(
'amount' => '100.00',
'creditCard' => array(
'number' => '5105105105105100',
'expirationDate' => '05/12',
),
'options' => array(
'submitForSettlement' => true,
),
));
Braintree_TestHelper::settle($transaction->id);
return $transaction;
}