setAmount() public méthode

Amount being collected.
public setAmount ( Amount $amount )
$amount Amount
Exemple #1
1
 public static function createSale()
 {
     $sale = new Sale();
     $sale->setAmount(AmountTest::createAmount());
     $sale->setCreateTime(self::$createTime);
     $sale->setId(self::$id);
     $sale->setParentPayment(self::$parentPayment);
     $sale->setState(self::$state);
     return $sale;
 }
Exemple #2
1
 private function createSale()
 {
     $sale = new Sale();
     $sale->setAmount(AmountTest::createAmount());
     $sale->setCreateTime(self::$createTime);
     $sale->setId(self::$id);
     $sale->setParentPayment(self::$parentPayment);
     $sale->setState(self::$state);
     $this->tFee = new Currency();
     $this->tFee->setCurrency('AUD');
     $this->tFee->setValue('0.10');
     $sale->setTransactionFee($this->tFee);
     return $sale;
 }