src/Drivers/Irankish/Irankish.php
Method notVerified
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function notVerified($status)
{
$translations = [
5 => 'از انجام تراکنش صرف نظر شد',
17 => 'از انجام تراکنش صرف نظر شد',
Method purchase
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function purchase()
{
if (!empty($this->invoice->getDetails()['description'])) {
$description = $this->invoice->getDetails()['description'];
} else {
Method verify
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verify() : ReceiptInterface
{
$status = Request::input('responseCode');
if (Request::input('responseCode') != "00") {
return $this->notVerified($status);