Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution]Paypal IPN - Devosc


devosc

Recommended Posts

Thanks for your help.

 

Stupid question, where's paypal_ipn.php?

 

This is the Paypal_IPN module support thread so I figured you must be using it.

 

catalog/modules/payment/paypal_ipn.php

 

The reason I think you need to edit 3 files is that the form tag is built from the html_output.php file. The variable you need is in paypal_ipn.php and it is all put together and the tag created in checkout_confirm.php. If you just hard code a target=_blank into checkout_confirm I think it will open all of your checkout_confirmation pages in a new window, when in fact you only want a new window for paypal.

 

Does that make sense?

 

Cheers

Carolyn

Link to comment
Share on other sites

  • Replies 2.1k
  • Created
  • Last Reply

Top Posters In This Topic

I'm using vs. PayPal_Shopping_Cart_IPN_v3.1.5 and there is no paypal_ipn.php. There is modules/payment/paypal.php but there is no code close to what you mention.

 

Thanks again.

 

 

This is the Paypal_IPN module support thread so I figured you must be using it.

 

catalog/modules/payment/paypal_ipn.php

 

The reason I think you need to edit 3 files is that the form tag is built from the html_output.php file. The variable you need is in paypal_ipn.php and it is all put together and the tag  created in checkout_confirm.php. If you just hard code a target=_blank into checkout_confirm I think it will open all of your checkout_confirmation pages in a new window, when in fact you only want a new window for paypal.

 

Does that make sense?

 

Cheers

Carolyn

Link to comment
Share on other sites

Hello,

 

I wonder why nobody can answer my #1675 Post. Is it too complicated, too silly or you just ignore me. I though this support forum for everybody having problems with PayPal IPN. May be I was wrong. That makes me sad. :'( :(

Link to comment
Share on other sites

Noboy knows off the top of their head or they don't care to try.

You can see my struggles on this thread.

If anyone would have just taken 2 minutes to try something on their working IPN and tell me the result it would have saved me 4 days of troubleshooting.

 

The best thing I have read here is-

If you can't learn to code it and can't afford to pay someone stop immediately.

If you are trying to learn be prepared for a very steep learning curve.

 

The type of questions that get answered here seem to be very basic-

What is the link to download IPN

What should this setting be...

 

Any questions that cause people to need to look in code or 'work' seem to get ignored for the most part.

 

Simple knowns are answered free other answers require a lot of patience or a fee :)

Link to comment
Share on other sites

What? Many people in the community help. You can't expect perfect support with free software. Note how Cazz has been trying to help me.

 

You also need to realize that the majority of people here (like me) are learning and asking questions. It's hard to help everyone when there are only so many experts.

 

If you expect to recieve help a positive attitude is the better way to go.

 

My two cents,

 

Patrick

 

 

 

Hello,

 

I wonder why nobody can answer my #1675 Post. Is it too complicated, too silly or you just ignore me. I though this support forum for everybody having problems with PayPal IPN. May be I was wrong. That makes me sad. :'(  :(

Link to comment
Share on other sites

i'm not good at php script, can anyone help me out.....

 

i record this error:

 

Parse error: parse error, unexpected ';', expecting ')' in /home/virtual/site24/fst/var/www/html/myshop/admin/includes/boxes/customers.php on line 29my customers.php

 

<?php

