Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 3 votes

Official PayPal IPN Support Thread


4127 replies to this topic

#21 korsh

  • Community Member
  • 111 posts
  • Real Name:James O'Sullivan
  • Location:Brisbane, Australia

Posted 04 December 2004, 21:25

I would like to change the PayPal payment details showing using this contribution

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 verbalkent

  • Community Member
  • 71 posts
  • Real Name:TS

Posted 04 December 2004, 22:43

I just installed it, I have a test sandbox acct set up, downloaded the test cert, and uploaded it to my server, on a test purchase, i get this on the "checkout_configuration" page

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 Mark Evans

  • Team Member
  • 2,416 posts
  • Real Name:Mark
  • Gender:Male
  • Location:Behind you :-P

Posted 05 December 2004, 14:11

jonathn, on Dec 4 2004, 03:27 PM, said:

This module has serious "security" shortcomings.... no matter how simplistic it is to install.

<{POST_SNAPBACK}>


Then dont use it.... The beauty of free software is you have a choice :)
Mark Evans
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 Mibble

  • Community Member
  • 13,404 posts
  • Real Name:JAO
  • Location:MA (US): 42n22, 71w04, Massachusetts

Posted 05 December 2004, 14:18

this error is telling you that you dont have a directory at /ipn_tmp, thus just as in the store configuration, for logging, cache, sessions, where you NEED to create a tmp directory, you do the same here, however I would point it to the same directory you created in the above items (you did do that?) with 700 permissions, if 700 doesnt work then 777. and this needs to be above the document root, ie /home/username/tmp.
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:

I just installed it, I have a test sandbox acct set up, downloaded the test cert, and uploaded it to my server, on a test purchase, i get this on the "checkout_configuration" page

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?

<{POST_SNAPBACK}>



#25 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 05 December 2004, 14:36

sparky, on Dec 5 2004, 03:11 PM, said:

Then dont use it.... The beauty of free software is you have a choice :)

<{POST_SNAPBACK}>


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.

Harald Ponce de Leon
osCommerce, Sell With Emotion

#26 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 05 December 2004, 14:41

korsh said:

I  would like to change the PayPal payment details showing using this contribution

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?

<{POST_SNAPBACK}>


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)
Harald Ponce de Leon
osCommerce, Sell With Emotion

#27 rgloverd

  • Community Member
  • 46 posts
  • Real Name:Richard Glover-Davies

Posted 05 December 2004, 15:00

Hi, I was having a problem with 2.9 (the update order status problem) so I have now just installed the new 1.0 version from oscommerce but im still having the same problem. COuld someone post example config of what should be in each box when you eidt the config for this payment module. Also what needs to be done in the paypal account if it is a new paypal account?
Thanks,
Richard

#28 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 05 December 2004, 15:42

What problem are you having?

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.
Harald Ponce de Leon
osCommerce, Sell With Emotion

#29 devosc

  • Community Member
  • 1,250 posts
  • Real Name:devosc

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...
"Any fool can know. The point is to understand." -- Albert Einstein

#30 korsh

  • Community Member
  • 111 posts
  • Real Name:James O'Sullivan
  • Location:Brisbane, Australia

Posted 05 December 2004, 19:11

hpdl, on Dec 5 2004, 10:41 AM, said:

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)

<{POST_SNAPBACK}>


<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 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 05 December 2004, 19:56

James, does it also occur on the PayPal login page (the first page at PayPal once submiting the form) or anywhere else?
Harald Ponce de Leon
osCommerce, Sell With Emotion

#32 korsh

  • Community Member
  • 111 posts
  • Real Name:James O'Sullivan
  • Location:Brisbane, Australia

Posted 06 December 2004, 03:35

hpdl, on Dec 5 2004, 03:56 PM, said:

James, does it also occur on the PayPal login page (the first page at PayPal once submiting the form) or anywhere else?

<{POST_SNAPBACK}>


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 rgloverd

  • Community Member
  • 46 posts
  • Real Name:Richard Glover-Davies

Posted 06 December 2004, 11:48

Hi,
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 RavenWulf

  • Community Member
  • 297 posts
  • Real Name:Douglas
  • Location:Germany

Posted 06 December 2004, 15:56

Howdy!

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. :rolleyes: (and thanks for the hard work!)

[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:

We found these parameters to be redundant and offered only the Page Style parameter. This gives you greater control of how the pages at PayPal should look like.

<{POST_SNAPBACK}>


A man who works with his hands is a laborer
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 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 06 December 2004, 23:21

RavenWulf said:

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.

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.
Harald Ponce de Leon
osCommerce, Sell With Emotion

#36 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 06 December 2004, 23:41

korsh said:

Harald, thanks for your prompt reply.

No it occurs only on the second page.

<{POST_SNAPBACK}>


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.

Harald Ponce de Leon
osCommerce, Sell With Emotion

#37 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 07 December 2004, 00:30

jonathn said:

Also if using that module, one must ensure that Encryption is enabled in the PayPal IPN config otherwise the payment information is not obfuscated and from reading it's code it seems like that it is possible to send PayPal a payment for that order for only $0.01 and the module will accept the payment regardless of the expected actual order amount.

Confirming the order total value will be done in the next v1.1 contribution release.

jonathn said:

Another aspect is that since that module prestores the order prior to the customer actually clicking the 'osCommerce Order Confirmation Button' the storeowner cannot determine whether the customer actually confirmed that they wanted to make the order, which prevents the storeowner from potentially following up the sale/order without any clear indication that the customer wanted to make the purchase.

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.
Harald Ponce de Leon
osCommerce, Sell With Emotion

#38 Harald Ponce de Leon

  • Manager
  • 3,150 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 07 December 2004, 00:38

jonathn said:

You're trading off security without shipping to an address that's unverified.
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.
Harald Ponce de Leon
osCommerce, Sell With Emotion

#39 zzfritz

  • Community Member
  • 501 posts
  • Real Name:Fritz Clapp
  • Location:California USA

Posted 07 December 2004, 05:57

I had an opportunity to install and test the prerelease version from 11/26, and found it worked fine.

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 Mibble

  • Community Member
  • 13,404 posts
  • Real Name:JAO
  • Location:MA (US): 42n22, 71w04, Massachusetts

Posted 07 December 2004, 06:05

means the class order_total is being declared twice, so you need to search your code to find it. this happens with an older version of IPN being installed, you will most likely need to go thru all your code and find references to where it is calling paypal (not an easy chore) and then try again. if not many contributions, may be better off starting with a clean install, put in the new paypal mod and the other contributions and then the language files and the stylesheet, images and it will work. in a nutshell anyway