Jump to content

Errors at checkout with Direct Payment and Express Checkout


Guest Stuart Swan

Recommended Posts

Guest Stuart Swan

We run CubeCart with Express Checkout and Direct Payment, when a user goes to pay by PayPal, the website is producing an error:

Fatal error: Call to undefined method SOAP_Fault::getAck() in /var/www/vhosts/example.com/httpdocs/modules/gateway/DirectPayment/form.inc.php on line 167

Fatal error: Call to undefined method SOAP_Fault::getAck() in /var/www/vhosts/example.com/httpdocs/modules/gateway/ExpressCheckout/transfer.inc.php on line 104

No changes have been made to the website so is this a PayPal issue, I remember hearing about an expiry on old style APIs for PayPal, could this be the case?Any ideas?

Link to comment
Share on other sites

I have also had the same problem today with a clients site, both Direct Payment and also Express Checkout. Haven't had any info from PayPal regarding API's expiry? Wonder if a new API certificate needs installing?

Link to comment
Share on other sites

Guest Stuart Swan

I have also had the same problem today with a clients site, both Direct Payment and also Express Checkout. Haven't had any info from PayPal regarding API's expiry? Wonder if a new API certificate needs installing?

After looking at the logs for PayPal within CubeCart I am seeing Ack failed messages and SSL issues with PayPal endpoint:

Sep 30 04:13:49 example_api1.example.com [info] DoDirectPayment, Elapsed: 977ms, Ack: Failure

Sep 30 04:37:17 example_api1.example.com [debug] DEBUG setEndpoint: https://api-aa.paypal.com/2.0/

Sep 30 04:37:18 example_api1.example.com [debug] Request XML: <?xml version="1.0" encoding="UTF-8"?>

Sep 30 16:37:27 example_api1.example.com [debug] Response XML:

Sep 30 16:37:27 example_api1.example.com [info] DoDirectPayment, Elapsed: 315ms

Sep 30 16:37:27 example_api1.example.com [error] curl_exec error 60 SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Sep 30 16:45:50 example_api1.example.com [debug] DEBUG setEndpoint: https://api-aa.paypal.com/2.0/

Sep 30 16:45:50 example_api1.example.com [debug] Request XML: <?xml version="1.0" encoding="UTF-8"?>

Link to comment
Share on other sites

Guest Stuart Swan

From what I can see it may have something to do with this: http://www.pdncommunity.com/t5/blogs/bloga.../article-id/456 anyone know of a specific fix for CubeCart?

Ok, that appears to be working now, what I done was edit the /lib/PayPal/cert/api_cert_chain.crt as with the link above by adding a third certificate from this link: https://www.verisign.com/support/roots.html the file is called 'Class 3 Public Primary Certification Authority - G2' or you can download the new api_cert_chain.crt from here https://cms.paypal.com/us/cgi-bin/?cmd=_ren...y_download_sdks which has the the latest files.

Hope this helps someone.

Link to comment
Share on other sites

From what I can see it may have something to do with this: http://www.pdncommunity.com/t5/blogs/bloga.../article-id/456 anyone know of a specific fix for CubeCart?

Ok, that appears to be working now, what I done was edit the /lib/PayPal/cert/api_cert_chain.crt as with the link above by adding a third certificate from this link: https://www.verisign.com/support/roots.html the file is called 'Class 3 Public Primary Certification Authority - G2' or you can download the new api_cert_chain.crt from here https://cms.paypal.com/us/cgi-bin/?cmd=_ren...y_download_sdks which has the the latest files.

Hope this helps someone.

Thanks Stuart, that has sorted it for me new it had to be something PayPal had changed!

Dean

Link to comment
Share on other sites

Guest aliceaod

OMG I'm not a coding genius. How do we fix this (in layman's terms) or is there a patch? I just need to know open/find/replace...that kind of thing.

Link to comment
Share on other sites

Guest CCS-DM

OMG I'm not a coding genius. How do we fix this (in layman's terms) or is there a patch? I just need to know open/find/replace...that kind of thing.

Hi, all you need to do is replace the "api_cert_chain.crt" which is located within CubeCart at: "pear/PayPal/cert" with the new one from PayPal which can be downloaded https://cms.paypal.com/cms_content/US/en_US...SOAP_SDK.tar.gz

Once you have downloaded and unpacked the file you can find the new certificate in the folder "PP_PHP_SOAP_SDK\php-sdk\lib\PayPal\cert"

This worked for me, Hope it helps.

Link to comment
Share on other sites

OMG I'm not a coding genius. How do we fix this (in layman's terms) or is there a patch? I just need to know open/find/replace...that kind of thing.

Hi, all you need to do is replace the "api_cert_chain.crt" which is located within CubeCart at: "pear/PayPal/cert" with the new one from PayPal which can be downloaded https://cms.paypal.com/cms_content/US/en_US...SOAP_SDK.tar.gz

Once you have downloaded and unpacked the file you can find the new certificate in the folder "PP_PHP_SOAP_SDK\php-sdk\lib\PayPal\cert"

This worked for me, Hope it helps.

