- Edited
I'm trying to redirect if connected account doesn't have the right credentials for transfers. The results according to documentation is boolean.
require_once 'subscription/stripe-php/init.php';
\Stripe::setApiKey($STRIPE_API_KEY);
$account = \Stripe\Account::retrieve($STRIPE_DEST);
if ($account->transfers_enabled == FALSE){
header('Location: http://www.site.com');
}