/**
  *   Constructor. Calls BaseSender constructor.
  *   Needs the minimum required parameters to create a transaction.
  *   @param $tid The transaction identifier.
  *   @param $prodId The Fastcash`s Product id, configured at IntegrationData::$ProductIds.
  *   @param $itemDescription The description for this transaction.
  *   @param $price The price of this transaction.
  */
 function __construct($tid, $prodId, $itemDescription, $price)
 {
     parent::__construct();
     $this->Tid = $tid;
     $this->Prodid = $prodId;
     $this->ItemDescription = $itemDescription;
     $this->Price = $price;
 }
Ejemplo n.º 2
0
 /**
  *   Constructor. Calls BaseSender constructor.
  *   Needs the minimum required parameters to send a card for payment datapush.
  *   @param $tid The transaction identifier.
  *   @param $number The card number.
  *   @param $validDate The card valid/expiration date.
  *   @param $cvv The card verification code (of the back of the card).
  *   @param $name The card hold name impress on it.
  *   @param $flag The card flag.
  *   @param $type The card type.
  */
 function __construct($tid, $number, $validDate, $cvv, $name, $flag, $type = PaymentDataPush::Credit)
 {
     parent::__construct();
     $this->Tid = $tid;
     $this->Type = $type;
     $this->Number = $number;
     $this->Cvv = $cvv;
     $this->ValidDate = $validDate;
     $this->Name = $name;
     $this->Flag = $flag;
 }