Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 3 votes

Official PayPal IPN Support Thread


4132 replies to this topic

#461 Furrawn

  • Community Member
  • 16 posts
  • Real Name:Furrawn

Posted 16 July 2005, 16:32

Wow. Looks like a few potential frustrations out there with this one.

This is mine:

Order Total data never gets entered into the osCommerce database from the paypal_ipn.php page, and so otherwise successful PayPal orders aren't showing up in the Administrator interface. (Customers are being redirected back to the site, etc.)

I've done some tests, so I have some clues.

I believe that when it gets to this line (near line 116):

for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++)

the '$GLOBALS[$class]->output' array is empty, and so it never gets to the curly brackets that create the $order_totals[] array.

Hm. Can anybody hand me down their higher wisdom on this one?

Why might that '$GLOBALS[$class]->output' array be empty?

#462 Furrawn

  • Community Member
  • 16 posts
  • Real Name:Furrawn

Posted 16 July 2005, 16:58

Does it have anything to do with the order of events on pages like checkout_confirmation.php or checkout_process.php?

Furrawn, on Jul 16 2005, 04:32 PM, said:

Wow. Looks like a few potential frustrations out there with this one.

This is mine:

Order Total data never gets entered into the osCommerce database from the paypal_ipn.php page, and so otherwise successful PayPal orders aren't showing up in the Administrator interface. (Customers are being redirected back to the site, etc.)

I've done some tests, so I have some clues.

I believe that when it gets to this line (near line 116):

    for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++)

the '$GLOBALS[$class]->output' array is empty, and so it never gets to the curly brackets that create the $order_totals[] array.

Hm. Can anybody hand me down their higher wisdom on this one?

Why might that '$GLOBALS[$class]->output' array be empty?

<{POST_SNAPBACK}>



#463 Ian-San

  • Community Member
  • 764 posts
  • Real Name:Ian Davidson
  • Gender:Male
  • Location:UK

Posted 16 July 2005, 18:13

This moudule still doesnt work for me but some of you might want to check this potential error:

Email order confirmation will not show the selected attribute list as $languages_id is not defined in query line 488 / 491.

In catalog/includes/modules/payment/paypal_ipn.php look for the global statement - line 409

- immediately following "function before process() {"

and change to:

global $customer_id, $order, $sendto, $billto, $payment, $currencies, $cart, $cart_PayPal_IPN_ID, $languages_id;

Ian-san
Flawlessnet

#464 Ian-San

  • Community Member
  • 764 posts
  • Real Name:Ian Davidson
  • Gender:Male
  • Location:UK

Posted 16 July 2005, 18:16

Furrawn, on Jul 16 2005, 04:58 PM, said:

Does it have anything to do with the order of events on pages like checkout_confirmation.php or checkout_process.php?

<{POST_SNAPBACK}>


Seems unlikely - more likely to be because $insert_order is false I would think.
Ian-san
Flawlessnet

#465 Furrawn

  • Community Member
  • 16 posts
  • Real Name:Furrawn

Posted 17 July 2005, 03:11

$insert_order is true. I'd tested that.

