Skip to content

Commit

Permalink
Merge pull request #49 from chriskonnertz/master
Browse files Browse the repository at this point in the history
Added notes about the Laravel config file
  • Loading branch information
anouarabdsslm committed Jul 5, 2015
2 parents 4309877 + cb1ddae commit 2ae00b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ class PaypalPaymentController extends BaseController {
}
```

If you want to use the Laravel config file: The first step is to publish the config with `artisan vendor:publish`. This will create the config file `storage/paypal_payment.php` (`app/config/paypal_payment.php` in Laravel 4). Configurate it, then replace the `setConfig()` method call (see above) with:

```
$config = config('paypal_payment'); // Get all config items as multi dimensional array
$flatConfig = array_dot($config); // Flatten the array with dots
$this->_apiContext->setConfig($flatConfig);
```

##2-Create Payment
Add the `create()` function to the `PaypalPaymentController` Controller

Expand Down

0 comments on commit 2ae00b5

Please sign in to comment.