PayPal\Api\Refund::setCreateTime PHP Method

setCreateTime() public method

Time of refund as defined in RFC 3339 Section 5.6.
public setCreateTime ( string $create_time )
$create_time string
    public function setCreateTime($create_time)
    {
        $this->create_time = $create_time;
        return $this;
    }

Usage Example

Beispiel #1
0
 public static function createRefund()
 {
     $refund = new Refund();
     $refund->setCreateTime(self::$createTime);
     $refund->setAmount(AmountTest::createAmount());
     $refund->setCaptureId(self::$captureId);
     $refund->setId(self::$id);
     $refund->setLinks(array(LinksTest::getObject()));
     $refund->setParentPayment(self::$parentPayment);
     return $refund;
 }