paypal web hook verification in php for woocommerce plugin

nafid
Contributor
Contributor

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

Login to Me Too
1 REPLY 1

Kavyar
Moderator
Moderator

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.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.