Jump to content
sunshynecraftsbeads

Paypal Sandard - Customer receives message could not verify Paypal trans.

Recommended Posts

Hello Everyone,

 

I was having problems with the customers being able to make purchases from my site so I re-installed the Paypal Payments Standard 3.1 from my admin area. All information was entered correctly and I did the API Test Server Connection test and was successful.

 

Using my test account I made a purchase. Overall everything went smoothly including making the Paypal payment however I was then returned back to the cart with the item still in the cart and there was now a error message in a big red box saying the following;

 

Could not verify the PayPal transaction. Please try again.

 

So from the customers point of view the purchase was never made and payment was never received.

 

On the other hand I did receive the payment, the purchase appears in my admin area as a order received & I received notification from Paypal that I had new funds.

 

Neither the customer nor myself received emails regarding the purchase itself.

 

Could someone please advise what I could have done wrong or would a more current Paypal add on correct this problem ?

 

Thank you in advance.

 

 

 

I am currently working with 2.3.4 BS Responsive

 

 

Share this post


Link to post
Share on other sites

Hi,

 

you should install the PayPal App for your OsC-Version. This doesn't mean it'll fix the error, but the App saves a log that helps track down the error.

 

There are two possible sources for your error:

 

1.) The Sandbox-Server doesn't work right.

This happened to us, when we tested the PayPal App after switching hosts. The App expects a certain response from the PayPal-Server, but the Sandbox didn't send it. Result: The "purchase" failed.

After we switched from Sandbox to Live, the error went away.

 

2.) The Live-Server doesn't send the order_id back to your store.

This is an ongoing issue with us. Sometimes the PayPal-Server forgets to send back the order_id and the PayPal payment-module can't finalize the order.

Our "fix": The Payment-Module grabs the last order of the customer and tries to finalize the order with the order_id.

 

In your case, I guess the source of the error is the Sandbox, but without the log of the PayPal-App it's hard to be sure.

 

AD

Share this post


Link to post
Share on other sites

I think very specific settings are needed in your PayPal account for Standard to work properly, if you search the forums there should be detailed info somewhere.

Share this post


Link to post
Share on other sites

Hello,

 

Thank you Rene & Sam for providing me with information on what the problems may be. I spent a few hours on researching the standard Paypal module as well as make sure everything was set up properly with PayPal but I could not find the issue. I then uninstalled the PayPal Standard module and set up the PayPal Express Checkout module and it works like a charm.

 

Again thank you again for taking the time to help me. It is greatly appreciated.

 

Have a great day !

Share this post


Link to post
Share on other sites

I'm having the same problem as described above. Running an 2.3.4 using PP standard 3.1. Is there a solution for the standard module or can anybody confirm a working shop with the latest PP standard 3.2?

 

Thanks for any reply.

stefan

Share this post


Link to post
Share on other sites

@@stefan21  Your answer is the same as above: Install the PayPal App. Your old version is obsolete and not supported by PayPal.

 

Regards

Jimi


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Yes, just install the App. You can select which PayPal services you want to use when you configure the App.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Uninstall the old module before installing the new App. Keep a copy of your credentials to use with the new setup. The App tries to retrieve your credentials from Paypal, so you might not need them, but it never hurts to be prepared.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Jim,

 

one more question: as I use an old version of PP standard (3.1) in a 2.3.4 shop - should I remove the old version before installing the new app (including any database entries, if there are some, what I don't know yet?)

 

stefan

Share this post


Link to post
Share on other sites

Ouhhh - you've been faster than me - thank you for your reply. Are there any database entries to remove also?

 

Regards,

stefan

Share this post


Link to post
Share on other sites

Uninstalling should remove the database entries. After that, you can search the configuration table in your database for anything that contains %paypal% if you want. If you do find any orphaned entries, remove them.

 

The App will overwrite any old files that it still uses, so no need to remove the files unless you want to.

 

I suggest doing a database and file backup before doing any of this. Just in case.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hmm, what do you mean with uninstalling? I'm able to remove the module (modules - payment). Is there any uninstall-procedure?

 

Regards,

stefan

Share this post


Link to post
Share on other sites

The "Remove Module" button uninstalls it, but doesn't actually remove the files. It's a poor name choice.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

#1 yes, #2 is unnecessary but can be done if you want to.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Installed the addon and followed the instruction carefully. Credentials have been retrieved, PP seems to be configured properly.

 

After enabling PP standard, errors occur:

 

15.04.2017 10:53:04 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_express in xxx/eyeseetv/includes/modules/payment/paypal_express.php on line 17, referer: https://www.eyeseetv.de/xxx/modules.php?set=payment&list=new
15.04.2017 10:53:08 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_standard in xxx/eyeseetv/includes/modules/payment/paypal_standard.php on line 17, referer: https://www.eyeseetv.de/xxx/modules.php?set=payment&list=new&module=moneyorder
15.04.2017 10:53:53 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_standard in xxx/eyeseetv/includes/modules/payment/paypal_standard.php on line 17, referer: https://www.eyeseetv.de/xxx/modules.php?set=payment
15.04.2017 10:53:57 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_express in xxx/eyeseetv/includes/modules/payment/paypal_express.php on line 17, referer: https://www.eyeseetv.de/xxx/modules.php?set=payment

 

I didn't enable PP express, only PP standard. All other payment modules are vanished and I'm not able to add i.e. the prepayment module again. BTW the shop is running in the language german.

 

Any hints where to investigate?

 

Regards,

stefan

Share this post


Link to post
Share on other sites

did you remove all files assoicated with the old addon?  looks like the classes already exist and are being redeclared


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@@Mikepo,

 

thank you for your reply.

 

Might be that I only renamed the old files. I'll delete them now and report again.

 

Regards,

stefan

Edited by stefan21

Share this post


Link to post
Share on other sites

Now, two things to report:

 

1.) Enabling PP standard is not working with my shop. Adding an item to the shopping-cart ends up with a blank page while the item was added, but the shopping-cart does not show up.

 

