Skip to content

Commit

Permalink
Fix deprecated Input facade
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcodr committed Dec 13, 2020
1 parent 02c1efc commit 73f830a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Maskan/Maskan.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Larabookir\Gateway\Maskan;

use Illuminate\Support\Facades\Input;
use Larabookir\Gateway\Enum;
use Larabookir\Gateway\PortAbstract;
use Larabookir\Gateway\PortInterface;
Expand Down
11 changes: 6 additions & 5 deletions src/Saman/Saman.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
namespace Larabookir\Gateway\Saman;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Request;
use SoapClient;
use Larabookir\Gateway\PortAbstract;
use Larabookir\Gateway\PortInterface;

class Saman extends PortAbstract implements PortInterface
{
/**
Expand Down Expand Up @@ -79,10 +80,10 @@ function getCallback()
*/
protected function userPayment()
{
$this->refId = Input::get('RefNum');
$this->trackingCode = Input::get('ResNum');
$payRequestRes = Input::get('State');
$payRequestResCode = Input::get('StateCode');
$this->refId = Request::input('RefNum');
$this->trackingCode = Request::input('ResNum');
$payRequestRes = Request::input('State');
$payRequestResCode = Request::input('StateCode');
if ($payRequestRes == 'OK') {
return true;
}
Expand Down

0 comments on commit 73f830a

Please sign in to comment.