Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USD conversion problem with paypal


waterclothing

Recommended Posts

Posted

This forum has taken care of most of my problems which is great - but now im stuck. The store I have allows me to choose between CAD and USD. Everything works in CAN until it gets to paypal. In paypal it appears (with proper conversion) as USD. This does not make sense since CAD is my primary is osC and in paypal. Also, I did the line 39 thing changing USD to CAD. Anyone else having this problem? Suggestions?

Posted
This forum has taken care of most of my problems which is great - but now im stuck. The store I have allows me to choose between CAD and USD. Everything works in CAN until it gets to paypal. In paypal it appears (with proper conversion) as USD. This does not make sense since CAD is my primary is osC and in paypal. Also, I did the line 39 thing changing USD to CAD. Anyone else having this problem? Suggestions?

The problem is probably due to the fact you do not have opened a Canadian currency account with your Paypal account. You should go into your Paypal account and through your Profile choose Currency Balances where you open the needed balances.

Posted
The problem is probably due to the fact you do not have opened a Canadian currency account with your Paypal account. You should go into your Paypal account and through your Profile choose Currency Balances where you open the needed balances.

My account is in Canadian dollars. I called and they said there is a code problem, where the variable is passed to paypal in USD. All of the site is set up and runs in CAD. Is there a page (*.php) when information is transferred? Paypal said that there is a transfer problem. I am also using the new IPN package, is there a default in there that I am not aware of that passes the information in USD?

 

thanks.

steve

Posted
My account is in Canadian dollars. I called and they said there is a code problem, where the variable is passed to paypal in USD. All of the site is set up and runs in CAD. Is there a page (*.php) when information is transferred? Paypal said that there is a transfer problem. I am also using the new IPN package, is there a default in there that I am not aware of that passes the information in USD?

 

thanks.

steve

yes, my bad reading. There is a part inside the paypal IPN which looks for the currency

	  if (MODULE_PAYMENT_PAYPAL_IPN_CURRENCY == 'Selected Currency') {
	$my_currency = $currency;
  } else {
	$my_currency = substr(MODULE_PAYMENT_PAYPAL_IPN_CURRENCY, 5);
  }
  if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {
	$my_currency = 'USD';
  }

and as you see the currency might get overridden to USD in case there is a currencey selected which is not one of the Paypal accepted currencies. CAD is within the allowed ones so should not give a problem towards Paypal.

 

What is in your (catalog)/includes/languages/english.php for

// 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');

 

Assuming you use the english.php for the default language and as you say the CAD for default currency make sure that line reads

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

Posted
yes, my bad reading. There is a part inside the paypal IPN which looks for the currency

	  if (MODULE_PAYMENT_PAYPAL_IPN_CURRENCY == 'Selected Currency') {
	$my_currency = $currency;
  } else {
	$my_currency = substr(MODULE_PAYMENT_PAYPAL_IPN_CURRENCY, 5);
  }
  if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {
	$my_currency = 'USD';
  }

and as you see the currency might get overridden to USD in case there is a currencey selected which is not one of the Paypal accepted currencies. CAD is within the allowed ones so should not give a problem towards Paypal.

 

What is in your (catalog)/includes/languages/english.php for

// 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');

 

Assuming you use the english.php for the default language and as you say the CAD for default currency make sure that line reads

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

 

Thanks for the two suggestions, I have tried already tired both of these. Line 39 is changed to CAD. When the other file has the default (USD) changed it would not let me 'carry' items to the paypal page. Upon talking to paypal the guy told me that when he clicks the confirm button and stops it before the new pages loads he can see that it is being passed in USD. I tried this and I cannot duplicate his experience (I was not/am not aware that one is able to stop between pages and view what information is being passed). Any other ideas?

 

thanks,

steve

Posted
Thanks for the two suggestions, I have tried already tired both of these. Line 39 is changed to CAD. When the other file has the default (USD) changed it would not let me 'carry' items to the paypal page. Upon talking to paypal the guy told me that when he clicks the confirm button and stops it before the new pages loads he can see that it is being passed in USD. I tried this and I cannot duplicate his experience (I was not/am not aware that one is able to stop between pages and view what information is being passed). Any other ideas?

 

thanks,

steve

Not really I am afraid. Those things should be sufficient and if they aren't something strange is going on. Do you have some special contributions installed which might interfere with the currencies ?

I would have to see your admin setup and be able to do some debugging to possibly get to the cause.

Posted
Not really I am afraid. Those things should be sufficient and if they aren't something strange is going on. Do you have some special contributions installed which might interfere with the currencies ?

I would have to see your admin setup and be able to do some debugging to possibly get to the cause.

 

Hello, can you email me about this if you dont mind? [email protected]

 

steve

Archived

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

×
×
  • Create New...