Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Official PayPal IPN Support Thread


Mark Evans

Recommended Posts

Hello

 

I have been using the module for a month now.

I have never been able to see the order in "PayPal IPN - Start" status.

 

The order information is saved on the confirmation() function

 

but the status is taken from the order object instead of the member variable $order_status of this class.

So I fixed it by adding the variable to the class declaration like:

 

class paypal_ipn {

var $code, $title, $description, $enabled, $identifier, $order_status;

 

and

if ((int)MODULE_PAYMENT_PAYPAL_IPN_PREPARE_ORDER_STATUS_ID > 0) {

$this->order_status = (int)MODULE_PAYMENT_PAYPAL_IPN_PREPARE_ORDER_STATUS_ID;

}

 

 

and made the following change to the data array sent to the database:

 

$sql_data_array = array('customers_id' => $customer_id,

bla bla bla

bla bla bla

bla bla bla

bla bla bla

bla bla bla

'orders_status' => $this->order_status,

bla bla bla

bla bla bla

bla bla bla

bla bla bla

);

 

 

also in

 

 

//+1.4

$sql_data_array = array('orders_id' => $insert_id,

'orders_status_id' => $this->order_status,

'date_added' => 'now()',

'customer_notified' => '0',

'comments' => $order->info['comments']);

 

tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);

//-1.4

 

 

 

 

All of this looks like something nobody can miss so I am thinking I did a mess :-) and this is not a bug as I think.

The code goes back so long that I am not sure If my fix is true.

 

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I'm using the PayPal IPN v2.3.3 module. In our shop we use a flat fee for shipping. Still, when a user buys 2 items, he gets double shipping costs charged in Paypal while in OsCommerce the buyer looks at his bill with only single shipping costs (as it should be).

Secondly, with orders with two of more lines, the processing of the call-back from Paypal acts differently.

 

Somebody knows how to handle this problem?

 

Regards,

 

Ronald

Link to comment
Share on other sites

Hi,

 

I'm using the PayPal IPN v2.3.3 module. In our shop we use a flat fee for shipping. Still, when a user buys 2 items, he gets double shipping costs charged in Paypal while in OsCommerce the buyer looks at his bill with only single shipping costs (as it should be).

Secondly, with orders with two of more lines, the processing of the call-back from Paypal acts differently.

 

Somebody knows how to handle this problem?

 

Regards,

 

Ronald

 

Seems like I found the solution: In paypal_ipn.php

line 329:

$virtual_items = 1;

change in:

$virtual_items = 0;

And the problem mentioned had been solved. This is what happened:

We have a flat fee for shipping of 2.50

An order with 1 line gets: 2,50

An order with 2 lines gets: 5,00

An order with 3 lines gets: 3.73

An order with 4 lines gets: 3.34

With th change I descibed everything works as expected again. everybody get 2.50 shipping charge.

 

Regards,

 

Ronald

