Skip to content

Commit

Permalink
Updated documentation for multiple secrets (#33)
Browse files Browse the repository at this point in the history
* Update README to use correct route macro for Stripe Connect

* Clarified the two methods of defining the alternative config keys

Clarified the two methods of defining the alternative config keys
  • Loading branch information
A-Lawrence authored and freekmurze committed Aug 21, 2018
1 parent 52f1e2d commit 5bb6a6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,13 @@ class MyCustomWebhookCall extends StripeWebhookCall

When using [Stripe Connect](https://stripe.com/connect) you might want to the package to handle multiple endpoints and secrets. Here's how to configurate that behaviour.

First add a route which includes the parameter `configKey`:
If you are using the `Route::stripeWebhooks` macro, you can append the `configKey` as follows:

```php
Route::stripeWebhooks('webhook-url/{configKey}');
```

Alternatively, if you are manually defining the route, you can add `configKey` like so:

```php
Route::post('webhook-url/{configKey}', 'Spatie\StripeWebhooks\StripeWebhooksController');
Expand Down

0 comments on commit 5bb6a6e

Please sign in to comment.