Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


sunshynecraftsbeads

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

 

 

Link to comment
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

Link to comment
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 !

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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 CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!)

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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


 

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