(I hope somebody can put this in an update deliverable, don't know how this works)

Link to comment
Share on other sites

hi there my order status has stopped updating.

 

Paypal -> osCommerce was erratic with changing the order status for months, now does not change it at all.

 

my setup is :

 

osC - 2.2ms2-060817

 

paypal ipn - v2.1

 

php - 5.2.6

 

mysql - 5.0.67-community

 

anyone know if these version numbers are good together? where to start looking for the error?

Link to comment
Share on other sites

  • 2 weeks later...

i have the newest OSCommerce version that you can download

 

PHP v4.4.9

 

CURL support enabled

CURL Information libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5

 

MySQL v5.0.67

 

PayPal IPN v2.3.4.6

 

 

 

now to the question if i install the paypal module

i have done everything that is explained in the Installation file, but when i now buy something in our shop at Hanrath-schuhe.de/shop/catalog

it does at no point take me to the paypal website to login and pay with paypal why? can anybody help me please ?

 

thanks in advance,

lil007

Link to comment
Share on other sites

now to the question if i install the paypal module

Looks like you missed something in the install... and In admin > modules > payment > make sure to enable the IPN module: Credit/Debit Card or eCheck (via PayPal), also check your server error log messages...

Link to comment
Share on other sites

lil007 when you say the newest version of OScommerce - I am assuming you mean the one that is still in development (3.0)?

 

If so then try the stable version 2.2? I have no idea if this addon is compatible. Maybe someone in the know could elaborate.

Debbie Harrison

 

Link to comment
Share on other sites

So, I haven't been able to find a solution for my problem due to hodge podge of contributions and mish mash. I've included source code for the error. Any help on this one?

 

SOURCE CODE:////

 

<html>

<head>

<title>Paradigm Gallery - Contemporary Furnishings</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script LANGUAGE="JavaScript"

SRC="/includes/sts_templates/main/java.js"></SCRIPT>

<script LANGUAGE="JavaScript"

SRC="/includes/sts_templates/main/sts_osc_javascript.js"></SCRIPT>

<link rel="stylesheet" type="text/css"

href="/includes/sts_templates/main/stylesheet.css">

</head>

 

<body>

<table width="980" border="0" align="center" cellpadding="0"

cellspacing="0" bgcolor="#FFFFFF">

<tr>

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

 

<tr>

<td width="180"><a href="http://www.pgmod.com"><img'>http://www.pgmod.com"><img

src="images/main/top_logo.gif" alt="Paradigm Gallery - Home"

width="281" height="69" border="0"></a></td>

<td align="right" valign="bottom"

background="images/main/top_bg.gif"><table width="80%" height="69"

border="0" cellpadding="4" cellspacing="4">

<tr>

<td align="right" valign="top"><strong><font size="1"

face="Arial, Helvetica, sans-serif"><a

href=https://www.pgmod.com/account.php class="headerNavigation">My

Account</a>  •  <a

href=https://www.pgmod.com/logoff.php class="headerNavigation">Log

Off</a>

 •  <a

href=http://www.pgmod.com/shopping_cart.php

class="headerNavigation">Cart Contents</a>  •  <a

href=https://www.pgmod.com/checkout_shipping.php

class="headerNavigation">Checkout</a>

 •  <a

href=http://www.pgmod.com/about.php class="headerNavigation">The

Paradigm Story</a>  •  <a

href=http://www.pgmod.com/faqs.php class="headerNavigation">FAQs</a>

 • 

<a href=http://www.pgmod.com/contact_us.php

class="headerNavigation">Contact Us</a></font></strong></td>

 

</tr>

<tr>

<td align="right" class="smallText">

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

<tr>

<td align="right" class="smallText"><strong>TOLL FREE: <font

color="#990000"

size="2">1-877-PG-MOD-07</font></strong><br>[1-877-746-6307]</td>

<td width="160" align="right"><script language="JavaScript"

src="http://www.pgmod.com/support/js/status_image.php?base_url=http://www.pgmod.com/support&l=admin&x=1&deptid=1&"></script></td>

 

</tr>

</table>

</td>

</tr>

</table></td>

<td width="3" align="right"

background="images/main/top_bg.gif"><img

src="images/main/top_right.gif" width="3" height="69"></td>

</tr>

</table></td>

</tr>

 

<tr>

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

<tr>

<td width="1" background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

<td valign="top"><table width="100%" border="0"

cellspacing="0" cellpadding="0">

<tr>

<td width="170" valign="top" bgcolor="#F9F9F9"> </td>

<td width="1" valign="top"

background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

<td valign="top"><table width="100%" border="0"

cellspacing="0" cellpadding="0">

<tr>

<td height="25" class="breadCrumbs"

background="images/top_bar_bg.gif"><font size="1" face="Arial,

Helvetica, sans-serif">  <a href="http://www.pgmod.com"

class="breadCrumbs">Home</a> » <a

href="https://www.pgmod.com/checkout_shipping.php"

class="breadCrumbs">Checkout</a> » <a

href="https://www.pgmod.com/checkout_payment.php"

class="breadCrumbs">Payment Method</a></font></td>

 

<td align="right" class="breadCrumbs"

background="images/top_bar_bg.gif">Thursday 25 June,

2009  </td>

</tr>

<tr>

<td height="1" colspan="2"

background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

</tr>

</table>

<table width="100%" border="0" cellspacing="2"

cellpadding="2">

<tr>

<td><p><table border="0" width="100%"

cellspacing="0" cellpadding="2" align="center">

 

<tr class="messageStackError">

<td class="messageStackError"><img src="images/icons/error.gif"

border="0" alt="Error" title=" Error "> (10413) The totals of the

cart item amounts do not match order amounts.</td>

</tr>

</table>

 

<!-- start content //-->

<form name="checkout_payment"

action="https://www.pgmod.com/checkout_confirmation.php" method="post"

onsubmit="return check_form();"> <table border="0" width="100%"

cellspacing="0" cellpadding="0">

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt=""

width="100%" height="10"></td>

</tr>

 

<tr>

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

<tr>

<td class="main"><b>Billing Address</b></td>

</tr>

</table></td>

</tr>

<tr>

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

cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

cellpadding="2">

 

<tr>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

<td class="main" width="50%" valign="top">Please

choose from your address book where you would like the invoice to be

sent to.<br>

<br>

<a

href="https://www.pgmod.com/checkout_payment_address.php"><img

src="includes/languages/english/images/buttons/button_change_address.gif"

border="0" alt="Change Address" title=" Change Address "></a></td>

<td align="right" width="50%"

valign="top"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" align="center"

valign="top"><b>Billing Address:</b><br>

<img src="images/arrow_south_east.gif"

border="0" alt=""></td>

 

<td><img src="images/pixel_trans.gif"

border="0" alt="" width="10" height="1"></td>

<td class="main" valign="top">Susan

Saify<br> 4099 Rue Antoinette<br> Stone Mountain, GA 30083<br>

United States</td>

<td><img src="images/pixel_trans.gif"

border="0" alt="" width="10" height="1"></td>

</tr>

</table></td>

 

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt=""

width="100%" height="10"></td>

</tr>

<tr>

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

 

<tr>

<td class="main"><b>Payment Method</b></td>

</tr>

</table></td>

</tr>

<tr>

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

cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

cellpadding="2">

<tr>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

 

<td class="main" width="50%" valign="top">Please

select the preferred payment method to use on this order.</td>

<td class="main" width="50%" valign="top"

align="right"><b>Please Select</b><br>

<img src="images/arrow_east_south.gif"

border="0" alt=""></td>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

<td colspan="2"><table border="0" width="100%"

cellspacing="0" cellpadding="2">

 

<tr class="moduleRow"

onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"

onclick="selectRowEffect(this, 0)">

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main"

colspan="3"><b>GoogleCheckout</b></td>

<td class="main" align="right">

<input type="radio" name="payment"

value="googlecheckout"> </td>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

</table></td>

 

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

<td colspan="2"><table border="0" width="100%"

cellspacing="0" cellpadding="2">

<tr class="moduleRow"

onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"

onclick="selectRowEffect(this, 1)">

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main" colspan="3"><b><img

src="https://www.paypal.com/en_US/i/logo/PayPal_mark_37x23.gif"

align="left" style="margin-right:7px;"><span style="font-size:11px;

font-family: Arial, Verdana;">Save time. Checkout securely. Pay

without sharing your financial information.</span></b></td>

<td class="main" align="right">

<input type="radio" name="payment"

value="paypal_ec"> </td>

 

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

</table></td>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

<td colspan="2"><table border="0" width="100%"

cellspacing="0" cellpadding="2">

<tr id="defaultSelected"

class="moduleRowSelected" onmouseover="rowOverEffect(this)"

onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 2)">

 

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main" colspan="3"><b><img

