aguzman Posted March 17, 2006 Posted March 17, 2006 Ok, Here is exactly what I'm doing and what is going wrong. Downloaded Contribution VerisignPayFlowLink 2/2006. installed two php files from that contribution and inserted my Verisign login information, Partner info which is Verisign and Transaction type 's'. Then I went to my Verisign Account management page and entered in my return address as a POST and URL to checkout_process.php my full URL is https://host129.ipowerweb.com/~nespapoo/osC...out_process.php Save and closed out Return to my store and I login. I purchase my test item and proceed to check out. When I hit the confirmation button I get redirected to Verisign and all the information follows - price - address - shipping address- etc.. I enter the test credit card numbers and proceed to complete the payment through Verisign. Verisign then shows the Acknowledgement that the card was accepted and a button to return to the store. This is the problem. I'm loosing my session information and I have to log back into the store. After I login my shopping cart still has the item in it. I'm not a programmer and really need help here. Please someone has to be using Verisign PayFlowLink. Is there something I need to activate in the osCommerce admin page: My current setup for sessions is: Session Directory /temp Force Session Cookies - false check SSL Session ID - True Check User Agent - True check IP Address - false prevent spider sessions - false recreate session - true Below is the PHP file called Verisign that is from the contribution. <?php /* $Id: verisign.php,v 1.16 2002/01/20 16:07:40 hpdl Exp $ The Exchange Project - Community Made Shopping! http://www.theexchangeproject.org Copyright (c) 2000,2001 The Exchange Project Released under the GNU General Public License */ class verisign { var $code, $title, $description, $enabled; // class constructor function verisign() { $this->code = 'verisign'; $this->title = MODULE_PAYMENT_VERISIGN_TEXT_TITLE; $this->description = MODULE_PAYMENT_VERISIGN_TEXT_DESCRIPTION; $this->enabled = ((MODULE_PAYMENT_VERISIGN_STATUS == 'True') ? true : false); $this->form_action_url = 'https://payments.verisign.com/payflowlink'; } // class methods function javascript_validation() { return false; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $order, $total_cost, $total_tax, $shipping_cost, $customer_id, $sendto; $customer_query = tep_db_query("select c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_email_address, ab.entry_street_address, ab.entry_city, ab.entry_country_id, ab.entry_zone_id, ab.entry_state, ab.entry_postcode from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " ab on c.customers_default_address_id = ab.address_book_id and c.customers_id = ab.customers_id where c.customers_id = '" . $customer_id . "'"); $customer_values = tep_db_fetch_array($customer_query); $delivery_query = tep_db_query("select ab.entry_firstname, ab.entry_lastname, ab.entry_street_address, ab.entry_city, ab.entry_country_id, ab.entry_zone_id, ab.entry_state, ab.entry_postcode from " . TABLE_ADDRESS_BOOK . " ab where ab.address_book_id = '" . $sendto . "' and ab.customers_id = '" . $customer_id . "'"); $delivery_values = tep_db_fetch_array($delivery_query); echo tep_draw_hidden_field('LOGIN', 'mylogin') . tep_draw_hidden_field('PARTNER', 'usually verisign') . tep_draw_hidden_field('TYPE', 'S') . tep_draw_hidden_field('AMOUNT', number_format($order->info['total'], 2, '.', '')). tep_draw_hidden_field('NAME', $customer_values['customers_firstname'] . ' ' . $customer_values['customers_lastname']) . tep_draw_hidden_field('ADDRESS', $customer_values['entry_street_address']) . tep_draw_hidden_field('CITY', $customer_values['entry_city']) . tep_draw_hidden_field('STATE', tep_get_zone_name($customer_values['entry_country_id'], $customer_values['entry_zone_id'], $customer_values['entry_state'])) . tep_draw_hidden_field('ZIP', $customer_values['entry_postcode']) . tep_draw_hidden_field('COUNTRY', tep_get_country_name($customer_values['entry_country_id'])) . tep_draw_hidden_field('PHONE', $customer_values['customers_telephone']) . tep_draw_hidden_field('EMAIL', $customer_values['customers_email_address']) . tep_draw_hidden_field('NAMETOSHIP', $delivery_values['entry_firstname'] . ' ' . $delivery_values['entry_lastname']) . tep_draw_hidden_field('ADDRESSTOSHIP', $delivery_values['entry_street_address']) . tep_draw_hidden_field('CITYTOSHIP', $delivery_values['entry_city']) . tep_draw_hidden_field('STATETOSHIP', tep_get_zone_name($delivery_values['entry_country_id'], $delivery_values['entry_zone_id'], $delivery_values['entry_state'])) . tep_draw_hidden_field('ZIPTOSHIP', $delivery_values['entry_postcode']) . tep_draw_hidden_field('COUNTRYTOSHIP', tep_get_country_name($delivery_values['entry_country_id'])) . tep_draw_hidden_field('PHONETOSHIP', $customer_values['customers_telephone']) . tep_draw_hidden_field('EMAILTOSHIP', $customer_values['customers_email_address']); return $process_button_string; } function before_process() { return true; } function after_process() { return false; } function output_error() { return false; } function check() { if (!isset($this->check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_STATUS'"); $this->check = tep_db_num_rows($check_query); } return $this->check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable VeriSign', 'MODULE_PAYMENT_VERISIGN_STATUS', 'True', 'Do you want to accept VeriSign payments?', '6', '3', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Login ID', 'MODULE_PAYMENT_VERISIGN_LOGIN', '', 'Your VeriSign Login ID.', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Partner ID', 'MODULE_PAYMENT_VERISIGN_PARTNER', '', 'Your VeriSign Partner ID.', '6', '3', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Transaction Type', 'MODULE_PAYMENT_VERISIGN_TYPE', 'S', 'What is the transaction Type? (S = Sales)', '6', '3', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_STATUS'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_LOGIN'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_PARTNER'"); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_TYPE'"); } function keys() { $keys = array('MODULE_PAYMENT_VERISIGN_STATUS', 'MODULE_PAYMENT_VERISIGN_LOGIN', 'MODULE_PAYMENT_VERISIGN_PARTNER', 'MODULE_PAYMENT_VERISIGN_TYPE'); return $keys; } } ?>
aguzman Posted March 17, 2006 Author Posted March 17, 2006 I'm searching high and low with no results. Reaching the end of the line here...two days of fustration... :-(
olimits7 Posted March 17, 2006 Posted March 17, 2006 This forum is the worst. I've posted messages before, but I never get a response. I don't get any help what's so ever. I don't know where all the moderators are that should be trying to support this forum. It stinks. I hope someone can help you out, I would if I had the knowledge. olimits7
Guest Posted March 19, 2006 Posted March 19, 2006 I'm searching high and low with no results. Reaching the end of the line here...two days of fustration... :-( Maybe if you post with a title that tells what the subject is you might get more lookers. I don't knw. I'm new myself.
aguzman Posted March 19, 2006 Author Posted March 19, 2006 Sheila, this post is after about 4 or five other post of the same topic. If you search you will see how many postings I did with the a descriptive topic with no help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.