Exemplo n.º 1
0
 public function __construct($amount = null)
 {
     parent::__construct(self::$name);
 }
Exemplo n.º 2
0
 public function __construct($desc, $amount = null)
 {
     parent::__construct(self::$name);
     $this->setNVP("TOKEN", urlencode($_GET['token']));
     //UTC time  date("Y-m-d\TH:i:s\Z", mktime(0,0,0,date("m"), date("d")+1, date("y")));
     //GMT time  gmdate("M d Y H:i:s", mktime(0,0,0,date("m"), date("d")+1, date("y"))); !!! not working need to find out why
     $this->setNVP("PROFILESTARTDATE", date("Y-m-d\\TH:i:s\\Z", mktime(0, 0, 0, date("m"), date("d") + 1, date("y"))));
     $this->setNVP("DESC", $desc);
     if (!is_null($amount)) {
         $this->setNVP("AMT", $amount);
     }
 }