Hello,
I installed PayPal_IPN ver 2.3.4.7 and it seems it's working fine so far. But I have two qustions:
1. The install guide says:
"If you have SSL enabled, then you won't need to set up encrypted web payments as the payment module automatically uses SSL if available."
This is my case so I set "Enable Encrypted Web Payments" parameter on "False".
My questions is: how can I check that encryption between paypal and my server is really working fine ?
2. I installed the contribution Print Order Receipt v1.5 (2379) which adds a print button to the bottom of the customers order history page as well as the checkout success page that allows the customer to print a receipt for their order.
Unfortunately - after installing PayPal_IPN - when a customer choose to pay with Paypal, and return back to the checkout_success.php page the Print Order Receipt button doesn't show the last order just processed, but an older oID.
It seems after going to Paypal site, the last oID hasn't been passed to checkout_success page.
This are the lines added by Print Order Receipt contribution to checkout_success.php and checkout_process.php:
CHECKOUT_SUCCESS
// Print Order Receipt v1.5 - Start
?>
<script language="javascript"><!--
function popupPrintReceipt(url) {
window.open(url,'popupPrintReceipt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re
sizable=yes,copyhistory=no,height=500,width=750')
}
//--></script>
<?php
// Print Order Receipt v1.5 - End
.......
<?php // Print Order Receipt v1.5 - Start // ?>
<td><div style="float:left"><a href="java script:popupPrintReceipt('<?php echo tep_href_link(FILENAME_ORDERS_PRINTABLE2, 'oID=' . $last_order); ?>')"><?php echo tep_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></div><div style="float:right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></div>
</td>
<?php //Print Order Receipt v1.5 - End // ?>
CHECKOUT_PROCESS
//Print Order Receipt v1.5 - Start//
tep_session_register('last_order');
$last_order = $insert_id;
$oID = $last_order;
//Print Order Receipt v1.5 - End//
I suppose that - as suggested by Paypal IPN installation guide at the "Integration with other contribution" - the problem may be fixed by modifying ipn.php and paypal_ipn.php according to checkout_process.php modifcations made by the Print Order contribution, but my knowledege of php doesn't allow to understand how.
Does someone ran in the same problem ?
Thanks in advance for any help. :)
Nicola