added transaction fee support to sale class

This commit is contained in:
Chaitanya Kuber
2015-02-03 12:19:34 +11:00
parent ac69aa65ed
commit 58be8bd5d3
4 changed files with 164 additions and 57 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace PayPal\Test\Api;
use PayPal\Api\TransactionFee;
class TransactionFeeTest extends \PHPUnit_Framework_TestCase
{
public function testGetterSetter()
{
$tfee = new TransactionFee();
$tfee->setCurrency('AUD');
$this->assertEquals('AUD', $tfee->getCurrency());
$tfee->setValue('0.10');
$this->assertEquals('0.10', $tfee->getValue());
}
}