Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Official PayPal IPN Support Thread


Mark Evans

Recommended Posts

Hi Soundloop and Jerry

 

I am actually working on installing this mod myself. I am not 100% sure but I think I have read either in this thread somewhere or in the documentation for this mod that if an order is filled out on your OSC site and continues to PayPal.. then the order is logged in OSC....

 

But if the customer abandons the transaction before paying through PayPal the order will remain in OSC. I think the only way around this is to manually check both OSC and PayPal to see that the order shows up in both.

 

If it is not in PayPal then I don't think you were paid.... and the order was not completed.

 

I hope someone else can confirm this as I am still testing and installing this mod and don't have enough knowledge to give a final answer.

 

I hope this has helped

 

Eric B

AJ2000

Link to comment
Share on other sites

If it is not in PayPal then I don't think you were paid.... and the order was not completed.

 

I hope someone else can confirm this as I am still testing and installing this mod and don't have enough knowledge to give a final answer.

 

I hope this has helped

 

Eric B

 

 

Hi Eric,

 

That is my understanding from what I have found when testing (this is easy to test yourself).

 

If that isn't the case, then we have big problems :o and orders aren't going through..

 

Cheers,

 

TC

Link to comment
Share on other sites

Hello again

 

I am still having problems with the Paypal module: when I process an order, the payment goes through fine, and the order shows up in admin, but the cart is not emptied when coming back to the checkout_success page. There is no IPN information available in admin either, and the order is set to pending. If I pay using cheque everything works fine.

 

I'm trying to get this sorted for someone else and I'm going nuts trying to figure it out.

 

I have other contributions installed: STS Template system and the Option Type Feature - don't even know if these are affecting anything or not

 

Hey, if someone can fix this I'll even sign up as a sponsor :thumbsup:

 

URL: TLC Favours

Username: user

Password: password

 

 

Sara

Link to comment
Share on other sites

Just a quick note to ask:

 

1. Where I can find my Private Key and my Certificate and the same for PayPal's Private Key and Certificate ID?

2. How long is the Certificate ID?

3. Do the certificates and Private Key have to be on your server or can they be remotely linked?

4. The .pem files - are they originally .pem files or do you have to rename them manually?

 

Many thanks for your help but I must stress that I need a response ASAP.

 

Cheers

 

Rob

Link to comment
Share on other sites

Right...I'm completely baffled here! Perhaps I need someone just to help me through it...I don't know! But...here's what I think you do!

 

1. Install it (DONE!)

2. Go to Paypal, download certificate, that should give you a Private Key as well?

3. Add this into Admin panel

4. Add your own Information into it

5. It should work?

 

Many thanks

 

Rob

Link to comment
Share on other sites

sigh....been working on this for like forever now... I read this thread and my settings are correct im pretty sure about it. checked all the settings more than 20 times by now. I did the test on sandbox and on the live paypal server. I get this error below

 

Error Detected

--------------------------------------------------------------------------------

The email address for the business is not present in the encrypted blob. Please contact your merchant.

 

Any ideas? What is an encrypted blob? how can i verify my e-mail address in the blob?

 

What i simply want to do is I want people having the option to go to paypal and pay without CC having to go sign up at paypal. I received this result only once at the sandbox and after i put encrypted web payments to 'false'. and after I tried it again but then it goes to the test(sandbox) server but asks for a paypal account. So the customers doesn't have an option.

 

Thats the only way i get it working(consumers needs to sign up before they can purchase). I dont want this! Another odd thing is that when the order has been accepted at the test server the order status didnt change right away.

 

I would like to get this working but been working long hours on it and becuase of 'poor' documentation on both paypal IPN and paypal developer central I do not understand my problem and I do not know what to do.

Link to comment
Share on other sites

Hello again

 

I am still having problems with the Paypal module: when I process an order, the payment goes through fine, and the order shows up in admin, but the cart is not emptied when coming back to the checkout_success page. There is no IPN information available in admin either, and the order is set to pending. If I pay using cheque everything works fine.

 

I'm trying to get this sorted for someone else and I'm going nuts trying to figure it out. 

 

I have other contributions installed: STS Template system and the Option Type Feature - don't even know if these are affecting anything or not 

 

Hey, if someone can fix this I'll even sign up as a sponsor  :thumbsup: 

 

URL: TLC Favours

Username: user

Password: password

Sara

 

 

PLEASE CAN ANYONE GIVE ME ANY SUGGESTIONS???!!! I really need to get this sorted, as the store cannot go live without it being fixed.

 

Sara

Link to comment
Share on other sites

