Official PayPal IPN Support Thread
#301
Posted 08 March 2005, 23:48
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?
#302
Posted 09 March 2005, 20:22
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
Posted 09 March 2005, 20:33
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.
#304
Posted 09 March 2005, 23:32
/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?
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
Posted 09 March 2005, 23:34
/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
Posted 10 March 2005, 00:06
RikR, on Mar 9 2005, 10:33 PM, said:
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.
#307
Posted 10 March 2005, 02:56
#308
Posted 10 March 2005, 04:49
JavierDiaz, on Mar 9 2005, 10:56 PM, said:
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.
#309
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
Posted 10 March 2005, 16:59
Edited by Kaeon, 10 March 2005, 17:00.
#311
Posted 11 March 2005, 14:20
This WAS working fine and still works fine if I switch to the sandbox server.
Steve
#312
Posted 11 March 2005, 15:54
#313
Posted 11 March 2005, 18:59
Hope this helps someone!
Be well,
SoccerDad
#314
Posted 13 March 2005, 20:33
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
Posted 14 March 2005, 19:51
sparky, on Dec 3 2004, 11:45 AM, said:
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.
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
Posted 14 March 2005, 21:22
korsh, on Dec 4 2004, 04:38 AM, said:
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
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
Posted 14 March 2005, 22:00
rock1, on Mar 14 2005, 03:51 PM, said:
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
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.
#318
Posted 14 March 2005, 22:58
rock1, on Mar 14 2005, 05:22 PM, said:
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???
#319
Posted 14 March 2005, 22:59
rock1, on Mar 14 2005, 05:22 PM, said:
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???
#320
Posted 15 March 2005, 00:09
SoccerDad, on Mar 11 2005, 02:59 PM, said:
Hope this helps someone!
Be well,
SoccerDad
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...