src="paypal_wpp/images/cclogos.gif"></b></td>

<td class="main" align="right">

<input type="radio" name="payment"

value="paypal_wpp" CHECKED> </td>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

<tr>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td colspan="4"><table border="0"

cellspacing="0" cellpadding="2">

 

<tr>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main">Owner First Name:</td>

<td><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main"><input type="text"

name="paypal_cc_firstname" value="Susan"></td>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

<tr>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

 

<td class="main">Owner Last Name:</td>

<td><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main"><input type="text"

name="paypal_cc_lastname" value="Saify"></td>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

<tr>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main">Credit Card Number:</td>

 

<td><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main"><input type="text"

name="paypal_cc_number"></td>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

<tr>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main">Card Verification Value:</td>

<td><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main"><input type="text"

name="paypal_cc_cvv2"></td>

 

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

<tr>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main">Card Expiry Date:</td>

<td><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

<td class="main"><select

name="paypal_cc_expires_month"><option

value="01">January</option><option value="02">February</option><option

value="03">March</option><option value="04">April</option><option

value="05">May</option><option value="06">June</option><option

value="07">July</option><option value="08">August</option><option

value="09">September</option><option

value="10">October</option><option value="11">November</option><option

value="12">December</option></select> <select

name="paypal_cc_expires_year"><option value="09">2009</option><option

