setState() public method

Valid Values: ["pending", "completed", "voided", "authorized", "captured"]
public setState ( string $state )
$state string
Esempio n. 1
0
 public static function createOrder()
 {
     $order = new Order();
     $order->setId(self::$id);
     $order->setCreateTime(self::$createTime);
     $order->setUpdateTime(self::$updateTime);
     $order->setState(self::$state);
     $order->setAmount(AmountTest::createAmount());
     return $order;
 }