Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 3 votes

Official PayPal IPN Support Thread


4132 replies to this topic

#301 RikR

  • Community Member
  • 495 posts
  • Real Name:Rik Rasmussen
  • Gender:Male
  • Location:Wake Forest, NC USA

Posted 08 March 2005, 23:48

A follow up to my message above about customer changing shipping address during checkout.

If at the first opportunity to select a different shipping address (or create one) the customer makes that choice , then completes the checkout/confirm process, the order is saved with the alternate shipping address.

It appears that if the customer makes this decision after reaching the confirm order page, the die is cast, the Paypal IPN module saves the order to the database as soon as the confirm order page is seen. At that point, what ever shipping address was being used is saved with the order, making a shipping address change after seeing the confirm order page, is too late.

Anyone have a suggestion on how the customer might bealerted to this behavior of the program to avoid them wrongly believing they have changed the shipping address?
Rik Rasmussen

#302 tedbooks

  • Community Member
  • 147 posts
  • Real Name:ted books

Posted 09 March 2005, 20:22

has any of you manged to get the status change to work.
i have no ssl and i just want it to work
i am also not getting the debug email.
am i to assume that i am not getting the ipn ?
any idea how to get this working
i also have the shopping cart 3.0 installed and that also not getting the ipn.
could this be a conflict between the two or am i just missing something.
i am testing live with no encryption at all

#303 RikR

  • Community Member
  • 495 posts
  • Real Name:Rik Rasmussen
  • Gender:Male
  • Location:Wake Forest, NC USA

Posted 09 March 2005, 20:33

When setup correctly, the status does change when the IPN is received. Recently however, there have been periods when the IPN has been very delayed.

If you are not getting debug there is probbably not an event that triggers the debug email. Delayed IPN apparently does not cause a debug email.

I would only "install" one Paypal IPN at a time in the Admin panel.
Rik Rasmussen

#304 WVSailor

  • Community Member
  • 27 posts
  • Real Name:Jim Adams
  • Location:Southern West "By God" Virginia

Posted 09 March 2005, 23:32

:'( Getting everything set up on my new host. I have the absolute path correct for the location of my crt and key file(s):
/usr/share/ssl/private (key)
and
/usr/share/ssl/certs (crt)

I'm getting the following error on the "Order Confirmation" page of mydomain