value="10">2010</option><option value="11">2011</option><option

value="12">2012</option><option value="13">2013</option><option

value="14">2014</option><option value="15">2015</option><option

value="16">2016</option><option value="17">2017</option><option

value="18">2018</option></select></td>

 

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

</table></td>

<td width="10"><img

src="images/pixel_trans.gif" border="0" alt="" width="10"

height="1"></td>

</tr>

</table></td>

<td><img src="images/pixel_trans.gif" border="0"

alt="" width="10" height="1"></td>

</tr>

</table></td>

 

</tr>

</table></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt=""

width="100%" height="10"></td>

</tr>

<tr>

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

<tr>

<td class="main"><b>Add Comments About Your Order</b></td>

 

</tr>

</table></td>

</tr>

<tr>

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

cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

cellpadding="2">

<tr>

<td><textarea name="comments" wrap="soft"

cols="60" rows="5"></textarea></td>

</tr>

 

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt=""

width="100%" height="10"></td>

</tr>

<tr>

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

cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

cellpadding="2">

 

<tr>

<td width="10"><img src="images/pixel_trans.gif"

border="0" alt="" width="10" height="1"></td>

<td class="main"><b>Continue Checkout

Procedure</b><br>to confirm this order.</td>

<td class="main" align="right"><input

type="image" src="includes/languages/english/images/buttons/button_continue.gif"

border="0" alt="Continue" title=" Continue "></td>

<td width="10"><img src="images/pixel_trans.gif"

border="0" alt="" width="10" height="1"></td>

</tr>

</table></td>

</tr>

 

</table></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt=""

width="100%" height="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"><img

src="images/pixel_silver.gif" border="0" alt="" width="1"

height="5"></td>

 

<td width="50%"><img

src="images/pixel_silver.gif" border="0" alt="" width="100%"

height="1"></td>

</tr>

</table></td>

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

cellspacing="0" cellpadding="0">

<tr>

<td width="50%"><img

src="images/pixel_silver.gif" border="0" alt="" width="100%"

height="1"></td>

<td><img src="images/checkout_bullet.gif"

border="0" alt=""></td>

<td width="50%"><img

src="images/pixel_silver.gif" border="0" alt="" width="100%"

height="1"></td>

</tr>

 

</table></td>

<td width="25%"><img src="images/pixel_silver.gif"

border="0" alt="" width="100%" height="1"></td>

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

cellspacing="0" cellpadding="0">

<tr>

<td width="50%"><img

src="images/pixel_silver.gif" border="0" alt="" width="100%"

height="1"></td>

<td width="50%"><img

src="images/pixel_silver.gif" border="0" alt="" width="1"

height="5"></td>

</tr>

</table></td>

</tr>

 

<tr>

<td align="center" width="25%"

class="checkoutBarFrom"><a

href="https://www.pgmod.com/checkout_shipping.php"

class="checkoutBarFrom">Delivery Information</a></td>

<td align="center" width="25%"

class="checkoutBarCurrent">Payment Information</td>

<td align="center" width="25%"

class="checkoutBarTo">Confirmation</td>

<td align="center" width="25%"

class="checkoutBarTo">Finished!</td>

</tr>

</table></td>

 

</tr>

</table>

</form>

<!-- end content //-->

</p></td>

</tr>

</table></td>

</tr>

</table></td>

 

