Jump to content

PayPal Commerce Payment not going through


Rahul_Murali

Recommended Posts

Recently I installed PayPal Commerce Platform plugin, I believe I have set it up properly, I can see them of the checkout and when I try to checkout out it redirects me to PayPal and after completing the payment I can see checkout page displaying

Quote

Many thanks for your order! The order status is currently pending but it will automatically update to processing once payment is confirmed. Normally this is automated and will happen within the hour but please do contact us if you require more information.

The money was never credited to the the company account nor taken from the buyers account.

I can see a 400  error in the request log which happens every few mins 

Request Time Today, 09:58
Request URL https://api.paypal.com/v1/identity/generate-token
Request Headers

PayPal-Request-Id: XXXX Content-Type: application/json Authorization: Bearer XXXXXXXXX

Request Body  
Response Code 400 - Bad Request
Response Headers  
   


Old PayPal Plugin works without any issue. 

PayPal Commerce Platform plugin is on latest version (1.9.3) with mostly default config.

Any help appreciated, Thanks.

Link to comment
Share on other sites

On 1/19/2024 at 1:00 PM, Al Brookbanks said:

Can you login to the extension configuration screen and click the disconnect button. Once done please connect again. Then save the config and clear the cache. 

Tried several times, does not seem to help

Edited by Rahul_Murali
Link to comment
Share on other sites

  • 4 months later...

Bumping this as it's the exact same symptoms I'm getting with a brand new fresh CubeCart installation (6.5.5) and Paypal Commerece Plugin (1.9.7) today (June 2024).

I can't see a Paypal Standard plugin available to install as previously mentioned on other threads.

So far I've:

  • installed a brand new default installation, even down to leaving the test products
  • deleting and reinstalling the Payapal Commerce Platform extension
  • Re-setting up the extension

This results in no payments going beyond Processing, with the following errors in request log:

Any advice welcomed as it's halting the sale of anything!

Link to comment
Share on other sites

Is there anything in the Request Log's 'Request Headers' and 'Request Body' lines? If so, 'X'-out anything personal and post the contents.

In my experience (but not with anything related to PayPal), a Bad Request is a "catch-all" when a data item in the Request is "out-of-spec". That is, for example, maybe the price is expected to have two digits after the decimal point, but there is only one (or three, etc).

Examining the Request payload might show what is "bad" about it.

Link to comment
Share on other sites

I would expect this is something to do with your server configuration. PayPal may give a bad request if the SSL protocols are not supported. 

Please make sure OpenSSL is up to date and PHP is configured to use it. 

Link to comment
Share on other sites

Request Time    Yesterday, 21:06
Request URL   https://api.paypal.com/v2/checkout/orders/8NL744251H483193G/capture
Request Headers    PayPal-Request-Id: 665cd0f44124f1.34493500 Content-Type: application/json PayPal-Partner-Attribution-Id: CUBECARTLIMITED_Cart_CubeCartPCP Authorization: Bearer <Redacted>
Request Body    
Response Code    400 - Bad Request
Response Headers    
Response Body    <!DOCTYPE html> <html> <head> <title>400 Error - Message</title> <meta content="description" name="Error Page" /> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" /> <style> html { height: 100%; display: block; } body { margin: 0; padding: 0; min-width: 768px; font-size: 14px; font-weight: 300; line-height: 1.231; font-family: brandon_text, "Open Sans", sans-serif; } div { display: inline-block; box-sizing: border-box; } .error-page { position: fixed; top: 0; bottom: 0; left: 0; right: 0; } .error-page__main-container { position: fixed; top: 0; bottom: 0; left: 0; right: 0; height: 130px; margin: auto; } .error-page__message { position: relative; color: #61717D; display: flex; flex-direction: column; align-items: center; } .error-page__header { background: #002538; height: 60px; display: flex; align-items: center; } .error-page__header-logo { margin-left: 24px; } .error-page__header-name { margin-left: 10px; color: white; font-weight: 500; font-size: 16px; } </style> </head> <body> <div class="error-page"> <div class="error-page__header"> <div class="error-page__header-logo"> <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect opacity="0.6" width="36" height="36" rx="3" fill="#DDDDDD" fill-opacity="0.25"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.63948 13.8763C7.32265 13.2097 6.53978 12.9085 5.80923 13.22C5.07771 13.5323 4.80932 14.3104 5.13972 14.9769L8.20726 21.3745C8.68977 22.3785 9.19844 22.9037 10.1528 22.9037C11.1721 22.9037 11.6168 22.3311 12.0984 21.3745C12.0984 21.3745 14.7745 15.7848 14.8016 15.7262C14.8287 15.6667 14.915 15.4863 15.1872 15.4873C15.4178 15.4901 15.6106 15.6658 15.6106 15.9019V21.3699C15.6106 22.2121 16.098 22.9037 17.0349 22.9037C17.9718 22.9037 18.4786 22.2121 18.4786 21.3699V16.8966C18.4786 16.0339 19.1219 15.4743 20.0007 15.4743C20.8785 15.4743 21.4638 16.0525 21.4638 16.8966V21.3699C21.4638 22.2121 21.9521 22.9037 22.888 22.9037C23.824 22.9037 24.3327 22.2121 24.3327 21.3699V16.8966C24.3327 16.0339 24.9751 15.4743 25.8538 15.4743C26.7307 15.4743 27.3169 16.0525 27.3169 16.8966V21.3699C27.3169 22.2121 27.8052 22.9037 28.7421 22.9037C29.6771 22.9037 30.1848 22.2121 30.1848 21.3699V16.2784C30.1848 14.4071 28.6181 13.0963 26.7307 13.0963C24.8452 13.0963 23.6651 14.3476 23.6651 14.3476C23.0373 13.5667 22.172 13.0972 20.709 13.0972C19.1646 13.0972 17.8129 14.3476 17.8129 14.3476C17.1841 13.5667 16.1154 13.0972 15.2308 13.0972C13.8618 13.0972 12.7747 13.6755 12.1119 15.1303L10.1528 19.5608L7.63948 13.8763Z" fill="white"/> </svg> </div> <div class="error-page__header-name"> VMware NSX ALB (Avi) </div> </div> <div class="error-page__main-container"> <div class="error-page__message"> <h3>400 Response Code</h3> <p> <!-- Please contact our technical support with Request ID: 234-FDQk-MHwE and Application Name: vs_api.paypal.com_173.0.84.66-FRA --> </p> </div> </div> </div> </body> </html>

 

This is an example from one of them.

 

I'll check out OpenSSL configuration - thanks.  This is a new Fasthosts hosting account.

 

Link to comment
Share on other sites

Thankyou, I'm not sure on Plesk but it's not something I've seen while in my hosting admin console.  I've opened a ticket with Fasthosts, the OpenSSL version does look quite old though?

 

bash-4.2$ openssl
OpenSSL> version
OpenSSL 1.0.2k-fips 26 Jan 2017

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