paypal web hook verification in php for woocommerce plugin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have developed a plugin for woocommerce for the integration paypal and its working fine, now i want to give webhook support to my plugin so that delayed payments works more efficiently.
I have referred the doc of paypal , for the verification they have given the example of curl which is not working for me. is it possible to do verification with in build functions instead.
also i would like to know that if we given a false request to "api-m.sandbox.paypal.com/v1/notifications/verify-webhook-signature"
for verification what will be the response from there side

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @nafid
Thank you for posting to the PayPal community.
Yes, PHP can be utilized for webhook verification.
For more information, kindly refer to the provided detailed guide links below.
https://developer.paypal.com/api/rest/webhooks/rest/
https://developer.paypal.com/api/rest/webhooks/rest/#link-additionalinformation
I would suggest to please contact your website developer (or) the support of the third-party platform (WooCommerce) to handle the internal website code.
If you send a false or incorrect request for verification, the response will indicate that the webhook signature is invalid. This response will likely include an error message or a status code indicating the failure of the signature verification.
If your still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detailed information and error details.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is PaymentPlugins an official PayPal partner ? in PayPal Payments Standard
- PayPal Complete Payments Error Notification in PayPal Reporting
- woocommerce 2 account in PayPal Payments Standard
- How Can I ensure apple pay works for subscriptions. in PayPal Payments Standard
- Credit card payment error in woocommerce in PayPal Payments Standard