<td width="1" background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

<td width="160" align="center" valign="top"><font size="1"

face="Arial, Helvetica, sans-serif"><table class='infoBox'

width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td

height='25' background='images/main_bg_a.gif' align='center'

colspan='3' class='boxText'><strong>Shopping

Cart</strong></td></tr><tr><td background='images/main/sides_bg.gif'

colspan='3'><img src='images/main/sides_bg.gif' width='1'

height='1'></td></tr><tr><td class='boxText' colspan='3'><div

style='padding: 5px;'><font color='#990000'>1</font> item(s) in

Cart<br /><br />Subtotal: <font

color='#990000'>$595.00</font></div></td></tr><tr><td

background='images/main/sides_bg.gif' colspan='3'><img

src='images/main/sides_bg.gif' width='1'

height='1'></td></tr><tr><td><a href="shopping_cart.php"

onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('viewcart','','images/button_viewcart_a2.gif',1)"><img

src="images/button_viewcart_a1.gif" alt="View Cart" name="viewcart"

width="79" height="25" border="0"></a><td><img

src='images/main/sides_bg.gif' width='1' height='25'></td><td><a

href="checkout_shipping.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('checkout','','images/button_checkout_a2.gif',1)"><img

src="images/button_checkout_a1.gif" alt="Checkout" name="checkout"

width="80" height="25" border="0"></a></td></tr><tr><td

background='images/main/sides_bg.gif' colspan='3'><img

src='images/main/sides_bg.gif' width='1'

height='1'></td></tr></table></font></td>

<td width="1" background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

</tr>

</table></td>

</tr>

 

<tr>

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

<tr>

<td colspan="3" height="1"

background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

</tr>

<tr>

<td width="1" background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

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

cellspacing="2" class="footer">

<tr>

<td class="footer">© '05-'09 Paradigm

Furnishings. <a href="http://www.akbrothers.com" target="_blank"

title="Atlanta Web Design Company">Web Design</a> by AKBrothers,

LLC</td>

 

<td align="right" class="footer"> <a

href=http://www.pgmod.com/privacy.php class="headerNavigation">Privacy

Policy</a> • <a href="information-hub-t-3.html"

class="headerNavigation">Information Hub</a> •

<a href=http://www.pgmod.com/faqs.php

class="headerNavigation">FAQs</a> • <a

href=http://www.pgmod.com/contact_us.php

class="headerNavigation">Contact Us</a></td>

</tr>

</table></td>

 

<td width="1" background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

</tr>

<tr>

<td colspan="3" height="1"

background="images/main/sides_bg.gif"><img

src="images/main/sides_bg.gif" width="1" height="1"></td>

</tr>

</table></td>

</tr>

</table>

</body>

</html>

Link to comment
Share on other sites

Hi

 

I got the problem that the status didn't update from "Preparing [PayPal IPN]" to " Pending", even though Pay Pal have received the payment successfully.

 

===========================================================

PHP Version 5.1.6

CURL Information libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

osCommerce osCommerce 2.2-MS2

