Skip to content

Commit

Permalink
Drop Laravel 5.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Aug 25, 2017
1 parent bb87b24 commit 5875526
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,13 @@ composer require srmklive/paypal:~1.0
* Add the service provider to your `$providers` array in `config/app.php` file like:

```php
'Srmklive\PayPal\Providers\PayPalServiceProvider' // Laravel 5
```
```php
Srmklive\PayPal\Providers\PayPalServiceProvider::class // Laravel 5.1 or greater
Srmklive\PayPal\Providers\PayPalServiceProvider::class
```

* Add the alias to your `$aliases` array in `config/app.php` file like:

```php
'PayPal' => 'Srmklive\PayPal\Facades\PayPal' // Laravel 5
```
```php
'PayPal' => Srmklive\PayPal\Facades\PayPal::class // Laravel 5.1 or greater
'PayPal' => Srmklive\PayPal\Facades\PayPal::class
```

* Run the following command to publish configuration:
Expand Down Expand Up @@ -229,13 +223,9 @@ $data['total'] = $total;

```php
$response = $provider->refundTransaction($transactionid);
```

To issue partial refund, you must provide the amount as well for refund:

```php
$amount = 10;
$response = $provider->refundTransaction($transactionid, $amount);

// To issue partial refund, you must provide the amount as well for refund:
$response = $provider->refundTransaction($transactionid, 9.99);
```

<a name="usage-ec-createbillingagreement"></a>
Expand Down Expand Up @@ -429,7 +419,7 @@ $response = $provider->createYearlySubscription($token, $amount, $description);
<a name="support"></a>
## Support

This plugin only supports Laravel 5 or greater.
This plugin only supports Laravel 5.1 or greater.
* In case of any issues, kindly create one on the [Issues](https://github.com/srmklive/laravel-paypal/issues) section.
* If you would like to contribute:
* Fork this repository.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"require": {
"guzzlehttp/guzzle": "~5.0|~6.0",
"illuminate/support": "~5.0|~5.1|~5.2|~5.3|~5.4|~5.5",
"illuminate/support": "~5.1|~5.2|~5.3|~5.4|~5.5",
"nesbot/carbon": "~1.0"
},
"config": {
Expand Down

0 comments on commit 5875526

Please sign in to comment.