src/Client.php
public function purchase($amount, $cardNumber, $month, $year, $cvc = NULL, $clientReference = NULL, $comment = NULL, $description = NULL, $cardHolderName = NULL, $taxAmount = NULL)
	{
		$request = Request::createFromClient($this);

		$request->setTransactionType(Request::TRANSACTION_TYPE_PURCHASE)
		        ->setTotalAmount($amount)
		        ->setCardData($cardNumber)
		        ->setCardExpiryDate($month, $year)
		        ->setCVC2($cvc)
		        ->setClientReference($clientReference)
		        ->setComment($comment)
		        ->setMerchantDescription($description)
		        ->setMerchantCardHolderName($cardHolderName)
		        ->setTaxAmount($taxAmount);

		return $request;
	}
public function purchase($amount, $cardNumber, $month, $year, $cvc = NULL, $clientReference = NULL, $comment = NULL, $description = NULL, $cardHolderName = NULL, $taxAmount = NULL)
	{
		$request = Request::createFromClient($this);

		$request->setTransactionType(Request::TRANSACTION_TYPE_PURCHASE)
		        ->setTotalAmount($amount)
		        ->setCardData($cardNumber)
		        ->setCardExpiryDate($month, $year)
		        ->setCVC2($cvc)
		        ->setClientReference($clientReference)
		        ->setComment($comment)
		        ->setMerchantDescription($description)
		        ->setMerchantCardHolderName($cardHolderName)
		        ->setTaxAmount($taxAmount);

		return $request;
	}
public function purchase ( $ amount , $ cardNumber , $ month , $ year , $ cvc = NULL , $ clientReference = NULL , $ comment = NULL , $ description = NULL , $ cardHolderName = NULL , $ taxAmount = NULL ) { $ request = Request :: createFromClient ( $ this ) ; $ request -> setTransactionType ( Request :: TRANSACTION_TYPE_PURCHASE ) -> setTotalAmount ( $ amount ) -> setCardData ( $ cardNumber ) -> setCardExpiryDate ( $ month , $ year ) -> setCVC2 ( $ cvc ) -> setClientReference ( $ clientReference ) -> setComment ( $ comment ) -> setMerchantDescription ( $ description ) -> setMerchantCardHolderName ( $ cardHolderName ) -> setTaxAmount ( $ taxAmount ) ; return $ request ; }
Create a purchase request.

@param      $amount
@param      $cardNumber
@param      $month
@param      $year
@param null $cvc
@param null $clientReference
@param null $comment
@param null $description
@param null $cardHolderName
@param null $taxAmount

@return \StGeorgeIPG\Request
Create a purchase request .