Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by svla299

  1. svla299

    Official PayPal IPN Support Thread

    Hi, I've installed osCommerce PayPal IPN v2.2 with a test account and everything works fine. However, I have the following problem: The pre-mature order is being generated as it should be. Then, if I don't press the order confirmation button to go to Paypal session expires after a while (24 mins) and I'm directed to login. Logging brings me back to checkout process and when I finally reach the order confirmation stage again a second pre-mature order gets generated! So I end up with two pre-mature orders and even more! It seems that cart_PayPal_IPN_ID is being unregistered. Is there a way to retain the last order and get rid of first pre-mature order? Where should I put the deletion statements?
  2. The code has to be rewriteen as follows: if (is_object($cart)) { $products = $cart->get_products(); for ($i = 0, $n = sizeof($products); $i < $n; $i++) { $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']); } if (sizeof($products) > 0) { $contents[] = array('text' => tep_draw_separator('pixel_black.gif', '100%', '1')); $contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($cart->show_total(), true, $currency)); } else { $contents[] = array('text' => ' '); } } good luck!