Latest News: (loading..)
Mark Evans

Official PayPal IPN Support Thread

4,145 posts in this topic

Hi ...

 

I have the IPN module installed and everything have been working great the last 8 months. All of a sudden this past week the Paypal payment method is unavailable in the store. :blink:

 

I tried to uninstall and install and it still didn't work. There have been no updates to the server or paypal account.

 

Any ideas why this could happen? Any ideas for where to look why this happened?

Thank you VERY much in advance.

 

Anette

Share this post


Link to post
Share on other sites
Hi ...

 

I have the IPN module installed and everything have been working great the last 8 months. All of a sudden this past week the Paypal payment method is unavailable in the store. :blink:

 

I tried to uninstall and install and it still didn't work. There have been no updates to the server or paypal account.

 

Hi there!

 

I just saw this post and am in the same position (I think)... I'm not running a live store yet and still developing / testing.

 

I installed the Paypal (standard) payment module

I then installed the Paypal IPN contribution (Good contrib, looks like it's just what I need)

 

Initially, after installing just the Paypal (standard) mod everthing there worked / looked great... then I go to install the Paypal IPN mod.

The Paypal IPN mod installed and configured in the admin section perfectly... I was really happy... but conserned when it didn't show up as a payment option on the site (checkout)... I was stumped.

 

I went back into admin and did a 'remove' on the Paypal (standard) mod.

 

Now I have tested the checkout and can see / use the Paypal IPN but cannot re-activate the Paypal (standard) mod because it makes the Paypal IPN option vanish from my checkout...

 

Any ideas on how to run the 2 mods at the same time would be awesome!

 

Cheers

Tim

Share this post


Link to post
Share on other sites
Now I have tested the checkout and can see / use the Paypal IPN but cannot re-activate the Paypal (standard) mod because it makes the Paypal IPN option vanish from my checkout...

 

Any ideas on how to run the 2 mods at the same time would be awesome!

 

Hi Tim,

 

Maybe I haven't understood your question properly, but why would you want to run both the IPN and the standard Paypal module? It's my understanding that the IPN module replaces the standard paypal module that's shipped with osC. The Paypal IPN module is much better than the standard module and I'd highly recommend running one or the other (not both).

Share this post


Link to post
Share on other sites

It's actually working now. I had to remove (not just do an uninstall in the admin panel) the module and then copy the files to my server again. That seemed to work. Not sure why though!

Anette

Share this post


Link to post
Share on other sites

Ok, Just to confirm this, you need to sign up for Paypal WebPro in order to use this module correct? Without signing up for WebPro, you will not be able to have Your Private Key

 

 

Your Public Certificate

 

 

PayPals Public Certificate

 

 

Your PayPal Public Certificate ID

 

 

Correct?

 

Thanks. Have this module installed, just waiting to sign up for Webpro so that I can configure it.

Share this post


Link to post
Share on other sites
Ok, Just to confirm this, you need to sign up for Paypal WebPro in order to use this module correct?

This module was NOT written for WebPro so if you're looking for WebPro then this is not the right contribution. For the private key etc. I don't believe you need a WebPro account - just a business account with PayPal. But if you have an SSL or cURL enabled, then you won't need the private key stuff. all the best - Terra

Share this post


Link to post
Share on other sites
It's my understanding that the IPN module replaces the standard paypal module that's shipped with osC.

 

Hi mightymidget!!

 

That's awesome... it's my newbie mistake there then.

I was under the impression the IPN was simply for Credit / Debit card payment via Paypal and not for regular Paypal to Paypal account transactions!

 

Thank you heaps for clearing that up for me!!

 

T

Share this post


Link to post
Share on other sites

Hey folks,

 

Sorry about this now, I posted this in the main forum for payment modules without

realising there was a specific IPN support thread.

 

I installed the IPN 2_2 contribution there last week!! It's a great contrib and the

fact that we can start our business and gauge the demand without having to go through

the rigmarole of opening merchant accounts and setting up payment gateways is fantastic.

Thanks for a great contrib.

 

I've encountered a few problems and think I can shoehorn em into a couple of questions for

folks whom have the time.

 

Setup

========

Hosting - godaddy.com

Linux shared hosting

Mysql 5.0

php version 4.3.11

Godaddy turbo SSL cert installed

 

Currently testing against paypal's sandbox.

 

1. Once the order has been placed and I guess the ipn has been received in the background

should the order status change to something else other than Preparing [Paypal IPN] ??

 

2. I was successfully testing the credit card functionality with numbers I was generating using

code I retrieved from paypals code sample section. Then yesterday when I felt I wasn't getting

any IPN notifications at all I had a look at my IPN URL

and sure enough there was a typo there. So i fixed it up and since then no credit card numbers

work and then no longer go through even if I change it back.

 

Could this be to do with paypal or is it my changing the URL?

 

 

Thanks for all and any help,

Mark.

Share this post


Link to post
Share on other sites

A quick question. I have installed a copy of RC1 and in the modules list under admin it shows the IPN mobule. Does this mean it is already pre-included and just requires configuration, or do i still need to download and install the contribution?

 

I am sure i came across a comment somewhere, during the install, but for the life of me i cannot find it now.

 

Cheers..

Share this post


Link to post
Share on other sites

Hi,

 

I installed PayPal_IPN_v2.2, It looks great but I have a serious problem. I receive "Preparing [PayPal IPN]". Then I receive "PayPal IPN Verified [Completed (Unverified; $0.01)] " and the order turns into Pending and an email gets sent to the customer. So far so good, the problem is that every 5 minutes or so I see in the backend another "PayPal IPN Verified [Completed (Unverified; $0.01)] " with status "Pending" and a duplicate email is sent to the customer each time!

I looked through the forum and I don't see anything like it. Can someone please give me a clue what's happening? I tried it in sandbox and live, same thing.

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

I have stumbled against a problem that I'm getting with orders not being completed.

 

I have the installed PayPal_IPN_v2.2 contribution with the latest OS commerce version, everythings been great until I get my first European Order in EUR (I'm based in the UK) which for some reason remains as Preparing [PayPal IPN], No amount has been added to my Paypal balance but get all the normal notifications?

 

The UK transactions have been all successful, I couldn't find a post relating to this topic so could it be an issue with my paypal account not accepting EUR as a currency? or is it something in the IPN contrib that Ive missed?

 

Any help will be greatly appreciated, generally I find answers to what I'm looking for but this time I need help :)

 

Thanks

Kez

Share this post


Link to post
Share on other sites

Super nice of you to supply this contib BUT

 

Had the preinstalled paypal option which kind of worked ok but I need more so I uninstalled it then installed these files.

Installed exactly as required but as soon as I go to the admin page I get:

 

Warning: main(/path/to/my/domain/includes/languages/english/modules/payment/paypal_ipn.php) [function.main]: failed to open stream: No such file or directory in /path/to/my/domain/admin/modules.php on line 128

 

Warning: main(/path/to/my/domain/includes/languages/english/modules/payment/paypal_ipn.php) [function.main]: failed to open stream: No such file or directory in /path/to/my/domain/admin/modules.php on line 128

 

Warning: main() [function.include]: Failed opening '/path/to/my/domain/includes/languages/english/modules/payment/paypal_ipn.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /path/to/my/domain/admin/modules.php on line 128

 

errmmm ... why?

 

 

Thanks in advance.

Share this post


Link to post
Share on other sites

Thing is, I can install the module and, by the looks of it, set prefs.

 

The title of the module is displayed as:

MODULE_PAYMENT_PAYPAL_IPN_TEXT_TITLE

 

(sorry to double post but for some reason the forum doesn't allow me to edit my own messages!)

Share this post


Link to post
Share on other sites

OK I just installed osCommerce PayPal IPN 2.2 under the configuration settings what do I need in these boxes?:

 

Your Private Key

Your Public Certificate

PayPals Public Certificate

Your PayPal Public Certificate ID

 

I am not sure of what I need, I want to use paypal standard, and I do not have SSL, I just want the customers to be able to go to paypal site and pay with a paypal account or a credit debit card. I was under the impression that I would not have to use these and leave blank since they are going to a secure site. I have tried testing this with the LIVE setting and after the user enters all their data for Credit/ATM card and click confirm it just goes to a paypal page with no error message but says "click here to retry" or "return to homepage" it works if using a paypal account just not the credit debit cards, also I have installed "paypal standard no login" contribution, would this be effecting it?

Share this post


Link to post
Share on other sites

I am not sure what is wrong with what i have done...

 

I am trying to test Paypal IPN and i require the transaction id

 

I have it but when i process it i receive an error

 

 

Invalid Test

 

An error has occured, mostly likely because the Custom field in the IPN Test Panel did not have a valid transaction id.

 

what am i doing wrong. I didn't install this contribution, i copied and pasted over all the files that were given by the contribution

 

I really need to get this solved ASAP please can anyone help me

 

Ilan

Share this post


Link to post
Share on other sites
A quick question. I have installed a copy of RC1 and in the modules list under admin it shows the IPN mobule. Does this mean it is already pre-included and just requires configuration, or do i still need to download and install the contribution?

As far as I know the contrib in RC1 is an old version from 2005 - Harald obviously thinks my coding is sh*** so what the heck - it's only 2 1/2 years out of date. Terra PS: don't forget that RC1 translates in "beta version" - not suitable for live sites.

Share this post


Link to post
Share on other sites
The title of the module is displayed as:

MODULE_PAYMENT_PAYPAL_IPN_TEXT_TITLE

This means you forgot to copy over the language level file (or copied it into the wrong place) - please double-check that you uploaded the correct file to /includes/languages/english/modules/payment/. All the best - Terra

Share this post


Link to post
Share on other sites

Hi Terra,

 

Thanks a mill for the contribution. I was hoping you could let me know if upon

receipt of an ipn should the status of the order automatically change in the orders section of the admin?

 

Also what do you find is the best way to debug the php in the OSCommerce project?

 

Do you send emails for everything as per the IPN setup?

 

Thanks,

Mark.

Share this post


Link to post
Share on other sites
Hi,

 

I installed PayPal_IPN_v2.2, It looks great but I have a serious problem. I receive "Preparing [PayPal IPN]". Then I receive "PayPal IPN Verified [Completed (Unverified; $0.01)] " and the order turns into Pending and an email gets sent to the customer. So far so good, the problem is that every 5 minutes or so I see in the backend another "PayPal IPN Verified [Completed (Unverified; $0.01)] " with status "Pending" and a duplicate email is sent to the customer each time!

I looked through the forum and I don't see anything like it. Can someone please give me a clue what's happening? I tried it in sandbox and live, same thing.

 

Thanks

 

Terra or someone, anything??

Thanks

Share this post


Link to post
Share on other sites

Just wanted to chime in that I am also having a problem within the payapl sandbox (and my test site on localhost) with paypal returning me to my website correctly after the purchase has been completed. As stated by another poster, the "Return to Merchant" text hyperlink within the payment process correctly returns me to my website. After paying, however, the hyperlink button "Complete Your Order Confirmation" does not return me correctly to my website.

 

The payment seems to be processed correctly and the test email is sent correctly so this is a minor problem but I'd like to be able to solve it in order to maintain some semblance of professionalism :lol:

 

Not looking forward to diving into all the programming code...any one solved this problem yet?

 

Also, major Thank You to Terra and company who developed this module and continue to support it!

Share this post


Link to post
Share on other sites

I have found Paypal to be incredibly vexing...and poorly organized -- actually, I'm the one who is probably to blame. Do I really need to add anything more than my email address?

 

 

Ok I must have installed and reinstalled this module 3 times over the past two months, but continually come to the same problem. Here is the error I get:

Warning: fopen(/973453-3-data.txt): failed to open stream: Permission denied in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 426

Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 427

Warning: fclose(): supplied argument is not a valid stream resource in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 428

Warning: openssl_pkcs7_sign(): error getting private key in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 433

Warning: unlink(/973453-3-data.txt): No such file or directory in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 435

Warning: file_get_contents(/973453-3-signed.txt): failed to open stream: No such file or directory in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 438

Warning: fopen(/973453-3-signed.txt): failed to open stream: Permission denied in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 442

Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 443

Warning: fclose(): supplied argument is not a valid stream resource in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 444

Warning: unlink(/973453-3-signed.txt): No such file or directory in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 450

Warning: file_get_contents(/973453-3-encrypted.txt): failed to open stream: No such file or directory in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 453

Warning: unlink(/973453-3-encrypted.txt): No such file or directory in /home/content/N/o/x/Noxwear/html/includes/modules/payment/paypal_ipn.php on line 457

 

Here are lines 389 through 496 of paypal_ipn.php

	  //+1.4

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

								'orders_status_id' => $order->info['order_status'], 

								'date_added' => 'now()', 

					 'customer_notified' => '0', 

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

	  tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);

	  //-1.4



	  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

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

								'products_id' => tep_get_prid($order->products[$i]['id']),

								'products_model' => $order->products[$i]['model'],

								'products_name' => $order->products[$i]['name'],

								'products_price' => $order->products[$i]['price'],

								'final_price' => $order->products[$i]['final_price'],

								'products_tax' => $order->products[$i]['tax'],

								'products_quantity' => $order->products[$i]['qty']);



		tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);



		$order_products_id = tep_db_insert_id();



		$attributes_exist = '0';

		if (isset($order->products[$i]['attributes'])) {

		  $attributes_exist = '1';

		  for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {

			if (DOWNLOAD_ENABLED == 'true') {

			  $attributes_query = "select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix, pad.products_attributes_maxdays, pad.products_attributes_maxcount , pad.products_attributes_filename

								   from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa

								   left join " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad

								   on pa.products_attributes_id=pad.products_attributes_id

								   where pa.products_id = '" . $order->products[$i]['id'] . "'

								   and pa.options_id = '" . $order->products[$i]['attributes'][$j]['option_id'] . "'

								   and pa.options_id = popt.products_options_id

								   and pa.options_values_id = '" . $order->products[$i]['attributes'][$j]['value_id'] . "'

								   and pa.options_values_id = poval.products_options_values_id

								   and popt.language_id = '" . $languages_id . "'

								   and poval.language_id = '" . $languages_id . "'";

			  $attributes = tep_db_query($attributes_query);

			} else {

			  $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . $order->products[$i]['id'] . "' and pa.options_id = '" . $order->products[$i]['attributes'][$j]['option_id'] . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . $order->products[$i]['attributes'][$j]['value_id'] . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . $languages_id . "' and poval.language_id = '" . $languages_id . "'");

			}

			$attributes_values = tep_db_fetch_array($attributes);



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

									'orders_products_id' => $order_products_id,

									'products_options' => $attributes_values['products_options_name'],

									'products_options_values' => $attributes_values['products_options_values_name'],

									'options_values_price' => $attributes_values['options_values_price'],

									'price_prefix' => $attributes_values['price_prefix']);



			tep_db_perform(TABLE_ORDERS_PRODUCTS_ATTRIBUTES, $sql_data_array);

 

I'm using GoDaddy, and have made the suggested cURL modification that is at the bottom of the configuration page.

Share this post


Link to post
Share on other sites

apparrantly my SSL isn't being recognized by Paypal. I need to set up a Business account...because my personal account turned to business account just isn't working.

Share this post


Link to post
Share on other sites

Hi everybody,

I really need help :huh: I just installed and activated the last Paypal IPN release on my shop, and everything looks right in the Admin section. Unfortunately, when I login as user and I try to simulate the buy process, I can't see any Paypal payment in the shipping methods list. All the others work fine... just Paypal is hidden... why??? :blink:

 

Thanks in advance for any help,

Sergio

Share this post


Link to post
Share on other sites

Sorry again... it was in that whay :blush: Now instead I can't see any payment method, the only one currently available is the 'flat rate'... mah, I really can't figure what I've done so wrong on this poor shop........ the problem come after I replaced the standard osCommerce's Paypal with the newest, but it's my fault for sure...

Sergio

Edited by justapeek

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now