$profile_data['authorization_code'] = $authorization_code;
     $profile_data['transaction_id'] = $transaction_id;
     //$subscription_unit = 'months';
     //$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()) {