|
@@ -15,6 +15,8 @@ class PlaidService
|
15
|
15
|
{
|
16
|
16
|
public const API_VERSION = '2020-09-14';
|
17
|
17
|
|
|
18
|
+ public const TRANSACTION_DAYS_REQUESTED = 730;
|
|
19
|
+
|
18
|
20
|
protected ?string $clientId;
|
19
|
21
|
|
20
|
22
|
protected ?string $clientSecret;
|
|
@@ -204,6 +206,12 @@ class PlaidService
|
204
|
206
|
|
205
|
207
|
if ($products) {
|
206
|
208
|
$data['products'] = $products;
|
|
209
|
+
|
|
210
|
+ if (in_array('transactions', $products, true)) {
|
|
211
|
+ $data['transactions'] = [
|
|
212
|
+ 'days_requested' => self::TRANSACTION_DAYS_REQUESTED,
|
|
213
|
+ ];
|
|
214
|
+ }
|
207
|
215
|
}
|
208
|
216
|
|
209
|
217
|
if (! empty($this->webhookUrl)) {
|