Open brentscheffler opened 2 years ago
Any update on this one?
@saeedtkh construct a User
instance -- use \TomorrowIdeas\Plaid\Entities\User
Example:
$plaidUser = new User(
$user->id,
$user->name,
null,
null,
$user->email,
);
$client->tokens->create(
'my app name',
'en',
PlaidClient::$countryCodes,
$plaidUser,
PlaidClient::$products,
);
Hello.
I have an error for create link token.
[2022-07-28T13:01:13.333760+00:00] log.DEBUG: Slim Application Error Type: TypeError Code: 0 Message: TomorrowIdeas\Plaid\Resources\Tokens::create(): Argument #4 ($user) must be of type TomorrowIdeas\Plaid\Entities\User, int given, called in /home/finance/public_html/views/PlaidCreateLinkToken.php on line 21 File: /home/finance/public_html/vendor/tomorrow-ideas/plaid-sdk-php/src/Resources/Tokens.php Line: 30 Trace: #0 /home/finance/public_html/views/PlaidCreateLinkToken.php(21): TomorrowIdeas\Plaid\Resources\Tokens->create('client_name', 'en', Array, 22, Array) #1
If I use
[2022-07-28T13:36:02.441234+00:00] log.DEBUG: Slim Application Error Type: Error Code: 0 Message: Call to undefined method TomorrowIdeas\Plaid\Plaid::createLinkToken() File: /home/finance/public_html/views/PlaidCreateLinkToken.php Line: 25 Trace: #0
Originally posted by @banyman in https://github.com/TomorrowIdeas/plaid-sdk-php/issues/58#issuecomment-1198129477