Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

The rate exchange problem of Paypal IPN


jobs.steven

Recommended Posts

Hello! I am a user who use the osCommerce-2.2rc1 for several months, that's a great on-line store!

 

In recent days, I got many troubles from the Paypal IPN. I set the US dollars as the default currency, and our store also support EUR, AUS, BPG and many other currencies, when the customers choose these currencies and the Paypal IPN as the payment to do businness with us, the Paypal IPN can't exchange the rate for these currencies to US dollars!

 

Does anyone got this trouble also? Please, give me some direction to do this problem, Thank you very much!

Link to comment
Share on other sites

I installed original Paypal IPN of osCommerce 2.2rc1 as our on-line store payment(http://www.epathchina.com), and these days I got a problem of it! I checked the source of paypal_ipn.php(line 330):

 

$parameters['amount'] = number_format($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax'], $currencies->get_decimal_places($currency));

 

it do not calculate the exchange rate of Currency, so I change it to:

 

$parameters['amount'] = number_format($currencies->get_value($my_currency) * ($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']), $currencies->get_decimal_places($currency));

 

but the Amount Paypal recieved is $0.00, I'm very confusing with it, hope to get solvable way to do this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...