zemerick1 / plaid-link

PHP / Python Plaid integration
1 stars 0 forks source link

Add workflow to get stripe token for each account created. #3

Open zemerick1 opened 5 years ago

zemerick1 commented 5 years ago

Needs to be done during account creation.

For testing we can setup the tokens manually.

zemerick1 commented 5 years ago

Token does not need to be stored (only good for one use). It just needs to be created and the stripe API call with create the account there.

curl -X POST \
https://development.plaid.com/processor/stripe/bank_account_token/create \
-H 'Content-Type: application/json' \
-d '{
  "client_id": "client_id",
  "secret": "super secret",
  "access_token": "a_token",
  "account_id": "accountid"
}'
\Stripe\Customer::create([
  "description" => "Customer for jenny.rosen@example.com",
  "source" => "tok_visa" // created token
]);
zemerick1 commented 5 years ago

Since the move to dwolla-- I need to provide the same thing only using Dwolla's API.