Not sure if it makes a difference but... did ya try removing the password protection from the site?

 

Thanks for the suggestion, but someone else has exactly the same problem and her site is not password protected.

 

Sara

Link to comment
Share on other sites

Phew!

I just read this entire thread. I especially studied the posts related to this one by zzfritz quoted below because I have getting the same error, i.e. "Fatal error: Cannot redeclare class order_total in /home/www/mystore/catalog/includes/classes/order_total.php on line 13"

 

I can't figure out from the posts on this whether it was solved or not and if so how. My checkout_Process.php is definitely not a virgin. It comes from a heavily modified version of Multi-Stores and it may be that it has some code in their to make authorize.net work and paypal to not work but I can't find it. I don't use authorize.net so I can take it out if I can find it, if that will fix my problem.

 

Any leads?

 

 

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 ...

I have moved on from oscommerce to magento and no longer monitoring this site.

Link to comment
Share on other sites

I installed the contribution and now I get error that I don't even understand. Please see by GOING HERE.

 

I'm kind of a newbie so I'm kinda lost! :'(

 

BIG THANKS TO ANYONE WHO HELPS!

 

Warning: main(DIR_WS_TEMPLATESTEMPLATENAME_MAIN_PAGE): failed to open stream: No such file or directory in /home/kemsit/public_html/index.php on line 150

 

Warning: main(DIR_WS_TEMPLATESTEMPLATENAME_MAIN_PAGE): failed to open stream: No such file or directory in /home/kemsit/public_html/index.php on line 150

 

Fatal error: main(): Failed opening required 'DIR_WS_TEMPLATESTEMPLATENAME_MAIN_PAGE' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kemsit/public_html/index.php on line 150

If you have a serious problem but it can be solved, why worry about it? If you have a serious problem but it can't be solved, then why worry about it?

Link to comment
Share on other sites

I feel your pain. I had the same issues with IPN and the addressing issues. This is why I abandoned PayPay for a traditional service (Authorize.Net).

 

RR

 

 

Is there any kind of support on this site for this module? If been waiting for 2 days and not even a single sign of support for anyone over here in this thread. Isn't there anyone who has enough knowledge over this? anyone?

 

HELP MEEEEE!!!

Link to comment
Share on other sites

This is sad! I really want to use this contribution since I already have a Paypal premier account :'(

 

Isn't there anyone here to help? :(

If you have a serious problem but it can be solved, why worry about it? If you have a serious problem but it can't be solved, then why worry about it?

Link to comment
Share on other sites

Hello again

 

I feel like I'm banging my head against a brick wall - I have made loads of posts trying to get my problem with the PayPal IPN module fixed, but I don't even get any response!

 

I can't believe there isn't SOMEONE out there who knows what's causing this:

 

I have Paypal contribution installed, along with the Option Type Feature and when I go through the checkout procedure everything appears to be all fine and dandy. BUT, when i am returned the the checkout_success page, there are all my goods still sitting in my cart. The payemt has gone through fine, the order is in admin and the order process email is sent. However, there is no IPN information available on the order details, and as I said the cart is not emptying after checkout. I have solved the problem that most people seem to have with getting the option text to appear in the email and admin sections.

 

