src/Drivers/Omidpay/Omidpay.php
Method translateStatus
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function translateStatus($status): string
{
$translations = [
'erSucceed' => 'سرویس با موفقیت اجراء شد.',
'erAAS_UseridOrPassIsRequired' => 'کد کاربری و رمز الزامی هست.',
Method purchase
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function purchase(): string
{
$data = array(
'WSContext' => [
'UserId' => $this->settings->username,
Method verify
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verify(): ReceiptInterface
{
$token = $this->invoice->getTransactionId() ?? Request::input('token');
$refNum = Request::input('RefNum');