Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zero Amount In Paypal During Checkout


supremehost.net

Recommended Posts

I have the same problem happening.

I responded to another message and have been searching, but no results so far.

 

Does it make a difference that I am in Canada (as a paypal business)?

Link to comment
Share on other sites

Hi, I have a problem that I can't figure out here. After I placed an order and checkout to make payment via Paypal, the 'Price' field become '0'.

 

My website address is:

http://www.officeshop.ca/home

 

Please advise what when wrong.

 

Thanks in advance

No problem as it seems. From the initial Paypal payment screen

Payment For Quantity Price

osCommerce 1 $40.00 CAD

Subtotal: $40.00 CAD

Shipping & Handling: $0.00 CAD

Total Amount: $40.00 CAD

Link to comment
Share on other sites

Would someone look at my site and confirm?

 

http://www.tunerwerx.com/catalog/

 

or http://www.tunerwerx.ca/catalog

 

I have been testing with different emails, addresses, whatever, but I still get the same result - Nothing.

 

paypal.com/cgi-bin/webscr?amount=0&x=68&y=9&return=http%3a%2f%2fwww%2etunerwerx%2eca%2fcatalog%2fcheckout_process%2ephp&shipping=0&currency_code=CAD&item_name=Tunerwerx%2ecom&business=info%40spiralgiant%2ecom&cancel_return=http%3a%2f%2fwww%2etunerwerx%2eca%2fcatalog%2fcheckout_payment%2ephp&cmd=_xclick]https://www.paypal.com/cgi-bin/webscr?amoun...amp;cmd=_xclick

 

Shouldn't oscommerce be asking for the total amount in the string above, rather than zero?

Link to comment
Share on other sites

Hi, i am in the UK but had a similar problem which i have now fixed you need to make sure your currency is correct, if you go to admin>localizations>currencies and then make sure you have one set up as a default (go to edit currency then select 'make default' and this may solve the problem if not then go in your 'define languages' section if you are using usd? then dont bother with this if you are using another currency find USD and replace with the currency code you wish to use. This should solve the problem.

Link to comment
Share on other sites

Thank you very much! What is the define currencies section?

 

Hi, i am in the UK but had a similar problem which i have now fixed you need to make sure your currency is correct, if you go to admin>localizations>currencies and then make sure you have one set up as a default (go to edit currency then select 'make default' and this may solve the problem if not then go in your 'define languages' section if you are using usd? then dont bother with this if you are using another currency find USD and replace with the currency code you wish to use. This should solve the problem.
Link to comment
Share on other sites

I had a friend test out the US one, it seems to work fine, but the Canadian one doesn't work. I was testing the www.tunerwerx.ca when I was having this problem.

 

There is only one currency, Canadian Dollars, and it is by default.

It is setup so that the owner email is the info at tunerwerx.ca and that is where the payment is made to.

 

I removed both the paypal and IPN and reinstalled them, but I don't think that really does anything.

I have CA as the code for currency, and I don't think I am missing anything...

Link to comment
Share on other sites

I had a friend test out the US one, it seems to work fine, but the Canadian one doesn't work. I was testing the www.tunerwerx.ca when I was having this problem.

 

There is only one currency, Canadian Dollars, and it is by default.

It is setup so that the owner email is the info at tunerwerx.ca and that is where the payment is made to.

 

I removed both the paypal and IPN and reinstalled them, but I don't think that really does anything.

I have CA as the code for currency, and I don't think I am missing anything...

The currency code should be CAD.

Link to comment
Share on other sites

My currency is AUD, and I have that listed as the only currency as well. When I try to make a test purchase, Paypal screen shows 0 USD - so I can tell it is still pulling USD from some where else, instead of AUD. Where else could it be from?

 

Someone else mentioned there is USD - in the defined languages - but where exactly??

Link to comment
Share on other sites

wheeloftime, that was the trick. Thank you very much.

 

pvenero, the currencies and languages are under localization. I noticed that the paypal transaction currency (under modules) doesn't have AUD listed, but you can select 'selected currency'.

So, if you used selected currency it should work? Or you might have to use the USD and make sure that your AUD are set at the right rate maybe?

Link to comment
Share on other sites

Yep I found the currencies and languages, and those are all set to AUD. In the paypal module, I have selected "selected currency", since there is no AUD option.

 

When I try a test transaction - it brings me to the paypal page with a zero balance of USD - instead of a balance in AUD. So there must be another USD setting that I am missing some where. Can USD be defined anywhere else?

Link to comment
Share on other sites

My currency is AUD, and I have that listed as the only currency as well. When I try to make a test purchase, Paypal screen shows 0 USD - so I can tell it is still pulling USD from some where else, instead of AUD. Where else could it be from?

 

Someone else mentioned there is USD - in the defined languages - but where exactly??

If you are using the stock Paypal module you have to add AUD to the accepted currency array. Look in (catalog)/includes/modules/payment/paypal.php and find:

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

change that to

	  if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD', 'AUD'))) {
	$my_currency = 'USD';
  }

Also in your (catalog)/includes/languages/english.php change

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'USD');

to

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'AUD');

if that is your only and/or main currency.

Link to comment
Share on other sites

Thank you so much for your help! This is the problem right there :

 

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

$my_currency = 'USD';

}

 

So I aded the 'AUD' as you said to do, and made sure I changed "my currency" to "AUD".

 

Why would the USD be hard-coded in there? Lame.

 

Thank you again for your help - it is truly appreciated!

Link to comment
Share on other sites

Thank you so much for your help! This is the problem right there :

 

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

$my_currency = 'USD';

}

 

So I aded the 'AUD' as you said to do, and made sure I changed "my currency" to "AUD".

 

Why would the USD be hard-coded in there? Lame.

 

Thank you again for your help - it is truly appreciated!

What this says is if the shop's currency is not canadian dollar or euro or UK pound or Japanese yen or US dollar then make the the currency US dollar. The reason for this is that Paypal, in that time, did not accept many currencies. The default had to be set to something accepetable, and mostly default, the US dollar.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...