Example #1
0
 public static function createCreditCard()
 {
     $card = new CreditCard();
     $card->setType(self::$cardType);
     $card->setNumber(self::$cardNumber);
     $card->setExpire_month(self::$expireMonth);
     $card->setExpire_year(self::$expireYear);
     $card->setCvv2(self::$cvv);
     $card->setFirst_name(self::$firstName);
     $card->setLast_name(self::$lastName);
     $card->setId(self::$id);
     $card->setValid_until(self::$validUntil);
     $card->setState(self::$state);
     $card->setPayer_id(self::$payerId);
     return $card;
 }