Official PayPal IPN Support Thread
#21
Posted 04 December 2004, 21:25
Sales tax to GST (the Australian taxation)
and one instance of the total amount
which appears twice see screenshot
Does any one know where I can make these changes?
James
#22
Posted 04 December 2004, 22:43
Warning: fopen(/ipn_tmp/732583-2-data.txt): failed to open stream: No such file or directory in /home/virtual/site243/fst/var/www/html/includes/modules/payment/paypal_ipn.php on line 349
Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/site243/fst/var/www/html/includes/modules/payment/paypal_ipn.php on line 350
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site243/fst/var/www/html/includes/modules/payment/paypal_ipn.php on line 351
any help?
#23
Posted 05 December 2004, 14:11
jonathn, on Dec 4 2004, 03:27 PM, said:
Then dont use it.... The beauty of free software is you have a choice
osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)
---------------------------------------
Software is like sex: It's better when it's free. (Linus Torvalds)
#24
Posted 05 December 2004, 14:18
it is alwo trying to write, and it cant do that, and then close and it cant do that as it doesnt exist.
thus, if you are going to specify a working directory, then create it.
verbalkent, on Dec 4 2004, 05:43 PM, said:
Warning: fopen(/ipn_tmp/732583-2-data.txt): failed to open stream: No such file or directory in /home/virtual/site243/fst/var/www/html/includes/modules/payment/paypal_ipn.php on line 349
Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/site243/fst/var/www/html/includes/modules/payment/paypal_ipn.php on line 350
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site243/fst/var/www/html/includes/modules/payment/paypal_ipn.php on line 351
any help?
#25
Posted 05 December 2004, 14:36
sparky, on Dec 5 2004, 03:11 PM, said:
Yep - next time we have to make sure that the first v1.0 release of anything also automatically polishes shoes too
The feedback provided will indeed influence the next v1.1 release of the module - but if you're only going to criticize, then please do so outside in the middle of the fields somewhere.
Thanks,
Edited by hpdl, 05 December 2004, 14:41.
osCommerce, Sell With Emotion
#26
Posted 05 December 2004, 14:41
korsh said:
Sales tax to GST (the Australian taxation)
and one instance of the total amount
which appears twice see screenshot
Does any one know where I can make these changes?
Can you post the form parameters used on the checkout confirmation page from viewing the HTML source? (please just the form parameters and not the whole checkout confirmation page -thanks)
osCommerce, Sell With Emotion
#27
Posted 05 December 2004, 15:00
Thanks,
Richard
#28
Posted 05 December 2004, 15:42
Did you read through the included documentation?
Are you using the right gateway server? By default the module is using the Sandbox/Testing server PayPal provides, and is independent from the Live server.
osCommerce, Sell With Emotion
#29
Posted 05 December 2004, 16:24
rgloverd, on Dec 5 2004, 10:00 AM, said:
If you have not enabled encryption in the PayPal IPN config, then try out a test purchase and on the osCommerce order confirmation page, view the source and scroll or search for 'notify_url', the value of this form field should be 'qualified', e.g. a full URL path to the ipn script, so if you can't see 'http://www.yourdomain.com/.......' then check your catalog/includes/configure.php and make sure that: define('HTTP_SERVER', 'https://'.$_SERVER['SERVER_ADDR']); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://'.$_SERVER['SERVER_ADDR']); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
is correct, in the above replace "'https://'.$_SERVER['SERVER_ADDR']" with the URL of your domain ('http://www.mydomain.com'), and if you don't have SSL then set 'ENABLE_SSL' to false.In regard to feedback, it should be noted that PayPal themselves sometimes return an 'INVALID' response even though the transaction is authentic and qualified, a workaround suggested by PayPal is to return a 500 Server Error response which will cause PayPal to resend the IPN so that it maybe successfully processed on the following attempts etc...
#30
Posted 05 December 2004, 19:11
hpdl, on Dec 5 2004, 10:41 AM, said:
<form name="checkout_confirmation" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_cart"><input type="hidden" name="upload" value="1"><input type="hidden" name="item_name_1" value="Superglow"><input type="hidden" name="amount_1" value="3.60"><input type="hidden" name="tax_1" value="0.36"><input type="hidden" name="quantity_1" value="1"><input type="hidden" name="shipping_1" value="4.63"><input type="hidden" name="on0_1" value="Color"><input type="hidden" name="os0_1" value="two color mix"><input type="hidden" name="num_cart_items" value="1"><input type="hidden" name="business" value="boss@mydomain.com"><input type="hidden" name="amount" value="3.60"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="invoice" value="10072"><input type="hidden" name="custom" value="62"><input type="hidden" name="no_shipping" value="1"><input type="hidden" name="no_note" value="1"><input type="hidden" name="notify_url" value="http://www.mydomain.com/catalog/ext/modules/payment/paypal_ipn/ipn.php"><input type="hidden" name="return" value="http://www.mydomain.com/catalog/checkout_process.php"><input type="hidden" name="cancel_return" value="http://www.mydomain.com/catalog/checkout_payment.php"><input type="hidden" name="bn" value="osCommerce PayPal IPN v1.0"><input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form>
Edited by hpdl, 05 December 2004, 19:52.
#31
Posted 05 December 2004, 19:56
osCommerce, Sell With Emotion
#32
Posted 06 December 2004, 03:35
hpdl, on Dec 5 2004, 03:56 PM, said:
Harald, thanks for your prompt reply.
No it occurs only on the second page.
see screenshots
Edited by korsh, 06 December 2004, 03:36.
#33
Posted 06 December 2004, 11:48
Just worked out what the problem was, as the shop I am creating is not live yet, I had protected the shop with a password and obviously paypal didnt have the password, doh!!! One of those stupid simple mistakes that you just dont think of :-)
But thanks for the help,
Richard
#34
Posted 06 December 2004, 15:56
ok here are 2 screen shots. The 1st shows both paypal contribs for comparison. You will notice that the 2.9 version shows credit card icons, a short discription and also a link to a popup info page (this is the second screen shot). I really like how it is visible to the customer that even though they are using paypal they can use their creditcards, etc.
Hope this helps.
[img]http://www.mutzigcreations.com/shot001.jpg[/img]
[img]http://www.mutzigcreations.com/shot02.jpg[/img]
On Page Style..is this just a "link" to the paypal style? so if I set things up on the paypal end everything goes well? sorry I really don't understand how all the options from 2.9 can be summed up in one option.
RW
hpdl, on Dec 3 2004, 06:47 PM, said:
A man who works with his hands and his brain is a craftsman
But a man who works with his hands and his brain and his heart is an artist. - Charles Dickens
#35
Posted 06 December 2004, 23:21
RavenWulf said:
The following can be defined in a Page Style:
Header Image URL; Maximum size 750x90)
Header Background Color
Header Border Color
Background Color
Page Styles can be defined at the Profile->Selling Preferences->Customer Payment Pages page.
osCommerce, Sell With Emotion
#36
Posted 06 December 2004, 23:41
korsh said:
Confirmed. It appears to only happen when the shipping and tax values are being passed to PayPal.
I've contacted Patrick about this and will reply back once the problem is known.
Edited by hpdl, 06 December 2004, 23:42.
osCommerce, Sell With Emotion
#37
Posted 07 December 2004, 00:30
jonathn said:
Confirming the order total value will be done in the next v1.1 contribution release.
jonathn said:
Actually, store owners can. The order is finally updated when the IPN notification is received - regardless if the customer returns back to the store or not after payment has been made.
osCommerce, Sell With Emotion
#38
Posted 07 December 2004, 00:38
jonathn said:
The Sellers Protection Policy is there to protect us, the business owners. Ship something for $1000 to a fradulent address and then try to collect.... or for that matter, get your item back.
Personally, or any business owner I know wouldn't ship anything to an unverified address.
Ever wonder why the credit card companies insist you ship to the same address that the credit card sends the customers statement??
You hit the nail on the head with the "Ever wonder why..." statement, because PayPal does not accept a shipping address to be passed when passing the order parameters to their gateway.
The address that can be passed is only used for prepopulating the address fields when the customer wishes to create a PayPal account.
The PayPal IPN module disables the option for the customer to define a shipping address at the PayPal gateway due to the inconsistencies it can create with the order (the shipping address is already defined at the catalog/shopping-cart).
It is possible to determine whether or not a PayPal account has been verified by looking at the transaction details at your PayPal account/profile for the order made.
osCommerce, Sell With Emotion
#39
Posted 07 December 2004, 05:57
Today I noticed the official contribution had been made, so I replaced all the files and installed it (after removing the old one, of course). Then I had someone test it, and the order went okay including the confirmation email, being listed in admin, and PayPal had the money. But she did not get returned to the confirmation success page, getting instead the error message:
Fatal error: Cannot redeclare class order_total in /home/sonnybar/public_html/osc/includes/classes/order_total.php on line 13
While I sleuth this myself, I am posting hoping perhaps someone else will recognize the symptom more readily and save me some time/frustration. I really don't believe there had been any other relevant changes to the site. But I don't see any differences between the old and new scripts that appear likely to generate an extra class declaration ... hmm ...
#40
Posted 07 December 2004, 06:05