/*

$Id: customers.php,v 1.1.1.1 2003/08/14 07:59:00 nickle Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2002 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- customers //-->

<tr>

<td>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('text' => BOX_HEADING_CUSTOMERS,

'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'));

 

if ($selected_box == 'customers') {

$contents[] = array('text' =>

//Admin begin

// '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>'.

//begin PayPal_Shopping_Cart_IPN

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>';

//end PayPal_Shopping_Cart_IPN

 

tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .

tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));

//Admin end

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- customers_eof //-->

Link to comment
Share on other sites

i'm not good at php script, can anyone help me out.....

 

i record this error:

 

Parse error: parse error, unexpected ';', expecting ')' in /home/virtual/site24/fst/var/www/html/myshop/admin/includes/boxes/customers.php on line 29my customers.php

 

<?php

/*

$Id: customers.php,v 1.1.1.1 2003/08/14 07:59:00 nickle Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2002 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- customers //-->

<tr>

<td>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('text' => BOX_HEADING_CUSTOMERS,

'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'));

 

if ($selected_box == 'customers') {

$contents[] = array('text' =>

//Admin begin

// '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>'.

//begin PayPal_Shopping_Cart_IPN

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>';

//end PayPal_Shopping_Cart_IPN

 

tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .

tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));

//Admin end

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- customers_eof //-->

 

try changing this:

 

//begin PayPal_Shopping_Cart_IPN

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>';

 

to this:

 

//begin PayPal_Shopping_Cart_IPN

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>')

 

Notice no ; but ) after </a>'. I hope it'll help.

Link to comment
Share on other sites

$contents[] = array('text' =>

'<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>'.

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>';

 

// should the ; above be a . ?

 

tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .

tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS));

//Admin end

}

 

What are we trying to make the array 'text' equal?

All those lines combined together in one string?

Link to comment
Share on other sites

Anyone else have a thought? :'(

 

Thanks for everyones help.

 

Does anyone know how to make line 354 in checkout_confirmation.php open a new window?  I have tried very very unsuccessfully.

 

Thanks

 

$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

 

I tried several steps including the below mess to no avail.

 

$form_action_url = '<a href="' . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL') . '" target="_blank">' . '</a>';

 

I got the idea from another mod that shows this code to open a window.

 

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '" target="_blank">' . $random_product['products_name'] . '</a>

Link to comment
Share on other sites

try changing this:

 

//begin PayPal_Shopping_Cart_IPN

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>';

 

to this:

 

//begin PayPal_Shopping_Cart_IPN

'<a href="' . tep_href_link(FILENAME_PAYPAL, '', 'NONSSL') . '" class="menuBoxContentLink">'. BOX_CUSTOMERS_PAYPAL .'</a>')

 

Notice no ; but ) after </a>'. I hope it'll help.

 

 

:lol: :lol:

 

i solved it thx, but i find another problem during check out

 

Parse error: parse error, unexpected '}' in /home/virtual/site24/fst/var/www/html/myshop/checkout_success.php on line 37

<?php

/*

$Id: checkout_success.php,v 1.1.1.1 2003/08/14 07:58:30 nickle Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// if the customer is not logged on, redirect them to the shopping cart page

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

 

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {

$notify_string = 'action=notify&';

$notify = $HTTP_POST_VARS['notify'];

if (!is_array($notify)) $notify = array($notify);

for ($i=0, $n=sizeof($notify); $i<$n; $i++) {

$notify_string .= 'notify[]=' . $notify[$i] . '&';

}

if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

 

//begin PayPal_Shopping_Cart_IPN

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));

} else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) {

PayPal_osC::reset_checkout_cart_session();

}

//end PayPal_Shopping_Cart_IPN

 

 

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS);

 

$breadcrumb->add(NAVBAR_TITLE_1);

$breadcrumb->add(NAVBAR_TITLE_2);

 

$global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'");

$global = tep_db_fetch_array($global_query);

 

if ($global['global_product_notifications'] != '1') {

$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");

$orders = tep_db_fetch_array($orders_query);

 

$products_array = array();

$products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name");

while ($products = tep_db_fetch_array($products_query)) {

$products_array[] = array('id' => $products['products_id'],

'text' => $products['products_name']);

}

}

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="4" cellpadding="2">

<tr>

<td valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE); ?></td>

<td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>

<?php

if ($global['global_product_notifications'] != '1') {

echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

 

$products_displayed = array();

for ($i=0, $n=sizeof($products_array); $i<$n; $i++) {

if (!in_array($products_array[$i]['id'], $products_displayed)) {

echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';

$products_displayed[] = $products_array[$i]['id'];

}

}

 

echo '</p>';

} else {

echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;

}

?>

<h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td align="right" class="main"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

</tr>

</table></td>

<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

<td width="50%"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>

<td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>

<td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>

<td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_FINISHED; ?></td>

</tr>

</table></td>

</tr>

<?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?>

</table></form></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

:lol:  :lol:

 

i solved it thx, but i find another problem during check out

 

Parse error: parse error, unexpected '}' in /home/virtual/site24/fst/var/www/html/myshop/checkout_success.php on line 37

<?php

/*

  $Id: checkout_success.php,v 1.1.1.1 2003/08/14 07:58:30 nickle Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright ? 2003 osCommerce

 

  Released under the GNU General Public License

*/

 

  require('includes/application_top.php');

 

// if the customer is not logged on, redirect them to the shopping cart page

  if (!tep_session_is_registered('customer_id')) {

    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

  }

 

  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {

    $notify_string = 'action=notify&';

    $notify = $HTTP_POST_VARS['notify'];

    if (!is_array($notify)) $notify = array($notify);

    for ($i=0, $n=sizeof($notify); $i<$n; $i++) {

      $notify_string .= 'notify[]=' . $notify[$i] . '&';

    }

    if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

 

  //begin PayPal_Shopping_Cart_IPN

    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));

  } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) {

    PayPal_osC::reset_checkout_cart_session();

  }

