#rickrodrigues
1 messages ยท Page 1 of 1 (latest)
Request req_w1grm4Y57Q4VNU
So, i need connect in account to ballance. I used plataform API KEY the sandbox
Are you trying to get information from a connected account?
If so, you need to use the secret key of the platform account, and use the Stripe-Account header (with the account ID of the connected account). You can learn more about this here: https://stripe.com/docs/connect/authentication
Can you clarify what you are trying to do? Are you a platform using connect? Are you trying to make a payment on a connected account?
Sure.
- My application use woocomerce, i use the woocommerce plugin with custom checkout.
- I my checkout the custom is created, the payment method is created, and subscription is created.
i need the check ballance the customer using API for backoffice to make analisys the ballance the client.
I'm building the painel using python with django to connect in stripe.conection to show the financial details about the customer.
to this i'm using:
- c = stripe.Customer.retrieve("cus_NeFaE0EFTdLdmg")
Customer retrive to retrieve the payment Method.
- pm = stripe.PaymentMethod.retrieve(
"pm_1Msx5iEoeVk9irVHmb8wjjYD",
)
Payment method to retrive de id Account
When i tryng retrive in account using the id account i receiver this error:
stripe.financial_connections.Account.retrieve("fca_1Msx5eEoeVk9irVHdLqalQdT")
Do you understand?
- My application use woocomerce, i use the woocommerce plugin with custom checkout.
Got it. FYI we know nothing about woocomerce here, but I can try to help on the Stripe side of things.
Yes
- I my checkout the custom is created, the payment method is created, and subscription is created.
Created where? On your own Stripe account?
Exactly. In my stripe account
I have the customer, i have the payment method all in my stripe account.
Hello there ๐
Stepping in as soma needs to step away soon
Doing well ๐ Looks like there's a ton of context in the thread
Can you give me a super short summary while I catch up?
Yes, i can't connect with account to get ballance in api stripe.financial_connections.Account.retrieve
I trying use the account ID
but return erro to me evertime.
It looks like the financial account was created directly on the connected account because you used the Stripe-Account header in the request
https://dashboard.stripe.com/test/logs/req_u12HpAj2OBhUhx
However, when retrieving you are not passing the Stripe-account (connected account ID) as the header
Oh are you using the connected account API key?
Where i find the account API key?
It is the key the account stripe in dashboard>configuration>private key?
or is the key generated in sometime?
If you're describing woocommerce UI, we won't know anything about it.
On Stripe, it should be under Developers > API keys section
Yes
i used this key
stripe.api_key = settings.KEY_STRIPE
settings.KEY_STRIPE is the key than i take in the stripe painel
Here.
stripe.api_key =MY_KEY
fa = stripe.financial_connections.Account.retrieve("fca_1Msx5eEoeVk9irVHdLqalQdT")
I try this way, but return the error mencioned above
It is a permissions issue since the platform created the Financial Connection account so the Connected Account can't refresh the balance or work with the Financial Connection account directly.
You need to work with the platform (woocommerce) to get this info. The error message is misleading and we have already reported this internally & we will improve that.
I can't use woocommerce to this. I need make the integration with my manager painel. The woocommerce is limited and i used just to make my e-commerce service. I need this data in my control painel. What do i do?