linked_user_id != $current_user_id) {
$signed_up = AreteX_WPI::payeeSignedUp($current_user_id);
$_SESSION['current_aretex_payee'] = $signed_up;
}
if (! $signed_up) {
echo "Problem with Payee User Validation ... ";
return;
}
$license = AreteX_WPI::getBasLicense();
$business_name = $license->Business_Name;
$account_id = $signed_up->id;
$obj = AreteX_WPI::payeeAccountInfo($account_id);
?>
name;
$obj = AreteX_WPI::payeePaymentAccount($account_id);
if (is_object($obj))
$payment_account = get_object_vars($obj);
else
$payment_account = $obj;
//$payment_options = getGeneralResource('options');
$payment_options = AreteX_WPI::getPayeePaymentOptions($account_id);
$current_option = 'Currently, you have no valid payment authorization within this system. To receive payments from '.$business_name.
', you must authorize automatic payments as described below.';
$options = '';
$payment_authorized = false;
$sel_opt = false;
foreach($payment_options as $opt)
{
// echo $payment_account['payment_type']->value. '---' .$opt->id_payment_type . '
';
if ((! empty($payment_account['payment_type'])) && is_object($payment_account['payment_type']) && ( $payment_account['payment_type']->value == $opt->id_payment_type) )
{
$payment_authorized = true;
$opt_name = $opt->name;
$current_option = 'Your account is now authorized for payment to you with '.$opt->name.'. '.
' You can now track your payments through "Payments Pending" and "Payments Sent" on the Payments menu.';
$options .= ''."\n";
$sel_opt = $opt;
}
else
{
// echo "\nPayment Account Not = ".$opt->name;
$options .= ''."\n";
}
}
?>