Skip to content

Commit f0d1f9b

Browse files
authored
Update UPGRADING.md (#116)
Add in config changes to upgrade guide for 2-3
1 parent 92a3fa8 commit f0d1f9b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

UPGRADING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,36 @@ class AddColumnsToWebhookCalls extends Migration
5757
}
5858
}
5959
```
60+
61+
62+
### Config file changes
63+
64+
If you have published a config file previously please follow these steps:
65+
66+
1, Update "model" to point to the following WebhookCall class:
67+
68+
```php
69+
/*
70+
* The classname of the model to be used. The class should equal or extend
71+
* Spatie\WebhookClient\Models\WebhookCall.
72+
*/
73+
'model' => \Spatie\WebhookClient\Models\WebhookCall::class,
74+
```
75+
76+
2, Add two new references for profile and verify_signature:
77+
78+
```php
79+
/**
80+
* This class determines if the webhook call should be stored and processed.
81+
*/
82+
'profile' => \Spatie\StripeWebhooks\StripeWebhookProfile::class,
83+
84+
/*
85+
* When disabled, the package will not verify if the signature is valid.
86+
* This can be handy in local environments.
87+
*/
88+
'verify_signature' => env('STRIPE_SIGNATURE_VERIFY', true),
89+
90+
```
91+
92+
Please see the readme for more information on verify_signature and how its used.

0 commit comments

Comments
 (0)