Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New to web design and obviously to osCommerce - need help


aguzman

Recommended Posts

Posted

Hi, our website is hosted by Ipowerweb and they included osCommerce in their hosting package. I installed and configured and placed an item we would like to sell. In osCommerce's administration section I see a list of companies for credit card payments online. How do I set this up so that we can start accepting online payments? Please forgive me if this question is dumb but osCommerce seems to be completely configured and I'm not sure how I would integrate paypal or verisign into it so that we can accept live transactions.

 

Any help or link that provides the info I'm seeking would be appreciated.

 

Thank you :blink:

Posted
Hi, our website is hosted by Ipowerweb and they included osCommerce in their hosting package. I installed and configured and placed an item we would like to sell. In osCommerce's administration section I see a list of companies for credit card payments online. How do I set this up so that we can start accepting online payments? Please forgive me if this question is dumb but osCommerce seems to be completely configured and I'm not sure how I would integrate paypal or verisign into it so that we can accept live transactions.

 

Any help or link that provides the info I'm seeking would be appreciated.

 

Thank you :blink:

 

go to contribution page and type search for paypal and other online payment methods. there is so many contributions that you will have to decide which of them you will adopt.

Posted

you can configure paypal easily in the admin area under modules--just click on it enable to true and enter your paypal info---then login to paypal and set the redirect page there to your checkout_process.php page

 

Hope this helps!!

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Posted

Thanks, that does help a lot. I downloaded and looked at the verisgin contribution for payflow link but not exactly sure where to input the verisign login information. The instructions say at line 52 but I'm not a programmer and not sure where to insert the verisign login info. Can someone type out the line that I need to alter?

 

I will also look into Pay Pal setup and their website.

 

Thanks again.

Posted

post the verisign file here and someone will help you find line 52 to edit

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Posted

Thanks rabbitseffort, here is the code from the verisign php file:

 

<?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->sort_order = MODULE_PAYMENT_VERISIGN_SORT_ORDER;
  $this->enabled = ((MODULE_PAYMENT_VERISIGN_STATUS == 'True') ? true : false);
//	  $this->form_action_url = 'https://payflowlink.verisign.com/payflowlink.cfm';
  $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 $_POST, $HTTP_SERVER_VARS, $order, $total_cost, $total_tax, $shipping_cost, $customer_id, $sendto;

  $customer_query = hmws_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 = hmws_db_fetch_array($customer_query);
  $delivery_query = hmws_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 = hmws_db_fetch_array($delivery_query);

   echo hmws_draw_hidden_field('LOGIN', MODULE_PAYMENT_VERISIGN_LOGIN) .
   hmws_draw_hidden_field('PARTNER', MODULE_PAYMENT_VERISIGN_PARTNER) .
   hmws_draw_hidden_field('TYPE', MODULE_PAYMENT_VERISIGN_TYPE) .
   hmws_draw_hidden_field('AMOUNT', number_format($order->info['total'], 2, '.', '')).
   hmws_draw_hidden_field('NAME', $customer_values['customers_firstname'] . ' ' . $customer_values['customers_lastname']) .
   hmws_draw_hidden_field('ADDRESS', $customer_values['entry_street_address']) .
   hmws_draw_hidden_field('CITY', $customer_values['entry_city']) .
   hmws_draw_hidden_field('STATE', hmws_get_zone_name($customer_values['entry_country_id'], $customer_values['entry_zone_id'], $customer_values['entry_state'])) .
   hmws_draw_hidden_field('ZIP', $customer_values['entry_postcode']) .
   hmws_draw_hidden_field('COUNTRY', hmws_get_country_name($customer_values['entry_country_id'])) .
   hmws_draw_hidden_field('PHONE', $customer_values['customers_telephone']) .
   hmws_draw_hidden_field('EMAIL', $customer_values['customers_email_address']) .
   hmws_draw_hidden_field('NAMETOSHIP', $delivery_values['entry_firstname'] . ' ' . $delivery_values['entry_lastname']) .
   hmws_draw_hidden_field('ADDRESSTOSHIP', $delivery_values['entry_street_address']) .
   hmws_draw_hidden_field('CITYTOSHIP', $delivery_values['entry_city']) .
   hmws_draw_hidden_field('STATETOSHIP', hmws_get_zone_name($delivery_values['entry_country_id'], $delivery_values['entry_zone_id'], $delivery_values['entry_state'])) .
   hmws_draw_hidden_field('ZIPTOSHIP', $delivery_values['entry_postcode']) .
   hmws_draw_hidden_field('COUNTRYTOSHIP', hmws_get_country_name($delivery_values['entry_country_id'])) .
   hmws_draw_hidden_field('PHONETOSHIP', $customer_values['customers_telephone']) .
   hmws_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 = hmws_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_STATUS'");
	$this->check = hmws_db_num_rows($check_query);
  }
  return $this->check;
}

function install() {
  hmws_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', 'hmws_cfg_select_option(array(\'True\', \'False\'), ', now())");
  hmws_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())");
  hmws_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())");
  hmws_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())");
  hmws_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_VERISIGN_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
}

function remove() {
  hmws_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_STATUS'");
  hmws_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_LOGIN'");
  hmws_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_PARTNER'");
  hmws_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_TYPE'");
  hmws_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_VERISIGN_SORT_ORDER'");
}

function keys() {
  $keys = array('MODULE_PAYMENT_VERISIGN_STATUS', 'MODULE_PAYMENT_VERISIGN_LOGIN', 'MODULE_PAYMENT_VERISIGN_PARTNER', 'MODULE_PAYMENT_VERISIGN_TYPE', 'MODULE_PAYMENT_VERISIGN_SORT_ORDER');

  return $keys;
}
 }
?>

Posted

Can someone please tell me where I put the Verisign Account information in this code I got from the Verisign Flow link contribution.

 

Thank you

Posted

Hello, I think I have a problem related to this too. I have been on the paypal website but, cannot for the life of me figure out what I need to do. Everything seems to point to 'learn more' Could you advise...

 

many thanks

Posted

Hi rhodgkiss2001, For the Verisign Contribution all I had to do was input my login name and transaction type "S" for sales. I'm not sure how PayPal has it set up. I know osCommerce supports PayPal and if you are redirecting to PayPal's website then you need to enter in the return address to "yourdomain"/checkout_process.php.

 

I'm still have a few problems myself with the redirection with Verisign so that's pretty much all I can tell you. Im new to this myself.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...