PayPal IPN version PayPal IPN v2.3.4.6 (previous using v2.3.2, didn't update automatically)

==============================================================

PayPal IPN v2.3.4.6

 

Enable PayPal IPN Module

True

 

Gateway Server

Live

 

E-Mail Address

XXXXXXXXXXX

 

Sort order of display.

0

 

Transaction Currency

Selected Currency

 

Payment Zone

--none--

 

Set Preparing Order Status

Preparing [PayPal IPN]

 

Set PayPal Acknowledged Order Status

default

 

Set PayPal Completed Order Status

default

 

Transaction Type

Aggregate

 

Move tax to total amount

True

 

Page Style

 

 

Debug E-Mail Address

 

 

cURL Proxy server

 

 

Enable Encrypted Web Payments

False

 

Your Private Key

 

 

Your Public Certificate

 

 

PayPals Public Certificate

 

 

Your PayPal Public Certificate ID

 

 

Working Directory

 

 

OpenSSL Location

/usr/bin/openssl

 

Moreover, how can I confirm that the path of "OpenSSL Location" is correct? and how can I find out the path? or how to setup cURL?

 

Could anyone help me to find out the problem?

 

Many Thanks

Otto

Edited by Oooooooo
Link to comment
Share on other sites

Hi

 

I got the problem that the status didn't update from "Preparing [PayPal IPN]" to " Pending", even though Pay Pal have received the payment successfully.

 

 

I was got the same problem, since I change the setting in admin then I solved the problem.

 

Try this: admin --> localization --> order status --> Preparing Paypal --> edit --> and un-tick everything --> update.

 

It's working for me.

 

You can try, if not work then put it back again to original and hopefully other member can help you.

 

Good Luck

Link to comment
Share on other sites

Hiya,

Im on PayPal IPN Module 2.3.4.7

Im getting the "paypal does not allow your country of residence to ship to the country you wish to" message.

Tried to find info in the posts, to no avail. Point me where if Im missing summin.

Whats the best way to resolve this, so users can ship wherever they see fit?

Link to comment
Share on other sites

Hiya,

Im on PayPal IPN Module 2.3.4.7

Im getting the "paypal does not allow your country of residence to ship to the country you wish to" message.

Tried to find info in the posts, to no avail. Point me where if Im missing summin.

Whats the best way to resolve this, so users can ship wherever they see fit?

 

Im testing this:

 

Look for :

“address_override” => “1″

change to:

“address_override” => “0″

 

Will come back with the results.

Link to comment
Share on other sites

Im testing this:

 

Look for :

“address_override” => “1″

change to:

“address_override” => “0″

 

Will come back with the results.

 

I concur with many in self-resolving our own problems when I declare that yes, the above mentioned fix, is indeed a fix.

Edited by quomo
Link to comment
Share on other sites

Now, is there any beautiful way to avoid orders being recorded as "Preparing [PayPal IPN]" at all when they are not completed in PayPal?

Our orders count is not gonna be meaningful anymore otherwise.

Thanks!

Link to comment
Share on other sites

can please someone help me. I use the latest paypal-ipn version. everything seems to work fine only attributes whihc belong to the articles of the order are not been lost when somebody pays with paypal-ipn

in my backoffice and in the email it looks like this after payment

 

1 x Vingino footwear Jay canvas boots

- : 0

- : 0

 

iso

 

1 x Vingino footwear Jay canvas boots

color black - : 0

size 31 - : 0

 

who knows what wrong?

 

thank you for the help

Marcel

Link to comment
Share on other sites

It's been a while since i have had any issues with ipn but i've had a recurring one lately that i can't seem to shake....using ipn 2.3.3

 

When a customer has to pay tax and gets transfered over to the paypal page, they get an item amount incorrectly formatted. I've narrowed it to being a tax issue but can't figure out how to fix it. I also noticed that if i adjust the order and redo it with a different amount it goes through but there seems to be a difference in the tax amount from oscommerce to paypal by a couple cents. Anyone have a clue? It's killing me!

Link to comment
Share on other sites

It's been a while since i have had any issues with ipn but i've had a recurring one lately that i can't seem to shake....using ipn 2.3.3

 

When a customer has to pay tax and gets transfered over to the paypal page, they get an item amount incorrectly formatted. I've narrowed it to being a tax issue but can't figure out how to fix it. I also noticed that if i adjust the order and redo it with a different amount it goes through but there seems to be a difference in the tax amount from oscommerce to paypal by a couple cents. Anyone have a clue? It's killing me!

 

I messed around a little more and resolved the issue somewhat by changing the settings to Aggregate for the transaction type. I don't really like it that way but guess it will have to work. I'd rather it show the individual products. Anyone know what to do here?

Link to comment
Share on other sites

I'd rather it show the individual products. Anyone know what to do here?

could this be a tax on shipping? To find out go to:catalog/includes/modules/payment/paypal_ipn.php - near line # 427

 if ($tax_total > $item_tax && DISPLAY_PRICE_WITH_TAX != 'true') {  

change to:

if ($tax_total > $item_tax && DISPLAY_PRICE_WITH_TAX != 'false') {  // This should itemize the shipping tax

change back to 'per item' Then make a test purchase and see if the rogue amouunt is a tax on shipping?

Edited by h2oHOH
Link to comment
Share on other sites

I'll have to take a look at the closer tomorrow when I have some more time. So far so good today with orders, all going fine, I'm more worried about inventory not updating under aggregate if they don't hit the return to site but so far it seems ok.

Link to comment
Share on other sites

could this be a tax on shipping? To find out go to:catalog/includes/modules/payment/paypal_ipn.php - near line # 427

 if ($tax_total > $item_tax && DISPLAY_PRICE_WITH_TAX != 'true') {  

change to:

if ($tax_total > $item_tax && DISPLAY_PRICE_WITH_TAX != 'false') {  // This should itemize the shipping tax

change back to 'per item' Then make a test purchase and see if the rogue amouunt is a tax on shipping?

 

OK, I tried this and it is definately something with the tax....the site said it should be .68 for tax but once it hit paypal it went to .70 for tax. If I switch that back to "true" and itemized under paypal settings it gives me an error that an item is formatted incorrectly. Which is looking like the tax. Any ideas to get the itemized working with tax properly?

Link to comment
Share on other sites

YAY! I fixed my tax issue finally! I spent about an hour this morning searching through the forums and came across a post that said to add this one line and it worked perfectly. I added that one line underneath the first instance and it seems to have resolved my issue! Now I'm back to per item and tax is working correctly.

 

In in catalog/includes/modules/payment/paypal_ipn.php:

 

$parameters['tax_cart'] = $tax_total;

 

Just below this

 

} else {

// default

$parameters['amount'] = number_format($subtotal * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));

Link to comment
Share on other sites

I fixed my tax issue finally!

Glad you got it working.... I installed PayPal_IPN_2_3_4_7 and that line of code is already there.... with an additional 'else' statement, in the 'Tax pre item fix by AlexStudio'

// BOF Tax pre item fix by AlexStudio
	  $parameters['amount'] = number_format(($subtotal + $order->info['tax']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
	} else {
	  // default
	  $parameters['amount'] = number_format($subtotal * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
	  // EOF Tax pre item fix by AlexStudio
	}

so if you have any additional problems you may want to upgrade to the latest PP ipn install

Link to comment
Share on other sites

Glad you got it working.... I installed PayPal_IPN_2_3_4_7 and that line of code is already there.... with an additional 'else' statement, in the 'Tax pre item fix by AlexStudio'

// BOF Tax pre item fix by AlexStudio
	  $parameters['amount'] = number_format(($subtotal + $order->info['tax']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
	} else {
	  // default
	  $parameters['amount'] = number_format($subtotal * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency));
	  // EOF Tax pre item fix by AlexStudio
	}

so if you have any additional problems you may want to upgrade to the latest PP ipn install

 

Thanks for that info! I ran a bunch of tests and all seemed well so cross my fingers. This one had been bugging me for a logn time! Now back to working on google sitemaps to figure out if i can get it to do sitelinks on the search.

Link to comment
Share on other sites

i'm trying again;

 

i use the latest version of paypal-ipn 2.3.4.6 everything works fine accept for attributes/options

i use two options for every article one for color and one for size. when people place the order and pay with paypal-ipn these options are no longer available in the order and in the database.

For some reason paypal-ipn delete this information for the order.

 

I can't figure out what's wrong.

 

If somebody can help me please! because now i have to ask every customer what color and size they have order.

 

Thank you for the help

Marcel

 

only article and price info is left. Where the options have to be is only: eur 0.00

 

1 x Manas 81B013LS

- : eur 0.00 9211.19.31 % eur 124.95 eur 124.95 eur 124.95

1 x Manas 82087JKX Laarzen

- : eur 0.00

- : eur 0.00 2432.21.2 % eur 74.95 eur 74.95 eur 74.95

1 x Fantasy 316112

- : eur 0.00

- : eur 0.00 2221.9.8 % eur 49.98 eur 49.98 eur 49.98

1 x Rapisardi 3506 slippers

- : eur 0.00

- : eur 0.00 6218-93-6 % eur 44.95 eur 44.95 eur 44.95

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