Incidentally, I've come across someone who's having exactly the same problem, so it's not just me :'(

 

PLEASE can someone help????

 

Sara

Link to comment
Share on other sites

Yes, I modified the look tyo be comparable to v2.9 adding the following code to checkout_payment.php at line 252

<td class="main" colspan="3" nowrap><?php
? ? ? ? ? ? ? ? ? ? if ($selection[$i]['module'] == 'PayPal IPN') {
? ? ? ? ? ? ? ? ? ? ? ?>
? ? ? ? ? ? ? ? ? ? ? ? <big><b>
? ? ? ? ? ? ? ? ? ? ? ? ? Credit Card
? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="images/logo_ccVisa.gif" ? ? ? ? ? ? alt="Visa" width="37" height="21" ? ? border="0" ? ? ? ? ? ?align="bottom" title=" Visa ">
? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/logo_ccMC.gif" ? ? ? alt="MasterCard" width="37" height="21" ? ? ? border="0" ? ? ?align="bottom" title=" MasterCard ">
? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/logo_ccDiscover.gif" ? ? ? ? alt="Discover" width="37" height="21" border="0" ? ? ? ?align="bottom" title=" Discover ">
? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/logo_ccAmex.gif" alt="American Express" width="37" height="21" ? ? border="0"align="bottom" title=" American Express ">
? ? ? ? ? ? ? ? ? ? ? ? ? or
? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/banner_intl.gif" ? ? ? ? ? alt="PayPal" width="88" height="33" ? ? ?border="0" ? ? ? ? ?align="bottom" title=" PayPal ">
? ? ? ? ? ? ? ? ? ? ? ? </b></big>
? ? ? ? ? ? ? ? ? ? ? ? ? <br>
? ? ? ? ? ? ? ? ? ? ? ? ? You do not need to be a PayPal member to pay by credit card.
? ? ? ? ? ? ? ? ? ? ? ? ? <script>
? ? ? ? ? ? ? ? ? ? ? ? ? ? document.writeln('<a style="cursor:hand" onclick="javascript:popup=window.open('
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ '\'http://www.mydomain.com/catalog/CreditCardExplain.htm\',\'popup\','
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ '\'scrollbars,resizable,width=625,height=800,left=50,top=50\'); popup.focus(); return false;">'
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ '<font color="blue"><u>[info]</u></font></a>');
? ? ? ? ? ? ? ? ? ? ? ? ? </script><noscript>
? ? ? ? ? ? ? ? ? ? ? ? ? ? <a href="CreditCardExplain.html" target="_blank"><font color="blue"><u>[info]</u></font></a>
? ? ? ? ? ? ? ? ? ? ? ? ? </noscript>
? ? ? ? ? ? ? ? ? ? ? <?php
? ? ? ? ? ? ? ? ? ? } else if ($selection[$i]['module'] == 'Check/Money Order') {
? ? ? ? ? ? ? ? ? ? ? ?><big><b>Check or Money Order </b></big>
? ? ? ? ? ? ? ? ? ? ? ? <img src="/check.gif" border=0 alt=" Send Us a Check " align="absmiddle">
? ? ? ? ? ? ? ? ? ? ? <?php
? ? ? ? ? ? ? ? ? ? } else {
? ? ? ? ? ? ? ? ? ? ? echo '<big><b>' . $selection[$i]['module'] . '</b></big>';
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ?></td>

and using CreditCardExplain.html from the contributions for a start I also changed the email notification in paypal_ipn.php

 

hth James

 

 

 

This would be a wonderful solution to fix my dilemna, i want my customers to know that they do not have to open a paypal account to pay with their credit or debit cards (just like it was in the first module release, they could pay with credit card or they could log into their paypal account and pay that way)

 

could you please be more specific as to what lines you actually deleted to add the code you provided into the include_payment.php file

 

Thanks in Advance, also if anyone knows a fix for this please let me know as well

 

cheers

 

osck

Link to comment
Share on other sites

Phew!

I just read this entire thread. I especially studied the posts related to this one by zzfritz quoted below because I have getting the same error, i.e. "Fatal error: Cannot redeclare class order_total in /home/www/mystore/catalog/includes/classes/order_total.php on line 13"

 

I can't figure out from the posts on this whether it was solved or not and if so how. My checkout_Process.php is definitely not a virgin. It comes from a heavily modified version of Multi-Stores and it may be that it has some code in their to make authorize.net work and paypal to not work but I can't find it. I don't use authorize.net so I can take it out if I can find it, if that will fix my problem.

 

Any leads?

I have the same problem, and spent the last two evenings searching for solutions. I also have a heavily modded store. Does anyone have a Vanilla install of OSC they tried this on?
Link to comment
Share on other sites

Ok, I fixed my problem! I didn?t consider the fact that I had a template system installed. This meant that some files had to be edited in the CATALOG directory and some files had to be edited insides the template files themselves.

 

Luckily I had backed up all my data! This is VERY important people, jeje. I restored my site and went over the steps again, slowly and not multitasking. I had all my focus is the editing taking all the time in the world.

 

Once I finished uploading everything, it worked! The only other issue I has was that at the moment of checking out the user got that following error that prevented him from completing payment:

 

?The seller accepts encrypted website payments only. You cannot pay the seller through un-encrypted buttons. Please contact your seller for more details.?

 

This had a simple solution:

a ) Go to http://www.paypal.com

b ) Log in

c ) Go to Profile

d ) Go to Website Payment Preferences

e ) Go to Encrypted Website Payments

f ) Check the radio button to off

g ) Click Save

 

 

LOTS OF LUCK PEOPLE, HOPE THIS HELPS! :thumbsup:

Edited by Haitashi

If you have a serious problem but it can be solved, why worry about it? If you have a serious problem but it can't be solved, then why worry about it?

Link to comment
Share on other sites

In relation to th the error below:

Fatal error: Cannot redeclare class order_total in /home/coffee4/public_html/test/includes/classes/order_total.php on line 13

 

