add cryptomus payment

This commit is contained in:
Sergey Yarmolich
2025-02-17 19:11:08 +03:00
parent 0ca47622a5
commit d8b64bb327
4 changed files with 412 additions and 0 deletions

View File

@ -0,0 +1,45 @@
<?php
namespace Library\Cryptomus;
final class RequestBuilderException extends \Exception
{
/**
* @var string
*/
private $method;
/**
* @var array
*/
private $errors;
/**
* @param string $message
* @param int $responseCode
* @param string $uri
* @param null|mixed $previous
*/
public function __construct($message, $responseCode, $uri, $errors = [], $previous = null)
{
$this->method = $uri;
$this->errors = $errors;
parent::__construct($message, $responseCode, $previous);
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @return array
*/
public function getErrors()
{
return $this->errors;
}
}