Contributions

Payment Modules (Category Index)
Search: 

osCommerce PayPal IPN Module v1.0 For 2.2MS2

This module stores orders prematurely in the database to be processed by PayPal IPN notifications. This takes care of customers not returning back to the store to store the order in the database, and allows processing to occur when the PayPal IPN notification is received.

When communicating with the IPN notification, the order information is sent back to PayPal in a secure manner through PHP native OpenSSL capabilities or through cURL when OpenSSL is not available, or through a normal unsecure manner when no secure communication means exists, to confirm the order made. If the result is successful, the order status is updated automatically to show a successful order has been made. Invalid orders are left alone for the store administrator to verify.

This module also has OpenSSL public/private key encryption capabilities to securely send the order information to PayPal during the checkout procedure.

More information about this feature can be read here:

Encrypted Web Payments: https://www.paypal.com/us/cgi-bin/webscr?cmd=p/xcl/rec/ewp-intro-outside

This module was built to be as simple as possible without having the need to touch core codebase files or database changes for installation and usage.

Expand All / Collapse All

Fix for customer being sent to shopping cart instead of success page after paying at PayPal wmjasonward 30 Jun 2009

This is a quick-and-dirty fix to a bug that causes the user to be returned (after paying with PayPal IPN) to the shopping cart with items marked as unavailable rather than the checkout_success page.

This occurs if all of the following conditions are met:
1. Their order (or another order that took place in the meantime) causes any of the products to go out of stock.
2. Stock Checking is turned on.
3. An IPN has been received with payment_status == 'Complete' before the user returns to the store

It may happen in other conditions as well.


In catalog/checkout_process.php find the lines (approx line 56):


// Stock Check
$any_out_of_stock = false;
if (STOCK_CHECK == 'true') {


and change to:

// Stock Check
$any_out_of_stock = false;
if (STOCK_CHECK == 'true' && !tep_not_null($_GET['payment_status'])) {


This bypasses the stock check when the user has been sent to the checkout_process page by PayPal.

As I said, this is quick-and-dirty. Hopefully a cleaner fix can be rolled into the next release of the PayPal IPN contribution.

paypal ipn temp dir deleting bug fix for some installs 2.3.4.7a drex 26 Apr 2009
PayPal_IPN_Price_Sensitive_Discount_Patch jbnet 20 Apr 2009
"Payment Type Surcharge" Support semliuq 31 Mar 2009
PayPal IPN v2.3.6 German aplein 10 Mar 2009
PayPal IPN Module 2.3.4.7 olsonsp4c 4 Mar 2009
PayPal IPN Module 2.3.4.6 olsonsp4c 6 Feb 2009
IPN fix Felix Scheiffers 29 Dec 2008
PayPal_IPN_v2.3.4.5 bloness 17 Jul 2008
osCommerce_PayPal_IPN_v2.3.4.5 bloness 12 Jul 2008
osCommerce_PayPal_IPN_v2.3.4 nerdDesign 8 May 2008
PayPal IPN Discount Coupon Problems wnevets 19 Feb 2008
osCommerce PayPal IPN Module v2.3.3 For 2.2MS2 AlexStudio 16 Nov 2007
osCommerce PayPal IPN Module v2.3.2 For 2.2MS2 AlexStudio 23 Oct 2007
osCommerce PayPal IPN Module v2.3.1 For 2.2MS2 AlexStudio 22 Oct 2007
osCommerce PayPal IPN Module v2.3.1 For 2.2MS2 AlexStudio 19 Oct 2007
osCommerce PayPal IPN Module v2.3 For 2.2MS2 AlexStudio 8 Oct 2007
French documentation for Paypal IPN v2.2 damien76 20 Mar 2007
French file for PayPal IPN based on v2.2 asulis 8 Feb 2007
Disable Digital Downloads GoTTi 24 Jan 2007
osCommerce PayPal IPN Module v2.2 For 2.2MS2 Terra 14 Jan 2007
osCommerce PayPal IPN Module v2.1 For 2.2MS2 Terra 13 Jan 2007
Hack to empty shopping cart in 2.0 by Terra Monika in Germany 2 Jan 2007
osCommerce PayPal IPN Module v2.0 For 2.2MS2 Terra 1 Jan 2007
Auto-fill PayPal payment form 1.1 gravyface 7 Dec 2006
Auto-fill PayPal payment form gravyface 21 Nov 2006
osCommerce_PayPal_IPN_v1.4 windfjf 11 Nov 2006
v1.4 windfjf 31 Oct 2006
fix - paypal_ipn.php missing updated informaton windfjf 30 Oct 2006
osCommerce PayPal IPN Module v1.3 For 2.2MS2 Terra 22 Jun 2006
osCommerce PayPal IPN Module v1.2 For 2.2MS2 Terra 21 May 2006
PayPal IPN with country validation and maximum order amount filter chiwawa 23 Apr 2006
Same File (New instructions) ezjam 31 Mar 2006
paypal ipn tax fix navyhost 30 Jan 2006
osCommerce PayPal IPN Module v1.1 For 2.2MS2 Mark Evans 12 Jan 2005
osCommerce PayPal IPN Module v1.0 For 2.2MS2 Harald Ponce de Leon 30 Nov 2004

Note: Contributions are used at own risk.