#jobewone-connect-financialaccounts
1 messages ยท Page 1 of 1 (latest)
Can you paste the request id in here so I can have a look
req_UrEi2LMKfUWYuO
That financial account exists on acct_1Mdfm64Ja87CD0ut but you're making the request on
acct_1J5Hh3KmW9tOWppX
acct_1Mdfm64Ja87CD0ut is a connect account of acct_1J5Hh3KmW9tOWppX
so that means I'm using the wrong secret key?
That means that you used the stripe account header to create the financial accounthttps://stripe.com/docs/connect/authentication
Did you mean to do that?
Where do you want this fa to live? The platform or connect account?
Ah okay okay I believe the connected account. I'm trying to make an outbound payment to a fa account and test out the received_credit webhook.
Then just pass the stripe account header again with that request
ah I see! okay trying it now
okay I got a different error
stripe.error.PermissionError: The provided key 'sk_test_***********************************************************************************************Djvf' does not have access to account 'fa_
I'm building off api design another dev already setup so I'm still trying to get my bearings. how can I authroize this type of interaction on our stripe dashboard?
Can you share the request id again?
It doesn't end up in api logs, I think because the stripe Error caught stopped the request.
Like this?
if so it still doesn't show
it only shows a get request I did to get the list of transactions for a fa account a few minutes before I tried out the connected account request
Can you share the code you're using to make the request?
here you go
# Set your secret key. Remember to switch to your live secret key in production.
# See your keys here: https://dashboard.stripe.com/apikeys
import stripe
stripe.api_key = "sk_test_REDACTED"
stripe.PaymentIntent.create(
amount=1000,
currency="usd",
automatic_payment_methods={"enabled": True},
stripe_account="fa_REDACTED",
)
You're passing financial account as the stripe_account...
The connect account id is what goes in stripe_account
Recommend reading that doc I sent: https://stripe.com/docs/connect/authentication
So if you're trying to make this request:
'Authorization': f'Bearer {SECRET_KEY}'
}
data = {
'financial_account': 'fa_REDACTED',
'amount': 1000,
'currency': 'usd'
}
response = requests.post(URL, headers=headers, data=data)```
You'd need to add a new header
With the connect account in there
Ah I see, I will read again and just make a new question if I'm still stuck. Thanks!
No problem
If this thread is still open you can ask in here
But we archive threads after a bit of inactivity
jobewone-connect-financialaccounts
it worked! I can use this call to test recived_credit webhook event handeling?
๐ Hello! Hopping in here since codename_duchess had to head out
We have a whole separate endpoint you can use for testing received credits https://stripe.com/docs/treasury/moving-money/financial-accounts/into/received-credits#testingrc
omg you're awesome thank you! ๐ญ