Search code examples
paypalwebhooksslackslack-api

PayPal webhook custom headers


I need to add custom headers to my PayPal webhook calls, so I can make a message in Slack. Is there any way to add headers to a PayPal webhook request?


Solution

  • I don't see anything in webhook creation that would let you set a custom header for PayPal to send along with the webhook: https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_post

    So, the straightforward solution would be to have the webhook go to your own code/listener, and that webhook listener of yours can immediately do a Slack API call to send the message.