Warning: file_get_contents(): open_basedir restriction in effect. File(/usr/share/ssl/certs/www.mydomain.com.crt) is not within the allowed path(s): (/home/mydomain/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/maydomain/public_html/includes/modules/payment/paypal_ipn.php on line 369

Is the above line telling me that it's looking for my crt file in /home/mydomain or use/lib/php or usr/local/lib/php or /tmp?

Warning: file_get_contents(/usr/share/ssl/certs/www.mydomain.com.crt): failed to open stream: Operation not permitted in /home/mydomain/public_html/includes/modules/payment/paypal_ipn.php on line 369

Is the above line stating that the permissions are not set correctly on the absolute path:
/usr/share/ssl/certs/www.mydomain.com.crt


Warning: file_get_contents(): open_basedir restriction in effect. File(/usr/share/ssl/private/www.mydomain.com.key) is not within the allowed path(s): (/home/mydomain/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/mydomain/public_html/includes/modules/payment/paypal_ipn.php on line 369

Is the above line telling me that it's looking for my crt file in /home/mydomain or use/lib/php or usr/local/lib/php or /tmp?

Warning: file_get_contents(/usr/share/ssl/private/www.mydomain.com.key): failed to open stream: Operation not permitted in /home/mydomain/public_html/includes/modules/payment/paypal_ipn.php on line 369

Is the above line stating that the permissions are not set correctly on the absolute path:
/usr/share/ssl/private/www.mydomain.com.key?


Warning: openssl_pkcs7_sign(): error getting private key in /home/mydomain/public_html/includes/modules/payment/paypal_ipn.php on line 369

I really don't have a clue with the above. Any Ideas? :P

Warning: file_get_contents(/home/mydomain/public_html/pp//146134-2-signed.txt): failed to open stream: No such file or directory in /home/mydomain/public_html/includes/modules/payment/paypal_ipn.php on line 374

The pp directory does exist, but I think that is because of the trailing / that I put in the box in the module. I'll take it out to see if that works.

#305 WVSailor

  • Community Member
  • 27 posts
  • Real Name:Jim Adams
  • Location:Southern West "By God" Virginia

Posted 09 March 2005, 23:34

[quote name='WVSailor' date='Mar 9 2005, 07:32 PM']
:'( [color=purple]Getting everything set up on my new host. I have the absolute path correct for the location of my crt and key file(s):
/usr/share/ssl/private (key)
and
/usr/share/ssl/certs (crt)

I guess I should say that the absolute paths are where my host installed my crt & key files.....

#306 PandA.nl

  • Community Member
  • 323 posts
  • Real Name:Paul
  • Location:Haarlem, Netherlands

Posted 10 March 2005, 00:06

RikR, on Mar 9 2005, 10:33 PM, said:

When setup correctly, the status does change when the IPN is received.

<{POST_SNAPBACK}>

The status does change, but it doesn't change correctly I think.

It seems that the "Preparing [PayPal IPN]" status "moves down" after the IPN is received.
[img]http://www.panda.nl/tmp/ipn-status.png[/img]

Edited by PandA.nl, 10 March 2005, 00:08.

Please do not PM me for support, I will not respond anyway.

#307 JavierDiaz

  • Community Member
  • 20 posts
  • Real Name:Javier Diaz

Posted 10 March 2005, 02:56

What exactly is a Pay Pal IPN for? Is it something that would deduct inventory or something, sorry I'm a newbie. If a customer puts an item in the cart and checks out with the Pay Pal I have now will it deduct the quantity sold out of my inventory?

#308 WVSailor

  • Community Member
  • 27 posts
  • Real Name:Jim Adams
  • Location:Southern West &quot;By God&quot; Virginia

Posted 10 March 2005, 04:49

JavierDiaz, on Mar 9 2005, 10:56 PM, said:

What exactly is a Pay Pal IPN for?  Is it something that would deduct inventory or something, sorry I'm a newbie.  If a customer puts an item in the cart and checks out with the Pay Pal I have now will it deduct the quantity sold out of my inventory?

<{POST_SNAPBACK}>


My understanding of this contribution is that it will automatically update your invoice status once a confirmed payment is received among other things. I don't know if the PayPal that come with OSCommerce will do that. The IPN will also allow you to encrypt the information going to and coming from PayPal so that it should be able to be intercepted and your payments or other information from your customer to be stolen. B)

#309 WVSailor

  • Community Member
  • 27 posts
  • Real Name:Jim Adams
  • Location:Southern West &quot;By God&quot; Virginia

Posted 10 March 2005, 05:07

:'(

Warning: openssl_pkcs7_sign(): error creating PKCS7 structure! in /home/nownthen/public_html/includes/modules/payment/paypal_ipn.php on line 369

Ok, corrected all the other errors. Does anyone know what this one means??
Thanks for everyones help!

#310 Kaeon

  • Community Member
  • 4 posts
  • Real Name:Kaeon

Posted 10 March 2005, 16:59

My checkout proccess page shows up blank when paypal tries to load it... Any idea on what that can be... I skimed through this topic a bit, might i of missed the answer?

Edited by Kaeon, 10 March 2005, 17:00.


#311 livefooduk

  • Community Member
  • 205 posts
  • Real Name:Steve Rolfe
  • Gender:Male
  • Location:Somerset, UK

Posted 11 March 2005, 14:20

Any one getting problems with this today? it has been working fine for the last 7 days but now it is not updating the order history to the correct value, it still shows as Preparing [PayPal IPN] and is not showing verified/unverified or the amount.
This WAS working fine and still works fine if I switch to the sandbox server.
Best wishes
Steve

#312 Extremest

  • Community Member
  • 27 posts
  • Real Name:Steven Campbell

Posted 11 March 2005, 15:54

I just installed this and it don't come up in my payment modules section. Didn't know if anyone else has had this problem.

#313 SoccerDad

  • Community Member
  • 1 posts
  • Real Name:Todd Rittinger

Posted 11 March 2005, 18:59

For anyone having issues with the total(s) being passed to PayPal (in my case, everything was kewl 'cept the order total box was a text box with a "0" in it on PayPal's site) check you currencies. I only accept Canadian dollars, however I had the ISO symbol in Admin -> Localization -> Currencies for the loonie set as CDN when in fact it should be CAD. Fixed that and all is well!

Hope this helps someone!

Be well,
SoccerDad

#314 tedbooks

  • Community Member
  • 147 posts
  • Real Name:ted books

Posted 13 March 2005, 20:33

hello all
i was trying to make some modification so that i recive an email with order as attachment when the payment is made.
i have manged to do this in checkout_process.php
$fax_to='me@mysite.com';
//////////////////////////////////////////////////////////////////////
$orderfile = $insert_id;
$your_data = $email_order;
// Open the file and erase the contents if any
$fp = fopen(DIR_FS_CATALOG . "/emailtextattachments/$orderfile.TXT", "w");
// Write the data to the file
fwrite($fp, $your_data);
// Close the file
fclose($fp);

$fileatt = DIR_FS_CATALOG . "/emailtextattachments/".$orderfile.".TXT";
$fileatt_loc="/emailtextattachments/".$orderfile.".TXT";
// Path to the file
$fileatt_type = "text/plain"; // File Type
$email_text='{nocoverpage}';
$fileatt_name = "order.TXT"; // Filename that will be used for the file as the attachment
//if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', $fax_to, EMAIL_TEXT_SUBJECT.' # '.$insert_id, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS,$fileatt,$fileatt_name,$fileatt_type);
 // }
//////////////////////////

this gives me the order as an attachment.but ofcourse not with paypalipn
i added the following pare to paypal_ipn.php which creates the order text file
$orderfile = $insert_id;
$your_data = $email_order;
// Open the file and erase the contents if any
$fp = fopen(DIR_FS_CATALOG . "/emailtextattachments/$orderfile.TXT", "w");
// Write the data to the file
fwrite($fp, $your_data);
// Close the file
fclose($fp);
and i also added to ipn.php the following code
$orderfile=	$_POST['invoice'];	
$fax_to='frank1002us@yahoo.com';
$fileatt = DIR_FS_CATALOG . "/emailtextattachments/".$orderfile.".TXT";
$fileatt_loc= DIR_FS_CATALOG ."/emailtextattachments/".$orderfile.".TXT";
// Path to the file
$fileatt_type = "text/plain"; // File Type
$email_text='{nocoverpage}';
$fileatt_name = "order.TXT"; // Filename that will be used for the file as the attachment
$fax_to='me@mysite.com';
   tep_mail('', $fax_to, STORES_NAME.$fileatt.'Order # '.$_POST['invoice'], $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS,$fileatt,$fileatt_name,$fileatt_type);
i get the email but attachment is empty any idea on how to attach the correct file to the email

#315 rock1

  • Community Member
  • 25 posts
  • Real Name:Rocky

Posted 14 March 2005, 19:51

sparky, on Dec 3 2004, 11:45 AM, said:

This support thread is for the osCommerce PayPal IPN Module v1.0 For 2.2MS2

Which can be downloaded from http://www.oscommerce.com/community/contributions,2679

Please post any support questions on this module here.

Any questions relating to any other contribution will likely be removed to keep this thread specific to the module above.

<{POST_SNAPBACK}>



I have installed the PayPal IPN module by Mark Evans and evrything is fine until customers confirm their order...

They receive the following message saying that their shopping cart is empty...

I have turned on IPN notification in PayPal account....

What IPN URL do I use in PayPal???

Any help would be greatly appreciated...

Thanks

#316 rock1

  • Community Member
  • 25 posts
  • Real Name:Rocky

Posted 14 March 2005, 21:22

korsh, on Dec 4 2004, 04:38 AM, said:

So far I have installed the new IPN from the OsCommerce team  (easy) and tested (easy) and modified the look of it and the email sent out. Great simple solution. thank you.

but I do have another query. When I attempt to activate the IPN on my Pay Pal account it is asking for the URL at which I will receive the payment notifications. (see screenshot).

What is or where would I look for this URL address?
Am I correct in using the notify URL address line 330 catalog/includes/modules/payment/paypal_ipn.php as the URL requested in the PayPal activation in my PayPal account? (see screenshot).

$parameters['notify_url'] = tep_href_link('ext/modules/payment/paypal_ipn/ipn.php', '', 'SSL', false, false);

so the address to enter would be
www.mydomain.com/catalog/ext/modules/payment/paypal_ipn/ipn.php

I placed this query in the wrong area and have added it here.

James

<{POST_SNAPBACK}>



I have recently installed the PayPal IPN module and have the same problem...

when customers confirm their order it goes to PayPal but it says that there is nothing in their shopping cart...

I tried changing the URL...

Is there something in PayPal...what IPN url do I use in PayPal???

#317 RikR

  • Community Member
  • 495 posts
  • Real Name:Rik Rasmussen
  • Gender:Male
  • Location:Wake Forest, NC USA

Posted 14 March 2005, 22:00

rock1, on Mar 14 2005, 03:51 PM, said:

I have installed the PayPal IPN module by Mark Evans and evrything is fine until customers confirm their order...

They receive the following message saying that their shopping cart is empty...

I have turned on IPN notification in PayPal account....

What IPN URL do I use in PayPal???

Any help would be greatly appreciated...

Thanks

<{POST_SNAPBACK}>



You do not make any of these entrys at the PayPal web site. When the osC PayPal IPN module sends the transaction to PayPal, it provides these.
Rik Rasmussen

#318 rock1

  • Community Member
  • 25 posts
  • Real Name:Rocky

Posted 14 March 2005, 22:58

rock1, on Mar 14 2005, 05:22 PM, said:

I have recently installed the PayPal IPN module and have the same problem...

when customers confirm their order it goes to PayPal but it says that there is nothing in their shopping cart...

check out link below

https://www.paypal.com/cgi-bin/webscr

I tried changing the URL...

Is there something in PayPal...what IPN url do I use in PayPal???

<{POST_SNAPBACK}>



#319 rock1

  • Community Member
  • 25 posts
  • Real Name:Rocky

Posted 14 March 2005, 22:59

rock1, on Mar 14 2005, 05:22 PM, said:

I have recently installed the PayPal IPN module and have the same problem...

when customers confirm their order it goes to PayPal but it says that there is nothing in their shopping cart...Please enter an amount greater than zero.

I tried changing the URL...

Is there something in PayPal...what IPN url do I use in PayPal???

<{POST_SNAPBACK}>



#320 rock1

  • Community Member
  • 25 posts
  • Real Name:Rocky

Posted 15 March 2005, 00:09

SoccerDad, on Mar 11 2005, 02:59 PM, said:

For anyone having issues with the total(s) being passed to PayPal (in my case, everything was kewl 'cept the order total box was a text box with a "0" in it on PayPal's site) check you currencies. I only accept Canadian dollars, however I had the ISO symbol in Admin -> Localization -> Currencies for the loonie set as CDN when in fact it should be CAD. Fixed that and all is well!

Hope this helps someone!

Be well,
SoccerDad

<{POST_SNAPBACK}>



I modified the currencies to CAD in admin but the amount of each product in my shopping catalog all says 0...

customers do not know how much each product is...

however it does carry the correct total over to PayPal though...

i am puzzled...