#mama_32699

1 messages ยท Page 1 of 1 (latest)

primal raftBOT
#

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.

mighty hawk
winter tapir
#

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?

mighty hawk
#

The link outlines exactly that. Generally you'd look at charges_enabled and payouts_enabled fields

winter tapir
#

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 ";
}

mighty hawk
#

Did you try and run the code?

winter tapir
#

I haven't invented it yet.

#

I'll try it now, please give me 1 minute.

mighty hawk
#

I mean sure it's possible? There's not really any logic there though so unclear what you're asking me

winter tapir
#

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.

mighty hawk
#

Then sure, you can check those fields I noted to infer whether the account can process payments

winter tapir
#

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 ๐Ÿ™‚

mighty hawk
#

np!