Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal problem


shinyclothing

Recommended Posts

Posted
when I try to buy something from my own site it shows a box and ask me to type in units.... the order total and shipping cost disappoeared.

Make sure currency being passed is one paypal accepts, also login into your paypal account and make sure you have selected to accept that currency. paypal in the UK is auto selected to accept USD & GBP so if i want to accept any other currencies i have to manualy tick them, contact paypal if unsure how to select other currencies

 

In your payapl module do you have selected currency or to pass only currency selected from drop down list?

Posted
I have made it to (Primary) on my paypal balance so I guess its that u mean?

 

yes can you paste link so i can attempt checkout and see what is happening?

Posted

1 thing i noticed was this

MODULE_PAYMENT_PAYPAL_IPN_TEXT_TITLE

 

Sub-Total: 270.00NOK

Total: 337.00NOK

Payment Information

MODULE_PAYMENT_PAYPAL_IPN_TEXT_LAST_CONFIRM

 

Did you forgot to upload the paypal_ipn english file to includes/languages/english/modules/payment folder?

 

ok it is passing NOK

 

you can delete my 2 test orders name test test

 

ok in catalog/includes/modules/payment/paypal_ipn.php

 

find

 $my_currency = 'EUR';

 

change to

 $my_currency = 'NOK';

 

in admin for paypal IPN make sure you have this set as the following

Transaction Currency

Selected Currency

Posted

I did not add it to english yet ^^;

 

now it doesnt ask me to type in units anymore, and it show the item I am going to purchase, but the cost still doesnt show and it says my clothes cost 0nok

 

test-1.jpg

 

PayPal IPN v2.3.4.6

Enable PayPal IPN Module
True

Gateway Server
Live

E-Mail Address
[email protected]

Sort order of display.
0

Transaction Currency
Only NOK

Payment Zone
--none--

Set Preparing Order Status
Processing

Set PayPal Acknowledged Order Status
default

Set PayPal Completed Order Status
default

Transaction Type
Per Item

Move tax to total amount
False

Posted
I did not add it to english yet ^^;

 

now it doesnt ask me to type in units anymore, and it show the item I am going to purchase, but the cost still doesnt show and it says my clothes cost 0nok

 

test-1.jpg

 

PayPal IPN v2.3.4.6

Enable PayPal IPN Module
True

Gateway Server
Live

E-Mail Address
[email protected]

Sort order of display.
0

Transaction Currency
Only NOK

Payment Zone
--none--

Set Preparing Order Status
Processing

Set PayPal Acknowledged Order Status
default

Set PayPal Completed Order Status
default

Transaction Type
Per Item

Move tax to total amount
False

 

ok when you login into paypal and goto my account what currencies you have? i have

Currency

Balance

British Pound (Primary): £0.00 GBP

Australian Dollar: $0.00 AUD

Canadian Dollar: $0.00 CAD

See All Balances ...

Help Current Total in GBP: £0.00 GBP

 

you made Norwegian Korona (primary)?

Posted
Yes I made NOK as my primary

 

Norwegian Krone (Primary): 0.00 NOK

U.S. Dollar: $0.00 USD

 

can you try paypal standard and do a checkout and see if problem is still there ?

Posted

if I use standard I get this error : This recipient does not accept payments denominated in WS_Error_XClick_Pref_Foreign_Currency. Please contact the seller and ask him to update his payment receiving preferences to accept this currency.

Posted
if I use standard I get this error : This recipient does not accept payments denominated in WS_Error_XClick_Pref_Foreign_Currency. Please contact the seller and ask him to update his payment receiving preferences to accept this currency.

 

Damn ok i take it you used this paypal ipn osCommerce PayPal IPN Module 2.3.4.7 For 2.2MS2

 

1 last thing i can think off remove paypal ipn then reinstall it, see if that resets it, i cant see any reason why its not working

Posted
tried but still dont work

 

u know any other module that I can try?

create a file called paypal.php in catalog/includes/modules/payment folder then add code below in it

<?php