Further all other payment modules have been disappeared.

 

Here's the error:

 

15.04.2017 16:08:19 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_standard in xxx/eyeseetv/includes/modules/payment/paypal_standard.php on line 17, referer: https://www.eyeseetv.de/shopping_cart.php

 

and while trying to add another payment method:

 

15.04.2017 16:11:40 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_standard in /xxx/eyeseetv/includes/modules/payment/paypal_standard.php on line 17, referer: https://www.eyeseetv.de/xxx/paypal.php?action=configure&module=PS
15.04.2017 16:11:44 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_express in /xxx/eyeseetv/includes/modules/payment/paypal_express.php on line 17, referer: https://www.eyeseetv.de/xxx/modules.php?set=payment
15.04.2017 16:11:50 eyeseetv.de [client x] PHP Fatal error: Cannot redeclare class paypal_standard in /xxx/eyeseetv/includes/modules/payment/paypal_standard.php on line 17, referer: https://www.eyeseetv.de/xxx/modules.php?set=payment&list=new

 

2.) Disabling and un-installing the PP standard app (module?) re-enables the other payment modules/methods. They just appear again in the payment modules section and also in the shop.

 

As I already mentioned the shop is configured for the german market.

 

Any help is greatly appreciated.

 

Regards,

stefan

Share this post


Link to post
Share on other sites

There was an update. It's now PayPal App v5.018. Don't know, if that matters. Errors are still the same.

Edited by stefan21

Share this post


Link to post
Share on other sites

The "Cannot redeclare class" error almost always means that you have uploaded a file to the wrong location. Usually this happens when you upload a code file to the languages directory. Check all of your language files, or replace them with new copies from the Addon package.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Jim,

 

don't know what to say - I double checked the uploadings. You're right, I didn't pay attention to the languages... sorry.

 

Anyway there's still an error. Payment with PP standard is working now til re-directing back to the shop.

 

Here's what in the status bar of the browser occurs:

 

https://www.eyeseetv.de/checkout_process.php?amt=69.22&cc=EUR&cm=7&st=Completed&tx=XXX

 

The result is a blank page.

 

In PP I configured the re-direction page to https://www.eyeseetv.de/checkout_process.php

 

Are there any ideas to track this one down?

 

Regards,

stefan

Share this post


Link to post
Share on other sites

apache shows:

 

15.04.2017 19:34:20 eyeseetv.de [client x] PHP Warning:  include(/xxx/eyeseetv/includes/apps/paypal/modules/PS/api/GetTransactionDetails.php): failed to open stream: No such file or directory in /xxx/eyeseetv/includes/apps/paypal/OSCOM_PayPal.php on line 377, referer: https://www.paypal.com/webapps/hermes?token=5E053446W25969152&useraction=commit&rm=2&mfid=1492277605507_229d29bd1641e
15.04.2017 19:34:20 eyeseetv.de [client x] PHP Warning:  include(): Failed opening '/xxx/eyeseetv/includes/apps/paypal/modules/PS/api/GetTransactionDetails.php' for inclusion (include_path='.:/opt/RZphp5/includes') in /xxx/eyeseetv/includes/apps/paypal/OSCOM_PayPal.php on line 377, referer: https://www.paypal.com/webapps/hermes?token=5E053446W25969152&useraction=commit&rm=2&mfid=1492277605507_229d29bd1641e
15.04.2017 19:34:20 eyeseetv.de [client x] PHP Fatal error:  Call to undefined function OSCOM_PayPal_PS_Api_GetTransactionDetails() in /xxx/eyeseetv/includes/apps/paypal/OSCOM_PayPal.php on line 381, referer: https://www.paypal.com/webapps/hermes?token=5E053446W25969152&useraction=commit&rm=2&mfid=1492277605507_229d29bd1641e


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×