#Utkarsh-Plaid-Stripe-Treasury
1 messages · Page 1 of 1 (latest)
Looking in to this. Not as familiar with Treasury, what call are you looking to use the token with?
/v1/setup_intents
As far as I understand, you should be able to use the Plaid Stripe token the way you can use any other bank account token.
Can you describe what you are trying to do here a bit more with the setup intent?
I am trying to use the Stripe Treasury APIs to create a connected account and add a bank account to that connected account without using Stripe JS
I am hoping that I can simply pass the Plaid 'btok' token instead of account number / routing number along with a verification method as described here: https://stripe.com/docs/treasury/beta/api-spec/moving-money
I think you need to do something slightly different there. Let me see what I can find...
I did have some additional questions regarding Treasury. For example the documentation says that I should see a platform treasury account with it's own balance under "balances" but I don't see that.
Can you send me the doc for that as well?
And as in it should be in your dashboard but you do not see it?
Platform FinancialAccount
During enrollment into Stripe Treasury, we automatically provide you with a platform FinancialAccount that allows you to store your own funds as working capital for your Treasury integration. This platform FinancialAccount has its own routing number and account number and supports all types of money movement.
You can find your platform FinancialAccount routing number and account number in the Treasury balance section under the Balances tab of your Stripe Dashboard.
Different from FinancialAccounts created for your connected account, we currently only support viewing your Platform FinancialAccount in /v1/financial_accounts API.
And apologies, I am having trouble figuring out this exact process. Once you have the btok token, I think you will want to create a bank account PaymentMethod with it on the customer https://site-admin.stripe.com/docs/api/customer_bank_accounts/create
And then as the first Treasury doc you sent lays out, you can pass the ID of that payment method in as the payment_method for the SetupIntent call
Looking in to your second question now...
So you are not seeing that account in either the dashboard or from that API call?
correct
I would reach out to our support about that. https://support.stripe.com/?contact=true
They will better be able to look in to your account's set up with that beta.
Thanks
One last question, we are getting an exception when trying to de-serialize a Stripe webhook with stripe-java SDK 20.94.0. Do you know if there is a specific Java SDK version we should use?
20.x.x versions are pinned to 2020-08-27 https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md#2000---2020-08-31
Is that the version you are using?
Yes, 20.94.0
mind sharing the webhook event ID?
I think it is evt_00000000000000
This is a test event I generated from the dashboard
Or it might be this req_mcIUMZGZ6o1BJ2
and what is your Account Default API version? from https://dashboard.stripe.com/test/developers
You'll see "Default" tag on an API version
the request and its API version are actually irrelevant there
the Event API version can be entirely different from the Request API version so they are unrelated
gotcha
that dummy event, was it on your account? or a Connect event meaning it happened on a Connect account?
cause that might be it
the WebhookEndpoint you created we_1KBP9XGAnZyEKADzwNbsUF09
that is a Connect Webhook Endpoint
any real Connect events (like creating a Customer on a Connect account via your own API request, not the evt_0000 dummy event) should work, try that and see, it should deserialize correctly
yes, for events happening on the Platform (not on Connect accounts), it would be an "Account Webhook Endpoint"
And where does one create that?
Dashboard or API, there is a checkbox in Dashboard (IIRC) to create the Webhook Endpoint as a Connect Webhook (or not)
Gotcha. That was my mistake
I checked the "Listen to events on Connected Accounts"
np yeah that checkbox creates the "Connect Webhook Endpoint" to listen to events happening on Connect accts
I am hoping I can use the same endpoint for both connected and platform events?