Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tomdox

Members
  • Content count

    6
  • Joined

  • Last visited

Profile Information

  1. tomdox

    Official PayPal IPN Support Thread

    I don't know whether the tax calculation in osC and PayPal are different. However this might be a special case for the amounts of the specific transaction. Maybe it works with the bigger part of the prices without rounding difference and this is only the particular exception? If not - no idea. rgds Tom
  2. tomdox

    Official PayPal IPN Support Thread

    Have you installed the tax-fix - contrib, by navyhost? http://www.oscommerce.com/community/contributions,2679 It fixes the amounts on the first page of the paypal payment. rgs Tom
  3. tomdox

    Official PayPal IPN Support Thread

    One more sign that the duplicate code in paypal_ipn.php and checkout_process.php messes things up. If you look for tep_db_perform(TABLE_ORDERS_PRODUCTS_DOWNLOAD, $sql_data_array); you will see the whole identical code in both files. Obviously the code does not work properly when it is performed by paypal_ipn.php Any more hints for this theory?
  4. tomdox

    Official PayPal IPN Support Thread

    I think all of this (including my html email problem) is due to some confusion created by the code duplicates in papypal_ipn.php and checkout_process.php. I understand why the order has to be treated in the first in order to be sent to PayPal before entered into the database. But why do the last process tasks (email confirmation, stock update and update bestsellers list) also have to be done within the payment module, within the before_process - function??? I made the following: 1. outcommented the code in paypal_ipn.php between // initialized for the email confirmation and end of tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); with the exception of tep_session_unregister('cart_PayPal_IPN_ID'); 2. changed in checkout_process.php require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); to if(!class_exists('order_total')) { include(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); } (if you do not apply this there will be a fatal error "cannot redeclare class order_total...") It works with one exception (stock and bestseller update not tested as I don't use them): The email confirmation does not contain the order totals. So I tried to add $order_totals to the global vars in function before_process in paypal_ipn.php: function before_process() { global $customer_id, $order, $sendto, $billto, $payment, $currencies, $cart, $cart_PayPal_IPN_ID, $order_totals; Now the order totals showed up in the email but the the order was duplicated in the database - the first marked as verified by paypal the second as pending. In the paypal account only the first was showing up as completed. I'm sure this is a small issue for a big programmer. Is anyone of them ever reading this "official support for paypal_ipn"?
  5. tomdox

    Official PayPal IPN Support Thread

    Did you have the same problem?
  6. tomdox

    Official PayPal IPN Support Thread

    Hello! I'm testing paypal_ipn.php,v 1.1.2.2 2005/08/04 06:05:08 modified by Michael Sasek together with EmailOrderText_1_3 in the sandbox. Both work fine but not together. email_order_text produces nice looking html emails when other payment methods are selected. But when payment method is Paypal IPN the order confirmation email is sent to the customer with a blank body. I recognized that the checkout_process.php is nearly completely contained in the paypal_ipn.php. So as the html email did not work I made exactly the same installation changes in both files. Paypal IPN still refused to send any text - also when the "Use MIME HTML When Sending Email" is set to "false". Can anyone give me a piece of advise?
×