Creating the webhook fails
-
Hi @mrclayton.
Thank you for your work of providing an alternative PayPal plugin for WooCommerce. I’m just trying to figure out if it works for me.
I have made the setting for the sandbox and get “Status: Connected” with a green check mark.
When I try to create the webhook I get the message
Invalid data provided
. The log files has the following information:2023-11-21T18:59:15+00:00 ERROR API error: Array ( [url] => https://api-m.sandbox.paypal.com/v1/notifications/webhooks [method] => POST [http_status] => 400 [request] => Array ( [url] => https://sandbox.domain.tld/wp-json/wc-ppcp/v1/webhook/sandbox [event_types] => Array ( [0] => Array ( [name] => PAYMENT.CAPTURE.COMPLETED ) [1] => Array ( [name] => PAYMENT.CAPTURE.DENIED ) [2] => Array ( [name] => PAYMENT.CAPTURE.REFUNDED ) [3] => Array ( [name] => CHECKOUT.ORDER.APPROVED ) [4] => Array ( [name] => CHECKOUT.ORDER.PROCESSED ) [5] => Array ( [name] => CUSTOMER.DISPUTE.CREATED ) [6] => Array ( [name] => CUSTOMER.DISPUTE.RESOLVED ) ) ) [error] => Array ( [name] => VALIDATION_ERROR [message] => Invalid data provided [debug_id] => 44120256007c5 [information_link] => https://developer.paypal.com/docs/api/webhooks/#errors [details] => Array ( [0] => Array ( [field] => url [location] => body [issue] => Not a valid webhook URL ) ) [links] => Array ( ) ) )
When I open the URL
https://sandbox.domain.tld/wp-json/wc-ppcp/v1/webhook/sandbox
in my browser I get{ "code": "rest_no_route", "message": "No route was found matching the URL and request method.", "data": { "status": 404 } }
Would you mind telling me what I might have done wrong?
Thank you in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Creating the webhook fails’ is closed to new replies.