//end PayPal_Shopping_Cart_IPN

  }

 

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS);

 

  $breadcrumb->add(NAVBAR_TITLE_1);

  $breadcrumb->add(NAVBAR_TITLE_2);

 

  $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'");

  $global = tep_db_fetch_array($global_query);

 

  if ($global['global_product_notifications'] != '1') {

    $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");

    $orders = tep_db_fetch_array($orders_query);

 

    $products_array = array();

    $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name");

    while ($products = tep_db_fetch_array($products_query)) {

      $products_array[] = array('id' => $products['products_id'],

                                'text' => $products['products_name']);

    }

  }

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

  <tr>

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

    </table></td>

<!-- body_text //-->

    <td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

      <tr>

        <td><table border="0" width="100%" cellspacing="4" cellpadding="2">

          <tr>

            <td valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE); ?></td>

            <td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>

<?php

  if ($global['global_product_notifications'] != '1') {

    echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

 

    $products_displayed = array();

    for ($i=0, $n=sizeof($products_array); $i<$n; $i++) {

      if (!in_array($products_array[$i]['id'], $products_displayed)) {

        echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';

        $products_displayed[] = $products_array[$i]['id'];

      }

    }

 

    echo '</p>';

  } else {

    echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;

  }

?>

            <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

      </tr>

      <tr>

        <td align="right" class="main"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

      </tr>

      <tr>

        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

      </tr>

      <tr>

        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

          <tr>

            <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

              <tr>

                <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>

                <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

              </tr>

            </table></td>

            <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

            <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

            <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

              <tr>

                <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

                <td width="50%"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>

              </tr>

            </table></td>

          </tr>

          <tr>

            <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>

            <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>

            <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>

            <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_FINISHED; ?></td>

          </tr>

        </table></td>

      </tr>

<?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?>

    </table></form></td>

<!-- body_text_eof //-->

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

    </table></td>

  </tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

According to the message you get, you have a spare '}' around line 37. If I counted it correct, it's arround:

 

//end PayPal_Shopping_Cart_IPN

}

 

Try to remove '}' and see if error appears.

 

I still didn't get an answer for my post. I hope I'll get it some day... or other. :rolleyes:

 

Good luck coding!

Link to comment
Share on other sites

According to the message you get, you have a spare '}' around line 37. If I counted it correct, it's arround:

 

//end PayPal_Shopping_Cart_IPN

  }

 

Try to remove '}' and see if error appears.

 

I still didn't get an answer for my post. I hope I'll get it some day... or other.  :rolleyes:

 

Good luck coding!

B) B)

 

thx u save my day......one quick question, during check out paypal, it hv the extra shipping charges, how can i remove it from paypal checkout. because i use zoneworld(contribution), it always count the shipment fees.

Link to comment
Share on other sites

Having an issue with this module (PayPal_Shopping_Cart_IPN_v3.1.5):

 

Sometimes the IPN comes back as "complete," even when "return to merchant" is NOT clicked, and sometimes no IPN comes back at all, order status is left at "pending" instead of being changed to "processing", even when "return to merchant" might have been clicked. Also, some orders show "Payment: Paypal, Status:" with nothing after status even though I show payment complete in my paypal account, and some orders show "Status: Complete" with payment indeed complete in my paypal account.

 

Any ideas?

 

Thanks,

Matt

Edited by mattWC
Link to comment
Share on other sites

IPN DEBUG GUIDE

 

GET YOUR DATABASE TABLES SETUP RIGHT

I chatted with Greg and he said your 'orders_status' table should have this

 

orders_status_id, language_id, orders_status_name

1 1 Pending

2 1 Processing

3 1 Delivered

4 1 On Hold

5 1 Refunded

6 1 Canceled

 

 

GET YOUR PAYMENT MODULE SETUP RIGHT

In admin under module, payment, paypal

 

Enable PayPal Module

True

 

E-Mail Address

your primary paypal email

 

Business ID

your primary paypal email

 

Default Currency

USD

 

Transaction Currency

Only USD

 

Payment Zone

--none--

 

Set Pending Notification Status

Pending

 

Set Order Status

Processing

 

Set On Hold Order Status

On Hold

 

Set Refunded Order Status

Refunded

 

Set Canceled Order Status

Canceled

 

Synchronize Invoice

True

 

Sort order of display.

0

 

