setState() public method

Valid Values: ["completed", "partially_refunded", "pending", "refunded", "denied"]
public setState ( string $state )
$state string
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }