Paranoia\Payment\Request::getAmount PHP Method

getAmount() public method

returns order amount.
public getAmount ( ) : float
return float
    public function getAmount()
    {
        return $this->amount;
    }

Usage Example

Example #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;
 }
All Usage Examples Of Paranoia\Payment\Request::getAmount