Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskonnertz committed Jul 5, 2015
1 parent 0285b79 commit cb1ddae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ 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 in `storage/paypal_payment.php` (`app/config/paypal_payment.php` in Laravel 4). Configurate it, then replace the `setConfig()` method call (see above) with:
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
$apiContext->setConfig($flatConfig);
$this->_apiContext->setConfig($flatConfig);
```

##2-Create Payment
Expand Down

0 comments on commit cb1ddae

Please sign in to comment.