Background Color

White

 

Processing logo

oscommerce.gif

 

Store logo

 

 

PayPal Page Style Name

default

 

Include a note with payment

No

 

Shopping Cart Method

Aggregate

 

Enable PayPal Shipping Address

No

 

Digest Key

PayPal_Shopping_Cart_IPN

 

Test Mode

Off

 

Cart Test

On

 

Debug Email Notifications

Yes

 

Debug Email Notification Address

your email

 

PayPal Domain

www.paypal.com

 

Return URL behavior

1

 

 

 

PROBLEM:

It says pending when a payment is made when it should say processing.

Inventory is not removed.

 

SOLUTION:

After you update the DB with 'On Hold' you may see that the order is going 'On Hold'

I am having this problem when ordering around 6 or more items.

 

Any help? Greg? :)

Edited by slofly
Link to comment
Share on other sites

Is there a way to search just this thread for 'wrong order total'

 

Problem:

Some items/groups of items give the wrong total when viewing the 'on hold' order in the admin section.

Need to get the total right and for it to go into processing so that the inventory is removed when they order.

Link to comment
Share on other sites

Which tables are cleared to get a fresh start on testing orders, looking at paypal tables etc...?

 

If I just clear the orders paypal will say the invoice # has already been used.

Without turning off the option to have paypals invoice #'s match the osc invoice #'s how would this be resolved?

Edited by slofly
Link to comment
Share on other sites

ok I cleared a bunch of tables if you want me to make a list just say and I'll post.

In admin paypal was set to no synchronize invoice number.

 

A small order gets put on hold and is off by a penny or so what to do?

Link to comment
Share on other sites

If you are debugging your IPN and need to look at tables, orders in admin and orders in paypal cleaning up the info from previous transactions can be helpful.

 

To clear all of your order history but not the customers execute this SQL:

 

truncate customers_basket;

truncate customers_basket_attributes;

truncate orders_products;

truncate orders_products_attributes;

truncate orders_products_download;

truncate orders_session_info;

truncate orders_status;

truncate orders_status_history;

truncate orders_total;

truncate paypal;

truncate paypal_payment_status_history;

 

This does not clear your paypal settings they are stored in the configuration table.

And it does not interfere with your ipn installation because that is files besides the config table.

 

If I am wrong anywhere here pls correct!

Link to comment
Share on other sites

Why can't we edit our posts after a few minutes?

 

There is an error in the post above:

Delete the line above with 'orders_status'

 

If you did it already execute this SQL:

 

INSERT INTO `orders_status` VALUES (1, 1, 'Pending');

INSERT INTO `orders_status` VALUES (2, 1, 'Processing');

INSERT INTO `orders_status` VALUES (3, 1, 'Delivered');

INSERT INTO `orders_status` VALUES (4, 1, 'On Hold');

INSERT INTO `orders_status` VALUES (5, 1, 'Refunded');

INSERT INTO `orders_status` VALUES (6, 1, 'Canceled');

Link to comment
Share on other sites

WARNING!

 

It may be possible for someone to complete a paypal order without actually paying! I've had several such orders recently (ie, no paypal payment but the store gets an IPN back that says payment has occured.)

 

I do not know if this is due to a hack or a bug, but I'm guessing it's a hack since all such orders on my site have come from places like Zaire. I also do not think this is a specific issue to this contribution, but rather an overall issue with PayPal IPNs. (I had this occur with a previous paypal payment module as well.)

 

If you ship product, be sure to check your paypal orders :)

 

[i am running v3.0 of this contribution and I've not seen anything in the releases since that would lead me to believe any action to address/prevent this issue has been taken.]

Link to comment
Share on other sites

Paypal appears to not adding right!

We know computers add correctly so what is going on?

 

Here it is right from paypal-

 

Amount: $0.10 USD

Shipping & Handling: $0.01 USD

Total Amount: $0.12 USD

 

What the heck?

That is why I am getting 'on hold'

The ipn is working perfect.

 

When you get to paypal the first total is right then then after you login you get a total that is off by a penny???

Link to comment
Share on other sites

Alright got it to work under specific settings.

 

If you get 'On Hold' sometimes or have some cart errors try these settings:

 

In admin payment module for paypal:

Aggregate cart not itemized

 

In paypal under profile:

Make sure no tax setting are in

Do not have auto return on or with a url in it

Do not have ipn turned on or have a url in it

 

It does not work right when itemized cart is set.

Paypal adds the shipping values if any are set

Paypal ignores the tax sent by osc.

Does anyone else have this problem?

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...