TomorrowIdeas / plaid-sdk-php

PHP bindings for the Plaid API
MIT License
111 stars 42 forks source link

Add Auth to Link Token Create #63

Open streamingsystems opened 2 years ago

streamingsystems commented 2 years ago

Hi,

Plaid recently updated their API and to enable micro deposits you need to add new fields to an "auth" array.

See this URL, specifically look for "auth_type_select_enabled" and "auth_type_select_enabled":

https://plaid.com/docs/auth/coverage/same-day/#create-a-link_token

I added an optional "auth" parameter to the Tokens constructor and, if present, I added it to the fields being sent via post .

This feature would allow me and others to utilize the new "auth" fields that are required for features provided by Plaid.

Thanks!

-Rob