Continue to payment processor
Were sorry
This page is expecting information that appears to be missing.
If you are trying to make a donation, please start at our Donate Online page. If you are encountering difficulty making a donation, please contact us at 651-222-2193 or through our Contact page.
If you are looking for other information on this site, please continue using the menu at the left or the search box at the upper right.
$b) { $key = pack("H*",md5($key)); } $key = str_pad($key, $b, chr(0x00)); $ipad = str_pad('', $b, chr(0x36)); $opad = str_pad('', $b, chr(0x5c)); $k_ipad = $key ^ $ipad ; $k_opad = $key ^ $opad; return md5($k_opad . pack("H*",md5($k_ipad . $data))); } // Calculate and return fingerprint // Use when you need control on the HTML output function CalculateFP ($loginid, $x_tran_key, $amount, $sequence, $tstamp, $currency = "") { return (hmac ($x_tran_key, $loginid . "^" . $sequence . "^" . $tstamp . "^" . $amount . "^" . $currency)); } // Inserts the hidden variables in the HTML FORM required for SIM // Invokes hmac function to calculate fingerprint. function InsertFP ($loginid, $x_tran_key, $amount, $sequence, $currency = "") { $tstamp = time (); $fingerprint = hmac ($x_tran_key, $loginid . "^" . $sequence . "^" . $tstamp . "^" . $amount . "^" . $currency); echo ('' ); echo ('' ); echo ('' ); return (0); } /* end authnet code */ /* essentially an unaltered copy of webform's fetch submission code */ function fmr_fetch_submission($sid) { $submission = array(); $query = 'SELECT sd.nid, sd.sid, s.submitted, sd.cid, sd.no, sd.data ' . 'FROM {webform_submitted_data} as sd ' . 'LEFT JOIN {webform_submissions} as s on (sd.sid = s.sid) '. 'WHERE sd.sid = %d'; $res = db_query($query, $sid); $recs = db_num_rows($res); if($recs >= 1) { $row = db_fetch_array($res); $submission['nid'] = $row['nid']; $submission['sid'] = $row['sid']; $submission['submitted'] = $row['submitted']; while($row) { $submission['data'][$row['cid']]['value'][$row['no']] = $row['data']; $row = db_fetch_array($res); } } return $submission; } // end function fmr_fetch_submission function get_submission_data($submitted) { foreach ($submitted['data'] as $k => $v) { $data[$k] = $v['value'][0]; } return $data; } function get_authnet_keys() { $authnet_keys_result = NULL; $query = 'SELECT fmr_a_net_key.login_id, fmr_a_net_key.txn_key ' . 'FROM {fmr_a_net_key}'; $res = db_query($query); $recs = db_num_rows($res); if ($recs == 1) { $authnet_keys_result = array(); $row = db_fetch_array($res); $authnet_keys_result['login_id'] = $row['login_id']; $authnet_keys_result['txn_key'] = $row['txn_key']; } return $authnet_keys_result; } $sid = $_GET['sid']; $submission = fmr_fetch_submission($sid); /* unpack submission values and make them idenifiable variables */ $submission_data = get_submission_data($submission); #$amount = $submission_data['1175266217']; #$last_name = $submission_data['1175269924']; #$first_name = $submission_data['1175269796']; #$note = $submission_data['1175270190']; #$type = $submission_data['1175270025']; $amount = $submission_data[1]; $last_name = $submission_data[3]; $first_name = $submission_data[2]; $note = $submission_data[5]; $type = $submission_data[4]; $submission_id = $sid; if ((empty($submission)) || (empty($submission_data)) ) { ?>Were sorry
We were unable to find the donation info needed to continue to the payment form.
If you are trying to make a donation, please start at our Donate Online page. If you are encountering difficulty making a donation, please contact us at 651-222-2193 or through our Contact page.
If you are looking for other information on this site, please continue using the menu at the left or the search box at the upper right.
Continue to payment form
We use payment processing services provided by Authorize.net to ensure that your senstive credit card informtion remains secure. Click Continue below to go to the secure payment form on their web site. After your donation is completed, you will have the opportunity to return to the Friends of the Mississippi River web site.