//$start_date = date("Y-m-d", strtotime("+ 1 year"));
     // SCREW PODSCMS... just do a plain ole SQL update
     $sql = "UPDATE wp_pod_tbl_vendor_profiles SET ";
     $sql_fields = array();
     foreach ($profile_data as $key => $val) {
         $sql_fields[] .= "{$key}='{$val}'";
     }
     $sql .= implode(', ', $sql_fields);
     $sql .= " WHERE vendor = {$active_user_id}";
     pod_query($sql);
     $success = true;
 } else {
     if ($payment->isDeclined()) {
         // Get reason for the decline from the bank. This always says,
         // "This credit card has been declined". Not very useful.
         $reason = $payment->getResponseText();
         $avs_result = $payment->getAVSResponse();
         // not used at this time
         $cvv_result = $payment->getCVVResponse();
         // not used at this time
         // Politely tell the customer their card was declined
         // and to try a different form of payment.
         $err[] = "There was an error processing this credit card. The response from the bank was: {$reason}";
         //$err[] = "AVS Result: $avs_result";
         //$err[] = "CVV Result: $cvv_result";
         // TODO: in case of errors, email the above info to the admin
     } else {
         if ($payment->isError()) {
             // Get the error number so we can reference the Authnet
             // documentation and get an error description.
             $error_number = $payment->getResponseSubcode();
/**
 * Authorize and Prosses order using the AuthnetAIM.class.php class.
 * Fill object of the class ($payment), then send to process order,
 * this order then gives a echo for the payment error or recieved.
 * Tutorial: http://www.johnconde.net/blog/tutorial-integrating-the-authorizenet-aim-api-with-php/
 * @param  object $ccInfo Object containing info for the Authorize.NET API.
 * @return void
 */
function wc_AuthorizeCard($ccInfo)
{
    require 'AuthnetAIM.class.php';
    $payment = new AuthnetAIM("52H4eeYq", "7RD64g4h993VE6rp", true);
    $payment->setTransaction($ccInfo->getCreditCard(), $ccInfo->getExpiration(), $ccInfo->getTotal());
    $payment->setParameter("x_description", $ccInfo->getProduct());
    $payment->setParameter("x_email", $ccInfo->getEmail());
    $payment->setParameter("x_first_name", $ccInfo->getName());
    $payment->process();
    if ($payment->isApproved()) {
        echo "Payment Received/Approved";
    }
    if ($payment->isError()) {
        $error_number = $payment->getResponseSubcode();
        $error_message = $payment->getResponseText();
        echo $payment->getResponseMessage();
    }
}