I found that the Authorize.net consolidated code in checkout_process calls the order total class. I assume that since PP redirects back to this page, the program rereads this file from the beginning and gets stuck here.

Link to comment
Share on other sites

In relation to th the error below:

Fatal error: Cannot redeclare class order_total in /home/coffee4/public_html/test/includes/classes/order_total.php on line 13

 

I found that the Authorize.net consolidated code in checkout_process calls the order total class.  I assume that since PP redirects back to this page, the program rereads this file from the beginning and gets stuck here.

 

Gregg/zerodash,

Do you have any specific solution of how to correct this, i.e. what line of code to replace with what on what page?

 

I am using a mod made by a guy who uses authorize.net so he probably has the authorize.net code in there that is causing the problem but I haven't a clue how to find it and remove it. Please give me a clue. I am in the meantime using 2checkout.com but would prefer to at least also have paypal as an option.

 

Thanks

Edward

I have moved on from oscommerce to magento and no longer monitoring this site.

Link to comment
Share on other sites

Yes, I modified the look tyo be comparable to v2.9 adding the following code to checkout_payment.php at line 252

....

contributions for a start I also changed the email notification in paypal_ipn.php

 

hth James

 

Yes James I second the motion for more specifics. Line 252 on my page is not the same it is on yours. Also, because I am not entirely sure what this hack will do, it would be great if you could explain and perhaps reference a url so that we can know how much we want this hack anyway.

Thanks for your help.

Edward

I have moved on from oscommerce to magento and no longer monitoring this site.

Link to comment
Share on other sites

You dont need to activate IPN on your account, by sending the notify_url with the payment IPN is automatically configured for your store.

 

From the paypal dev guide

 

Hey Sparky,

What about the auto return feature. This is obviously the best way to insure sales are completed in osc. But they do require a url to activate this. And I do have multiple shops so I can't have all my auto returns going back to one url. Is the auto-return also built into your code so that I don't have to activate it on paypal? If it is, it isn't working on my shop so where did I go wrong?

 

Thanks

Edward

I have moved on from oscommerce to magento and no longer monitoring this site.

Link to comment
Share on other sites

Hey Zerodash,

 

Regarding:

Fatal error: Cannot redeclare class order_total in /home/.../.../catalog/includes/classes/order_total.php on line 13

 

The problem is gone in my store now and I think I know why. :thumbsup:

 

I don't think it has anything to do with authorize.net; I have read some theory about his here no one has shown any code to back it up.

 

I just was re-reading around in this topic and came accross a post where Sparky explains that "You dont need to activate IPN on your account, by sending the notify_url with the payment IPN is automatically configured for your store."

 

I submit to you all that...

It isn't just that you don't need to activate IPN in PayPal; it is incompatible with this contribution and will break it if you do. The way this works is that you would either activate IPN and specify a IPN url in PayPal or you would accomplish the same via the code in your cart, i.e. this paypal mod. And as long as you are using this paypal mod then your choice is the later be defaul and if you also activate IPN in PayPal then you are setting yourself up for double declares, i.e. a redeclare and thus the error above.

 

Can anyone verify or refute this? In the meantime all I can is it works for me.

 

Edward

I have moved on from oscommerce to magento and no longer monitoring this site.

Link to comment
Share on other sites

Did you ever get this working? I had this error and I had to create my own certificate and key if I recall correctly. The paypal docs say you can download theirs, but that never worked for my cert and key. If you have openssl, follow the directions for creating your own on your server. That's what I did when I had this same error and it fixed the problem.

 

sigh....been working on this for like forever now... I read this thread and my settings are correct im pretty sure about it. checked all the settings more than 20 times by now. I did the test on sandbox and on the live paypal server.  I get this error below

 

Error Detected

--------------------------------------------------------------------------------

The email address for the business is not present in the encrypted blob. Please contact your merchant.

 

Any ideas? What is an encrypted blob? how can i verify my e-mail address in the blob?

 

What i simply want to do is I want people having the option to go to paypal and pay without CC having to go sign up at paypal. I received this result only once at the sandbox and after i put encrypted web payments to 'false'. and after I tried it again but then it goes to the test(sandbox) server but asks for a paypal account. So the customers doesn't have an option. 

 

Thats the only way i get it working(consumers needs to sign up before they can purchase). I dont want this! Another odd thing is that when the order has been accepted at the test server the order status didnt change right away.

 

I would like to get this working but been working long hours on it and becuase of 'poor' documentation on both paypal IPN and paypal developer central I do not understand my problem and I do not know what to do.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...