getCurrency() public méthode

returns currency code string which is three digit.
public getCurrency ( ) : string
Résultat string
Exemple #1
0
 /**
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildRefundRequest()
  */
 protected function buildRefundRequest(Request $request)
 {
     $amount = $this->formatAmount($request->getAmount());
     $currency = $this->formatCurrency($request->getCurrency());
     $type = $this->getProviderTransactionType($request->getTransactionType());
     $requestData = array('Type' => $type, 'Total' => $amount, 'Currency' => $currency, 'OrderId' => $request->getOrderId());
     return $requestData;
 }
Exemple #2
0
 /**
  * @see Paranoia\Payment\Adapter\AdapterAbstract::buildRefundRequest()
  */
 protected function buildRefundRequest(Request $request)
 {
     $amount = $this->formatAmount($request->getAmount());
     $currency = $this->formatCurrency($request->getCurrency());
     $type = $this->getProviderTransactionType($request->getTransactionType());
     $requestData = array($type => array('hostLogKey' => $request->getTransactionId(), 'amount' => $amount, 'currencyCode' => $currency));
     return $requestData;
 }
Exemple #3
0
 /**
  * builds terminal section of request.
  *
  * @param Request $request
  * @param string $transactionType
  * @param integer $cardHolderPresentCode
  * @param string  $originalRetrefNum
  *
  * @return array
  */
 private function buildTransaction(Request $request, $transactionType, $cardHolderPresentCode = 0, $originalRetrefNum = null)
 {
     $installment = $request->getInstallment() ? $this->formatInstallment($request->getInstallment()) : null;
     $amount = $this->isAmountRequired($transactionType) ? $this->formatAmount($request->getAmount()) : '1';
     $currency = $request->getCurrency() ? $this->formatCurrency($request->getCurrency()) : null;
     $type = $this->getProviderTransactionType($transactionType);
     return array('Type' => $type, 'InstallmentCnt' => $installment, 'Amount' => $amount, 'CurrencyCode' => $currency, 'CardholderPresentCode' => $cardHolderPresentCode, 'MotoInd' => 'N', 'OriginalRetrefNum' => $originalRetrefNum);
 }