#mama_32699
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mama-account-creation, 8 hours ago, 46 messages
Sure, there's no one field to denote status it's computed from various fields. Details: https://stripe.com/docs/connect/handling-api-verification#determine-if-verification-is-needed
I've read the document before and now, but I don't understand it well. Is there any field that indicates status or something similar where I can extract the information?
The link outlines exactly that. Generally you'd look at charges_enabled and payouts_enabled fields
Okay, thank you. Let me review it ๐
Is this possible?
$Resultaccount = \Stripe\accounts::retrieve([
$accountID,
$personID,
]);
$status = $Resultaccount->charges_enabled;
if( $status === 'true ){
echo " yes ";
}else{
echo "no ";
}
Did you try and run the code?
I mean sure it's possible? There's not really any logic there though so unclear what you're asking me
After creating a custom connected account, I want to verify that it is active so that the client can make charges. Therefore, I want code that checks whether this account is active and ready.
Then sure, you can check those fields I noted to infer whether the account can process payments
Okay, let me do one final check, and we'll close the conversation. Thank you, just a moment.
Okay, thank you very much, it worked for me @mighty hawk GG. Have a nice day! I'll leave the code here in case someone is interested ๐
np!