Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zemerick1 opened this issue Jan 30, 2019 · 2 comments
Open

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

zemerick1 opened this issue Jan 30, 2019 · 2 comments

Comments

@zemerick1
Copy link
Owner

Needs to be done during account creation.

For testing we can setup the tokens manually.

@zemerick1
Copy link
Owner Author

zemerick1 commented Jan 30, 2019

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant