Skip to content

Commit a08ffcf

Browse files
authored
Merge pull request #5 from alexvargash/review/stripe-plaid-link
Add link token support.
2 parents b5ed692 + 7108eb9 commit a08ffcf

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
- Lravael facade support.
66
- Created config file.
77

8-
8+
## 1.0.0 - 2020-11-11
9+
### Added
10+
- Plaid Link token support.
11+
- Config values for Plaid Link token.

Diff for: README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,17 @@ PLAID_CLIENT_NAME=your_app_name
135135
```
136136
Then, you need to create the `link_token` which is required as a parameter when initializing Link. Once Link has been initialized, it returns a `public_token`.
137137

138-
The `createLinkToken` function accept the parameters `$clientName, $products, $language, $countryCodes` but these will be consumed from
139-
the config file `config/stripe-plaid.php` if aren't passed through.
138+
To create the public token use `createLinkToken`, this function needs the `$clientUserId` (you can find more information [here](https://plaid.com/docs/api/tokens/#token-endpoints)), optionally this fuction accepts `$clientName, $products, $language, $countryCodes` if you don't provide these values the values on `config/stripe-plaid.php` config file will be used.
140139

141140
```php
142141
use AlexVargash\LaravelStripePlaid\StripePlaid;
143142

144-
$clientUserId = 'your_end_user_id';
143+
$clientUserId = 'client_user_id';
145144

146145
$stripePlaid = new StripePlaid();
147146
$linkToken = $stripePlaid->createLinkToken($clientUserId);
148147
```
149-
150-
Now exchange the `public_token` and `account_id` that are returned by [Plaid Link](https://plaid.com/docs/stripe/#step3).
148+
Now you can use the value of `$linkToken` on [Link Web](https://plaid.com/docs/link/link-token-migration-guide/) to get the `public_token` and `account_id` values.
151149

152150
```php
153151
use AlexVargash\LaravelStripePlaid\StripePlaid;
@@ -214,5 +212,8 @@ Pull requests are welcome. For major changes, please open an issue first to disc
214212

215213
Please make sure to update tests as appropriate.
216214

215+
## Contributors
216+
[<img src="https://pbs.twimg.com/profile_images/950767267033133057/4DNt-mOz_400x400.jpg" alt="Rogelio Bazan" width="50" height="50" />](https://twitter.com/rogeliobazh)
217+
217218
## License
218219
[MIT](./LICENSE.md)

0 commit comments

Comments
 (0)