THANK YOU CCS!!!! I've been on the phone with my hosting, and with paypal for 2 wasted days!! and what you've stated above has WORKED!! THANKS AGAIN! (and I'm not a pro at this)

Link to comment
Share on other sites

Guest dkcustoms

From what I can see it may have something to do with this: http://www.pdncommunity.com/t5/blogs/bloga.../article-id/456 anyone know of a specific fix for CubeCart?

Ok, that appears to be working now, what I done was edit the /lib/PayPal/cert/api_cert_chain.crt as with the link above by adding a third certificate from this link: https://www.verisign.com/support/roots.html the file is called 'Class 3 Public Primary Certification Authority - G2' or you can download the new api_cert_chain.crt from here https://cms.paypal.com/us/cgi-bin/?cmd=_ren...y_download_sdks which has the the latest files.

Hope this helps someone.

hello, sorry to be a pain but im rather confused im not sure exactly what i download and what i install.

can anyone explain in simple steps like:

1. go to this and download this

2. go to here and install this

ect ect

many thanks

i just get a bit lost reading some of this on here haha

Link to comment
Share on other sites

From what I can see it may have something to do with this: http://www.pdncommunity.com/t5/blogs/bloga.../article-id/456 anyone know of a specific fix for CubeCart?

Ok, that appears to be working now, what I done was edit the /lib/PayPal/cert/api_cert_chain.crt as with the link above by adding a third certificate from this link: https://www.verisign.com/support/roots.html the file is called 'Class 3 Public Primary Certification Authority - G2' or you can download the new api_cert_chain.crt from here https://cms.paypal.com/us/cgi-bin/?cmd=_ren...y_download_sdks which has the the latest files.

Hope this helps someone.

hello, sorry to be a pain but im rather confused im not sure exactly what i download and what i install.

can anyone explain in simple steps like:

1. go to this and download this

2. go to here and install this

ect ect

many thanks

i just get a bit lost reading some of this on here haha

Do what CCS-DM said. All I did was replace the file with a new file in the "Pear" folder and it worked. You have to download and unzip that file he mentioned. ..and then replace the old file with the new one. What I did was copy the old file and stored it in a separate folder in case I needed it. Everything works now.

Link to comment
Share on other sites

  • 2 weeks later...
Guest profunzime

I had the same problem and followed CCS-DM steps and now Express Checkout works, but I have problem with Direct Payment. After introducing all the card details I'm getting this message: "Sorry, your order failed! You can attempt to purchase your basket contents again below:..."

I've been searching for solving this problem since 2 days now and couldn't find anything. Please help.

Link to comment
Share on other sites

Guest profunzime

done some digging seems as of 3.0.19 paypal direct payments are no longer supported by cc3, we'll have to upgrade to cc4

Just made the update to the latest version of CC4 and there is another big problem there to witch I couldn't find a solution for it:

The customer can not add to cart anything....

So I figure to downgrade to cc3 again and maybe find a solution to accept credit cards...

Link to comment
Share on other sites

Guest SweetNightshade

done some digging seems as of 3.0.19 paypal direct payments are no longer supported by cc3, we'll have to upgrade to cc4

Could you cite your source on this please? I need to know for sure if I have to upgrade. I'm running on 3.0.20 and suddenly PayPal orders are giving customers a "Sorry, your order failed!" message, even though the payment does go through.

Link to comment
Share on other sites

Guest pauldes

http://forums.cubecart.com/index.php?showtopic=38533

"CubeCart 3.0.19 has been released which has some minor maintenance updates. Upgrade is not important nor recommended unless any of the following changes will effect you.

What's changed?

PayPal Express Checkout & Direct Payment have been removed. This is because PayPal will be discontinuing the integration method used in v3 after September 1, 2009. If you are a PayPal Pro customer using CubeCart v3 we urge you to upgrade to CubeCart v4 which utilises the latest NVP Signature integration that has been certified by PayPal.

Protx rebranding to SagePay with 2.23 protocol integration from 2.22.

Google Base (Froogle) updated to include product "condition" required in all feeds by the end of March.

Linkpoint Connect integration bug fixes.

A file comparison report has been bundled in the "changelog" folder. "

Link to comment
Share on other sites

Guest SweetNightshade

Okay, so it's just Paypal Express. Express isn't even offered as an option in the control panel on 3.20, so that's not my issue. I'm using IPN.

Link to comment
Share on other sites

  • 1 month later...
Guest galgammer

I've added that new file but i'm still getting the same problem (though mine's on line 165)

Thanks everybody. With hours of searching for this issue and no help with Pay Pal....FINALLY it is resolved.

I would make sure your log files are running and check them. Those are great for reporting the true error.

Link to comment
Share on other sites

  • 1 month later...

I've added that new file but i'm still getting the same problem (though mine's on line 165)

Thanks everybody. With hours of searching for this issue and no help with Pay Pal....FINALLY it is resolved.

I would make sure your log files are running and check them. Those are great for reporting the true error.

4 hours searching to find this thread. Found it through Google, not within the forum.

This thing should be stickied!

Link to comment
Share on other sites

I've added that new file but i'm still getting the same problem (though mine's on line 165)

Thanks everybody. With hours of searching for this issue and no help with Pay Pal....FINALLY it is resolved.

I would make sure your log files are running and check them. Those are great for reporting the true error.

4 hours searching to find this thread. Found it through Google, not within the forum.

This thing should be stickied!

Still no joy.

I get no error messages, everything seems as it should be.

The Express Pay works fine, but the Direct Pay comes up and seems just fine, until you go to pay then get the message - Sorry, your order failed!

No explanation, just the message.

I've been through most everything. Running a heavily modded (Estelle's shipping, discounts, etc.) V3.17. Had been using IPN with only occasional problems, caused by someone starting a payment, then abandoning the payment process and not logging off, just leaving. That would play havoc, but payments always went through.

Any ideas on this?

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