It's after, at this line:
for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) {
that the curly brackets just don't wanna hear about it...

thanks, though.

anyone else have trouble with order total data not getting recorded even after successful PayPal orders?

Ian-San, on Jul 16 2005, 06:16 PM, said:

Seems unlikely - more likely to be because $insert_order is false I would think.

<{POST_SNAPBACK}>



#466 Sierrab

  • Community Member
  • 290 posts
  • Real Name:Steve Brickle
  • Location:Biarritz, France

Posted 17 July 2005, 17:18

I am testing the OCCommerce PayPal IPN with the PayPal sandbox.

I have Downloads Controller 5.3 working like a dream

I have an ammended Master Products which allows slaves (tracks) or complete album downloads

With all products at zero cost it works perfectly, I can "buy" individual tracks or albums and all the right tracks or albums appear for download after the "purchase" is confirmed
However, when I introduce pricing, PayPal works fine with slave products but when I purchase a Master (in this case an album's worth of tracks), although the purchase goes through OK, I don't have any tracks to download as I do when I purchase the tracks individually.

I have downloaded the latest patch which may sort the problem, but I have to admit to having dificulty with the "diff-file", I just don't understand the instructions...maybe I have been at the screen too long today. Has anyone installed this, slightly clearer instructions (for aging hippy) would be really gratefully received!!

Alternatively, this problem may be caused by something else. Be very grateful for guidance!!!

Steve

Edited by Sierrab, 17 July 2005, 17:20.


#467 tegralens

  • Community Member
  • 199 posts
  • Real Name:Billy
  • Gender:Male

Posted 21 July 2005, 23:52

Not sure if I put this here or if anyone can help me with this but I'm getting an error

We are sorry that we are experiencing temporary difficulties. Please try again later.
Message 5302

This happens after I click on the confirm order button. I'm right now using the sandbox. Does anyone know how to fix this or any ideas?
Sorry if this was not the right area to ask this question.

#468 Ian-San

  • Community Member
  • 764 posts
  • Real Name:Ian Davidson
  • Gender:Male
  • Location:UK

Posted 22 July 2005, 00:09

tegralens, on Jul 21 2005, 11:52 PM, said:

Not sure if I put this here or if anyone can help me with this but I'm getting an error   

We are sorry that we are experiencing temporary difficulties. Please try again later.
Message 5302   

This happens after I click on the confirm order button.  I'm right now using the sandbox.  Does anyone know how to fix this or any ideas?
Sorry if this was not the right area to ask this question.

<{POST_SNAPBACK}>


It just means that PayPal are in the process of updating software on the server and access is slow or restricted.
Ian-san
Flawlessnet

#469 tegralens

  • Community Member
  • 199 posts
  • Real Name:Billy
  • Gender:Male

Posted 22 July 2005, 11:58

Ian-San, on Jul 21 2005, 08:09 PM, said:

It just means that PayPal are in the process of updating software on the server and access is slow or restricted.

<{POST_SNAPBACK}>


The thing is that I've tried different times and days and i always get the same error. Any ideas

#470 wayoutpost

  • Community Member
  • 69 posts
  • Real Name:jonathan
  • Location:Maputo, Mozambique

Posted 23 July 2005, 10:53

Greetings all.

I'm sure this has been posted somewhere before, but I can't seem to find it in the forums anywhere (maybe osc could use google for the search in the next forums release) :rolleyes:

On the checkout_process.php page the default background color for the page is white. My personalized image for that page has a black matt and it looks horrible and very unprofessional. I'd like to make the background color black instead of white. Can anyone tell me how to change the styles for this page?
He who joyfully marches in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would suffice.
- Albert Einstein

#471 MarcoZorro

  • Community Member
  • 491 posts
  • Real Name:Brian of Nazaerth :-D

Posted 23 July 2005, 13:05

wayoutpost, on Jul 23 2005, 10:53 AM, said:

I'm sure this has been posted somewhere before, but I can't seem to find it in the forums anywhere (maybe osc could use google for the search in the next forums release)  :rolleyes:

<{POST_SNAPBACK}>


You will more than likely get a better response if you dont hijack threads with un related questions.

I would suggest that you start a new topic which is specific to your problem.

#472 wayoutpost

  • Community Member
  • 69 posts
  • Real Name:jonathan
  • Location:Maputo, Mozambique

Posted 25 July 2005, 11:16

MarcoZorro, on Jul 23 2005, 01:05 PM, said:

You will more than likely get a better response if you dont hijack threads with un related questions.

I would suggest that you start a new topic which is specific to your problem.

<{POST_SNAPBACK}>


Calmate, Zorro. This is very much on topic. I'm talking about the Paypal IPN page that appears before you are taken to Paypal.com to make your payment. The background of this page is white. I didn't have this white page before I installed this contrib.

Sheez...
He who joyfully marches in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would suffice.
- Albert Einstein

#473 MarcoZorro

  • Community Member
  • 491 posts
  • Real Name:Brian of Nazaerth :-D

Posted 25 July 2005, 11:41

wayoutpost, on Jul 25 2005, 11:16 AM, said:

Calmate, Zorro.  This is very much on topic.  I'm talking about the Paypal IPN page that appears before you are taken to Paypal.com to make your payment.  The background of this page is white.  I didn't have this white page before I installed this contrib. 

<{POST_SNAPBACK}>


This contribution does not install any extra pages its a drop in module that requires no core code changes. So its likely you installed a different IPN module.

#474 Trimast

  • Community Member
  • 27 posts
  • Real Name:Rob Picken

Posted 25 July 2005, 17:01

Hi,

I've seen a couple of similar post to this one, but not been able to find an exact match.

Like most people i guess, i've had a customer who hasn't pressed the final button in paypal and although i've had the payment the order is still stuck in his basket!

I've installed the ipn contrib, but the total amount is not been passed to paypal. I've tried both the "per item" and the "aggregate" options but neither option sends the amount through.

any ideas? or any suggestions would be most welcome

thanks

rob

#475 livefooduk

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

Posted 25 July 2005, 17:51

leitel, on May 8 2005, 04:15 PM, said:

Installed Credit / Voucher to latest version of OSC. Everything works except...

When verifying Discount Coupon.. checkout_confirmation shows correct adjusted total (discount is redemed). But....... when it proceed to PayPal, the discount coupon is NOT reflected.

What have I done.

Although the confirmation page shows discount AND hidden values passed to PayPal reflect correct values INCLUDING amount equal to the adjusted total, PAYPAL ignores and shows the total WITHOUT the discount.

Is there somewhere I can look? Is there a patch? Is anyone else experiencing this?

Thanks!

<{POST_SNAPBACK}>

This has been asked a few times in this thread and no one has answered but it seems that the only order_total modules that get passed to PayPal are subtotal, shipping and Tax

I too have tried to get discount modules and indeed the "payment type surcharge" module to pass the amounts to Paypal but it does not :angry:

If any one else has a work around that would be great :thumbsup:

Edited by livefooduk, 25 July 2005, 17:52.

Best wishes
Steve

#476 aarondwyer

  • Community Member
  • 31 posts
  • Real Name:Aaron Dwyer
  • Location:Brisbane, Australia

Posted 26 July 2005, 11:27

Hi all

I'm spent from reading this whole thread. I can't find an answer to my issue.

Installed osCommerce-PayPal_IPN-v1.1, and when I go to checkout confirmation in OSC , the Paypal login page shows up (https://www.sandbox.paypal.com/cgi-bin/webscr), instead of the payment page that should allow you to enter in your CC details straight away.

Tried lots of combinations of admin setup variants, but I have no idea what's going on here.

Is there anyone out there that can give me some information about this.

Regards
Aaron
Aaron Dwyer

#477 aarondwyer

  • Community Member
  • 31 posts
  • Real Name:Aaron Dwyer
  • Location:Brisbane, Australia

Posted 26 July 2005, 13:17

Nevermind. My dodgey Paymate hacks had come back to haunt me. I've returned checkout_process.php to it's original and I'm now able to get straight into the Paypal paid area instead of the homepage.
Aaron Dwyer

#478 Monika in Germany

  • Community Member
  • 4,860 posts
  • Real Name:Monika
  • Gender:Female
  • Location:Frankfurt, Germany

Posted 27 July 2005, 21:47

if I do not hit continue after paying, no order email will be sent ...why???

Is this normal or just me?
:-)
Monika

addicted to writing code ... can't get enough of databases either, LOL!

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

Interactive Media Award July 2007 ~ category E-Commerce
my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

#479 MarcoZorro

  • Community Member
  • 491 posts
  • Real Name:Brian of Nazaerth :-D

Posted 28 July 2005, 03:52

This is a known problem with the standard paypal module which is why the following was developed by the team

http://www.oscommerce.com/community/contributions,2679

#480 Monika in Germany

  • Community Member
  • 4,860 posts
  • Real Name:Monika
  • Gender:Female
  • Location:Frankfurt, Germany

Posted 28 July 2005, 06:00

MarcoZorro, on Jul 28 2005, 05:52 AM, said:

This is a known problem with the standard paypal module which is why the following was developed by the team

http://www.oscommerce.com/community/contributions,2679

<{POST_SNAPBACK}>



I have this happen with the team IPN mod. Database is fine, just no emails sent when users do not return to the site.
:-)
Monika

addicted to writing code ... can't get enough of databases either, LOL!

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

Interactive Media Award July 2007 ~ category E-Commerce
my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...