#Baris - Account Information
1 messages ยท Page 1 of 1 (latest)
Sure
I can only one part of it because I am not too sure how to see the entire log from firebase cloud functions
The response I get back doesn't have details_submitted and charges_enabled fields
One part of it looks like this:
settings: {bacs_debit_payments: {},branding: { icon: null, logo: null, primary_color: null, secondary_color: null},card_issuing: { tos_acceptance: [Object] },card_payments: { decline_on: [Object], statement_descriptor_prefix: null, statement_descriptor_prefix_kana: null, statement_descriptor_prefix_kanji: null},dashboard: { display_name: 'Siftresale', timezone: 'Etc/UTC' },payments: { statement_descriptor: 'SIFTRESALE.COM', statement_descriptor_kana: null, statement_descriptor_kanji: null},
I don't think this object comes as a response to the account retrieval
Okay so are you not making direct API calls to the Stripe API? Can you look in your Stripe dashboard and find the GET request for /v1/accounts?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
You will need to clear the default filters since we generally only show POST requests
Well even though I pick GET from the methods, I still can't see any logs for this function.
This is how I call it:
const accountStatus = await stripe.accounts.retrieve( accountID, );
And the Account object that is returned does not include the charges_enabled and details_submitted boolean values?
Yes i get undefined for both values
I feel like I am missing something trivial but can't identify it
Can you share an Account ID you are trying to look up?
Thanks, looking
Okay thank you
Hmmm... I can see both properties were returned by the initial creation request
both are set to False initially
Yea but i need to check it periodically for seller onboarding because I am coding a marketplace app.
What do you think the cause of this could be?
Yes that makes sense.
Our API will return this object correctly. Where are you making the request?
I am making this request through Firebase cloud functions
I could post here the entire function if that is going to be helpful
Hmmmm...
I am using other functions for account creation and accountLink creation, they all work without a problem
With the same key
Yeah I think the problem is occurring with the retrieve function and how it returns the value.
Hmm
Any suggestions for fixing it?
Are you able to call retrieve with this acccount id
@low oriole Any ideas?
@olive swallow Hi, I see you as the online staff. Would you able to take a look as well? Would very appreciate it ๐
Hi ๐ there's a lot of threads currently, I'm doing my best to get to everything. I'll be back here as soon as I can.
Want to take a moment to recap and make sure I understand. You're retrieving one of your connected Express accounts, but the response that you're receiving doesn't contain all the information that you were expecting?
I am implementing a marketplace app in SwiftUI. I am currently in the process of coding the seller onboarding. After user gets back to app from stripe redirect in the onboarding process, I need to get account info to check details_submitted and charges_enabled.
I am in the test mode to be more accurate. The response I get doesn't contain either of those fields and I don't see a log for the get request on the dashboard.
I don't recall exactly which filters you'll need to enable/disable (we don't spend too much time in the dashboard) but you should be able to see the request if the Connect request filters are set correctly, and you're looking for GET requests.
I specified GET requests but I am not sure what you mean by the Connect request filters (do you mean the filter settings for search)
In this scenario, your Platform is making a request for your Connected Accounts (Stripe Connect is the underlying functionality that allows this) and so the request is actually logged on the Connected Account.
In the More... filter menu, can you turn on Incoming and Outgoing Connect requests?
And looking at the sample of the response that you provided above, I see that was the settings hash that was being displayed. Was that the only content of the response that you received, or was that wrapped in the larger Account object?
I will answer your second question after this
I can finally see the GET request after that setting
This is what I see on the logs
req_H7ImLZExsDppc9
For the question about the response: I am using Firebase Cloud Functions logs to check the response body. I am still trying to see the full object but the log only shows this part of it. I believe it is cut because it is long
I'm glad you were able to find the request! I'm not too familiar with Firebase Cloud Functions, so I'm not too sure what logging options they offer to you. Do they have something similar to console.log or print where you can dump the entire contents of the response to a log?
Hi toby
I noticed the error
I was using camelCase instead of underscore ๐ฉ
Thank you for sticking through
Wooh, glad you were able to find it!