Skip to content

Commit

Permalink
Updated to Support Laravel 5.4 (#24)
Browse files Browse the repository at this point in the history
* Fixed the BindingResolutionException - Laravel 5.4

Fixed the BindingResolutionException to support Laravel 5.4.

* Updated for Laravel 5.4

Updated to the Latest Standards of Laravel 5.4

* Test Endpoint

Corrected the Test Endpoint
  • Loading branch information
secrethash authored and Shiburaj Pappu committed Apr 3, 2017
1 parent 5d4b961 commit 1ed9de7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ The Laravel 5 Package for Indian Payment Gateways. Currently supported gateway:

<b>Step 2:</b> Add the service provider to the config/app.php file in Laravel
<pre><code>
'Softon\Indipay\IndipayServiceProvider',
Softon\Indipay\IndipayServiceProvider::class,
</pre></code>

<b>Step 3:</b> Add an alias for the Facade to the config/app.php file in Laravel
<pre><code>
'Indipay' => 'Softon\Indipay\Facades\Indipay',
'Indipay' => Softon\Indipay\Facades\Indipay::class,
</pre></code>

<b>Step 4:</b> Publish the config & Middleware by running in your terminal
Expand Down Expand Up @@ -91,4 +91,4 @@ Also add the response route to the remove_csrf_check config item to remove CSRF
dd($response);

}
</code></pre>
</code></pre>
4 changes: 2 additions & 2 deletions src/Gateways/InstaMojoGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class InstaMojoGateway implements PaymentGatewayInterface {
protected $api_key = '';
protected $auth_token = '';
protected $liveEndPoint = 'https://www.instamojo.com/api/1.1/';
protected $testEndPoint = 'https://www.instamojo.com/api/1.1/';
protected $testEndPoint = 'https://test.instamojo.com/api/1.1/';
public $response = '';

function __construct()
Expand Down Expand Up @@ -124,4 +124,4 @@ public function checkParameters($parameters)



}
}
4 changes: 2 additions & 2 deletions src/IndipayServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class IndipayServiceProvider extends ServiceProvider {
public function register()
{
$gateway = Config::get('indipay.gateway');
$this->app->bind('indipay', '\Softon\Indipay\Indipay');
$this->app->bind('indipay', 'Softon\Indipay\Indipay');

$this->app->bind('\Softon\Indipay\Gateways\PaymentGatewayInterface','\Softon\Indipay\Gateways\\'.$gateway.'Gateway');
$this->app->bind('Softon\Indipay\Gateways\PaymentGatewayInterface','Softon\Indipay\Gateways\\'.$gateway.'Gateway');
}


Expand Down

0 comments on commit 1ed9de7

Please sign in to comment.