• Resolved joncon62

    (@joncon62)


    Is it possible to run this in sandbox mode on a localhost? When I try it I get the error message when testing out a payment:

    Request is not well-formed, syntactically incorrect, or violates schema.

    Seems fine on a real host.

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

    (@mrclayton)

    Yes, it can be run on local host. Navigate to the Woocommerce Logs page and look for the wc-ppcp log file.

    It will have the reason the request failed. Make sure you connected the plugin correctly if you manually entered your API keys.

    Kind Regards

    Thread Starter joncon62

    (@joncon62)

    At the top of that log it says

    Webhook could not be configured during connect process. PayPal does not allow webhooks where the domain is localhost.
    

    There are lots of other errors. When I set it up on a real host webhooks are set and it appears to run fine.

    I also tried using localwp and it did set the webhooks but I got the original ‘Request is not well-formed’ error.

    Is there a workaround to get it going on localhost?

    Plugin Author Payment Plugins

    (@mrclayton)

    Webhooks don’t work on localhost because localhost has no meaning when PayPal is sending a notification to a domain.

    Your issue isn’t being caused by localhost most likely unless your machine can’t make outbound requests. Look at the log entries with a time stamp that matched your most recent failed request. There will be details about why PayPal is rejecting the request.

    Thread Starter joncon62

    (@joncon62)

    Ah! I got it going now. All my products are digital so I have a snippet to remove unnecessary billing fields in the checkout, but I guess PayPal needs some of them – not quite figured out which, but it doesn’t error anymore.

    Thanks for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Run on localhost?’ is closed to new replies.