180 lines
2.8 KiB
PHP
180 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace app\services\epay;
|
|
|
|
class EPayPayment
|
|
{
|
|
|
|
/**
|
|
* This is int.
|
|
* Cast it to string when sending data to EPay!
|
|
* @var int
|
|
*/
|
|
private $invoiceNumber;
|
|
|
|
|
|
private $orderId;
|
|
|
|
/**
|
|
* @var float
|
|
*/
|
|
private $amount;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $currency;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $description;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $encoding = 'utf-8';
|
|
|
|
/**
|
|
* URL where the client should be redirected
|
|
* when payment is processed successfully.
|
|
* @var string
|
|
*/
|
|
private $urlOk;
|
|
|
|
/**
|
|
* URL where the client should be redirected
|
|
* in case they rejected payment.
|
|
* @var string
|
|
*/
|
|
private $urlCancel;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getInvoiceNumber()
|
|
{
|
|
return $this->invoiceNumber;
|
|
}
|
|
|
|
/**
|
|
* @param int $invoiceNumber
|
|
*/
|
|
public function setInvoiceNumber($invoiceNumber)
|
|
{
|
|
$this->invoiceNumber = $invoiceNumber;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getAmount()
|
|
{
|
|
return $this->amount;
|
|
}
|
|
|
|
/**
|
|
* @param float $amount
|
|
*/
|
|
public function setAmount($amount)
|
|
{
|
|
$this->amount = $amount;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCurrency()
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
/**
|
|
* @param string $currency
|
|
*/
|
|
public function setCurrency($currency)
|
|
{
|
|
$this->currency = $currency;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @param string $description
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEncoding()
|
|
{
|
|
return $this->encoding;
|
|
}
|
|
|
|
/**
|
|
* @param string $encoding
|
|
*/
|
|
public function setEncoding($encoding)
|
|
{
|
|
$this->encoding = $encoding;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getUrlOk()
|
|
{
|
|
return $this->urlOk;
|
|
}
|
|
|
|
/**
|
|
* @param string $urlOk
|
|
*/
|
|
public function setUrlOk($urlOk)
|
|
{
|
|
$this->urlOk = $urlOk;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getUrlCancel()
|
|
{
|
|
return $this->urlCancel;
|
|
}
|
|
|
|
/**
|
|
* @param string $urlCancel
|
|
*/
|
|
public function setUrlCancel($urlCancel)
|
|
{
|
|
$this->urlCancel = $urlCancel;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getOrderId()
|
|
{
|
|
return $this->orderId;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $orderId
|
|
*/
|
|
public function setOrderId($orderId)
|
|
{
|
|
$this->orderId = $orderId;
|
|
}
|
|
}
|