Paranoia\Payment\Request::getSecurityCode PHP Method

getSecurityCode() public method

returns card security code.
public getSecurityCode ( ) : string
return string
    public function getSecurityCode()
    {
        return $this->securityCode;
    }

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildSaleRequest()
  */
 protected function buildSaleRequest(Request $request)
 {
     $amount = $this->formatAmount($request->getAmount());
     $installment = $this->formatInstallment($request->getInstallment());
     $currency = $this->formatCurrency($request->getCurrency());
     $expireMonth = $this->formatExpireDate($request->getExpireMonth(), $request->getExpireYear());
     $type = $this->getProviderTransactionType(self::TRANSACTION_TYPE_SALE);
     $requestData = array($type => array('ccno' => $request->getCardNumber(), 'expDate' => $expireMonth, 'cvc' => $request->getSecurityCode(), 'amount' => $amount, 'currencyCode' => $currency, 'orderID' => $this->formatOrderId($request->getOrderId()), 'installment' => $installment));
     return $requestData;
 }
All Usage Examples Of Paranoia\Payment\Request::getSecurityCode