• Resolved threadi

    (@threadi)


    Hello,

    Since yesterday we have had a problem with a store where requests to the PayPal API are not being answered.

    If you add an item to the shopping cart in the above-mentioned store and then want to use the PayPal button in the shopping cart, a timeout occurs.

    The wc-ppcp log then shows, for example:

    2025-02-21T12:57:01+00:00 Error API error: Array
    (
    [url] => https://api-m.paypal.com/v2/checkout/orders
    [method] => POST
    [http_status] => 400
    [request] => Array
    (
    [..]

    2025-02-21T12:57:01+00:00 Error Error creating PayPal order. Msg: cURL error 28: Operation timed out after 80002 milliseconds with 0 bytes received Params: Array
    (
    [..]

    I tried to reach the API from the hosting via curl:

    curl -X POST -vvv https://api-m.paypal.com/v2/checkout/orders

    There is never a response here. Unlike with other projects in other hostings that I have access to. There at least a message “Authentication failed” appears.

    PayPal Support writes about this:

    When you click the PayPal button, the order should be initiated with an Order ID that is a combination of alphabetic and numeric values, containing 17 digits. It should look something like this: 5O190127TN36471**.

    However, in your case, a random value is being passed, which is causing the error and preventing the order from being initiated or created.

    Screenshot from PayPal Support:

    View post on imgur.com

    The hoster reports that there is no firewall in the way of communication.

    Is there any idea about this?

    WordPress 6.7.2
    WooCommerce 9.6.0
    Payment Plugins for PayPal WooCommerce 1.0.55 (previously 1.0.54)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @threadi

    The fact that you can’t reach the PayPal API via a direct request from the server means it’s being blocked. That timeout means the request is not making it past the server.

    I recommend double-checking with the host because in the pas hosts have said similar things and there was a firewall in place.

    Also, make sure the servers SSL trusted store is up to date.

    Kind Regards

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.