• rodwordpress99

    (@rodwordpress99)


    When I click on the “Paypal” button to pay for an item it errors with:

    “The response is not a valid JSON response”

    If I click on the “Proceed to checkout” button it goes to the checkout page, I fill in all the fields and scroll to the bottom but everything is grayed out with 2 spinning balls which never finish.

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

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

    (@mrclayton)

    Hi @rodwordpress99

    The reason you’re getting that error is because your server is responding with HTML but JSON is the expected format of the response.

    The PayPal plugin uses the WordPress REST API.

    Here is an example of the request URL used by the PayPal plugin.

    https://wellatlast.com/?wc-ajax=wc_ppcp_frontend_request&path=%2Fwc-ppcp%2Fv1%2Fcart%2Forder&_locale=user

    The response header Content-Type from your server is html when it should be json. I recommend contacting your hosting company and showing them this support ticket. This is likely a very quick fix for them to ensure the Content-Type header is correct for the WordPress REST API.

    It’s also this is being caused by a plugin you’re using so you could try testing with just WooCommerce and PayPal active.

    Kind Regards

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