Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal_Ipn v1.1


Guest

Recommended Posts

This is my first contribution. i know many people have been trying to get this to work. after alot of trial and error i did.

 

This is just an update to the work done by the previous contributors.

 

This fix corrects the error that was given with the oscommerce-paypal ipn V 1.1 on the paypal sute after payment was successul. after clicking return to merchant you would get a error Checkout_success.php

 

 

 

Installation:

 

copy the enclosed files to the respective folders

 

or

 

 

manual installation:

 

modify : includes/modules/payment/paypal_ipn.php

 

 

replace these lines: somewhere around lines 321 and 322

 

$parameters['return'] = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

$parameters['cancel_return'] = tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL');

 

with these:

 

$parameters['return'] = tep_href_link('/checkout_success.php');

$parameters['cancel_return'] = tep_href_link('/checkout_payment.php');

 

 

 

 

 

That's it

Edited by JasonL
Link to comment
Share on other sites

Revised and corrected. On line 332, i had changed it to /checout_success.php, this was wrong because if a customer cancelled from paypal, they were taken to the checkou_succes page and given a link, this has been corrected to /shopping_cart.php

 

 

This is my first contribution. i know many people have been trying to get this to work. after alot of trial and error i did.

 

This is just an update to the work done by the previous contributors.

 

This fix corrects the error that was given with the oscommerce-paypal ipn V 1.1 on the paypal sute after payment was successul. after clicking return to merchant you would get a error Checkout_success.php

Installation:

 

copy the enclosed files to the respective folders

 

or

manual installation:

 

modify : includes/modules/payment/paypal_ipn.php

replace these lines: somewhere around lines 321 and 322

 

$parameters['return'] = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

$parameters['cancel_return'] = tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL');

 

with these:

 

 

$parameters['return'] = tep_href_link('/checkout_success.php');

$parameters['cancel_return'] = tep_href_link('/shopping_cart.php');

That's it

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