Skip to content

Commit

Permalink
remove trash lines
Browse files Browse the repository at this point in the history
  • Loading branch information
roshedgostarandev1 committed Nov 25, 2019
1 parent 7616f30 commit 8db05fd
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/Drivers/Zarinpal/Zarinpal.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Shetabit\Payment\Drivers\Zarinpal;

use GuzzleHttp\Client;
use Shetabit\Payment\Abstracts\Driver;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Payment\Exceptions\PurchaseFailedException;
Expand All @@ -12,13 +11,6 @@

class Zarinpal extends Driver
{
/**
* Zarinpal Client.
*
* @var object
*/
protected $client;

/**
* Invoice
*
Expand All @@ -44,7 +36,6 @@ public function __construct(Invoice $invoice, $settings)
{
$this->invoice($invoice);
$this->settings = (object) $settings;
$this->client = new Client();
}

/**
Expand Down Expand Up @@ -109,10 +100,10 @@ public function pay()
/**
* Verify payment
*
* @return mixed|void
* @return ReceiptInterface
*
* @throws InvalidPaymentException
* @throws \GuzzleHttp\Exception\GuzzleException
* @throws \SoapFault
*/
public function verify() : ReceiptInterface
{
Expand Down Expand Up @@ -149,9 +140,7 @@ public function verify() : ReceiptInterface
*/
public function createReceipt($referenceId)
{
$receipt = new Receipt('zarinpal', $referenceId);

return $receipt;
return new Receipt('zarinpal', $referenceId);
}

/**
Expand Down

0 comments on commit 8db05fd

Please sign in to comment.