Jump to content

jobs.steven

Members
  • Content count

    6
  • Joined

  • Last visited

Everything posted by jobs.steven

  1. jobs.steven

    2.2RC1 Paypal IPN erroneous currency

    Change: line 325: $parameters['shipping'] = number_format($order->info['shipping_cost'], $currencies->get_decimal_places($currency)); to $parameters['shipping'] = number_format(($order->info['shipping_cost'] * $currencies->get_value($currency)), $currencies->get_decimal_places($currency)); line 326: $parameters['tax'] = number_format($order->info['tax'], $currencies->get_decimal_places($currency)); to $parameters['tax'] = number_format(($order->info['tax'] * $currencies->get_value($currency)), $currencies->get_decimal_places($currency)); line 330: $parameters['amount'] = number_format($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax'], $currencies->get_decimal_places($currency)); to $parameters['amount'] = number_format((($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($currency)), $currencies->get_decimal_places($currency)); Make amount/shipping charge/tax exchange rate from your default Currency...
  2. jobs.steven

    Official PayPal IPN Support Thread

    Hello, everybody! Anyone installed osCommerce2.2rc1? I found a problem of original Paypal_ipn of osCommerce2.2rc1, when post amount/shipping/tax to Paypal, it couldn't support the other Currencies, I set USD as the default Currency, and when you buy with other Currencise, it couldn't exchange the rate from USD when post amount/shipping/tax to Paypal. I want to know anybody who also had this problem? Today, I change the code in includes/modules/payment/paypal_ipn.php : line 325: $parameters['shipping'] = number_format($order->info['shipping_cost'], $currencies->get_decimal_places($currency)); to $parameters['shipping'] = number_format(($order->info['shipping_cost'] * $currencies->get_value($currency)), $currencies->get_decimal_places($currency)); line 326: $parameters['tax'] = number_format($order->info['tax'], $currencies->get_decimal_places($currency)); to $parameters['tax'] = number_format(($order->info['tax'] * $currencies->get_value($currency)), $currencies- >get_decimal_places($currency)); line 330: $parameters['amount'] = number_format($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax'], $currencies->get_decimal_places($currency)); to $parameters['amount'] = number_format((($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($currency)), $currencies->get_decimal_places($currency)); I test it in Paypal Developer test site, and the value is correct! But I'm very confused with it, why the osCommerce team could not think about the exchange rate of Paypal_ipn. They are a so good team! And I couldn't make sure my code is correct! I need some advice... Thank you very much!
  3. jobs.steven

    The rate exchange problem of Paypal IPN

    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.
  4. jobs.steven

    The rate exchange problem of Paypal IPN

    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!
×