/*
 $Id: paypal.php,v 1.39 2003/01/29 19:57:15 hpdl Exp $
 Copyright (c) 2003 osCommerce, http://www.oscommerce.com
 Released under the GNU General Public License
*/

 class paypal {

var $code, $title, $description, $enabled;

// class constructor
function paypal() {
  global $order;

  $this->code = 'paypal';

  $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE;

  $this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION;

  $this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER;

  $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false);

  if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) {

	$this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;

  }

  if (is_object($order)) $this->update_status();

  $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr';

}

// class methods
function update_status() {
  global $order;

// disable the module if  free downloads

  if ($this->enabled == true) {

	global $cart;

	if ($cart->show_total() == 0.00) {

	  $this->enabled = false;

	}

  }

  if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) {

	$check_flag = false;

	$check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYPAL_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");

	while ($check = tep_db_fetch_array($check_query)) {

	  if ($check['zone_id'] < 1) {

		$check_flag = true;

		break;

	  } elseif ($check['zone_id'] == $order->billing['zone_id']) {

		$check_flag = true;

		break;

	  }

	}

	if ($check_flag == false) {

	  $this->enabled = false;

	}

  }

}

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 $order, $currencies, $currency;

  if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {

	$my_currency = $currency;

  } else {

	$my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);

  }

  if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD', 'NOK'))) {

	$my_currency = 'NOK';

  }

  $process_button_string = tep_draw_hidden_field('cmd', '_xclick') .

						   tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .

						   tep_draw_hidden_field('item_name', STORE_NAME) .

						   tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

						   tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

						   tep_draw_hidden_field('currency_code', $my_currency) .

						   tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

						   tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
  return $process_button_string;
}

function before_process() {
  return false;
}

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_PAYPAL_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 PayPal Module', 'MODULE_PAYMENT_PAYPAL_STATUS', 'True', 'Do you want to accept PayPal 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 ('E-Mail Address', 'MODULE_PAYMENT_PAYPAL_ID', '[email protected]', 'The e-mail address to use for the PayPal service', '6', '4', now())");

  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 ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'The currency to use for credit card transactions', '6', '6', 'tep_cfg_select_option(array(\'Selected Currency\',\'Only USD\',\'Only CAD\',\'Only EUR\',\'Only GBP\',\'Only JPY\'), ', now())");

  tep_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_PAYPAL_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPAL_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

}

function remove() {
  tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
}

function keys() {
  return array('MODULE_PAYMENT_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ID', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER');
}
 }
?>

 

now create a file paypal.php in includes/languages/english/modules/payment add this code in it

<?php
/*
 $Id: paypal.php,v 1.7 2002/11/01 05:39:27 hpdl Exp $

 Digistore v4.0,  Open Source E-Commerce Solutions
 http://www.digistore.co.nz

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 define('MODULE_PAYMENT_PAYPAL_TEXT_TITLE', 'PayPal');
 define('MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION', 'PayPal');
?>

Posted

it only works with usd

 

I cannot select nok in Transaction Currency

 

they only have

 

Selected Currency

Only USD

Only CAD

Only EUR

Only GBP

Only JPY

Posted
fixed the code to get nok in the option now, but it turn out to be the same >_<

can you paste link here of the paypal ipn contrbution and version you are using, i will try on my site

Posted

 

Ok ive just installed it and it works fine for me

heres what i have setup in paypal IPN

PayPal IPN v2.3.4.6

 Enable PayPal IPN Module
True

Gateway Server
Live

E-Mail Address
stephen skinner + blue yonder co uk (altered so robots cant read it)

Sort order of display.
0

Transaction Currency
Selected Currency

Payment Zone
--none--

Set Preparing Order Status
Preparing [PayPal IPN]

Set PayPal Acknowledged Order Status
Processing

Set PayPal Completed Order Status
Pending

Transaction Type
Aggregate

Move tax to total amount
True

Page Style


Debug E-Mail Address


cURL Proxy server


Enable Encrypted Web Payments
False

Your Private Key


Your Public Certificate


PayPals Public Certificate


Your PayPal Public Certificate ID


Working Directory


OpenSSL Location
/usr/bin/openssl

 

currencies

Euro  EUR  0.44520000   
 Norwegian Korona  NOK  3.91050005Info   
 NZ Dollar (default)  NZD  1.00000000Info

 

recheck install guide if you would like me to install on your site send me ftp details via PM, damn prtscr button has stopped working for me in linux :(

Archived

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

×
×
  • Create New...