setType() public method

Set the Payment Type
public setType ( $type )
$type int
 /**
  * Create a completed payment from a queued payment.
  * @param $queuedPayment QueuedPayment Payment to complete.
  * @param $payMethod string Name of payment plugin used.
  * @return OJSCompletedPayment
  */
 function &createCompletedPayment($queuedPayment, $payMethod)
 {
     import('classes.payment.ojs.OJSCompletedPayment');
     $payment = new OJSCompletedPayment();
     $payment->setJournalId($queuedPayment->getJournalId());
     $payment->setType($queuedPayment->getType());
     $payment->setAmount($queuedPayment->getAmount());
     $payment->setCurrencyCode($queuedPayment->getCurrencyCode());
     $payment->setUserId($queuedPayment->getUserId());
     $payment->setAssocId($queuedPayment->getAssocId());
     $payment->setPayMethodPluginName($payMethod);
     return $payment;
 }
 /**
  * Internal function to return a OJSCompletedPayment object from a row.
  * @param $row array
  * @return CompletedPayment
  */
 function &_returnPaymentFromRow(&$row)
 {
     import('payment.ojs.OJSCompletedPayment');
     $payment = new OJSCompletedPayment();
     $payment->setTimestamp($this->datetimeFromDB($row['timestamp']));
     $payment->setPaymentId($row['completed_payment_id']);
     $payment->setType($row['payment_type']);
     $payment->setJournalId($row['journal_id']);
     $payment->setAmount($row['amount']);
     $payment->setCurrencyCode($row['currency_code_alpha']);
     $payment->setUserId($row['user_id']);
     $payment->setAssocId($row['assoc_id']);
     $payment->setPayMethodPluginName($row['payment_method_plugin_name']);
     return $payment;
 }