Get webhooks into Slack every time you sell a product on Gumroad
First of all, setup faasd with TLS using the Serverless For Everyone Else book.
Then create an incoming webhook URL via Slack's docs.
Then clone this repo, and create the two secrets.
faas-cli secret create seller-id --from-literal "GUMROAD_SELLER_ID"
faas-cli secret create slack-url --from-literal "https://hooks.slack.com/services/X/Y/Z"
You can get the slack-url by creating an "incoming webhook" and creating a new channel for the messages, or using an existing one.
Deploy the function after creating the secrets:
faas-cli deploy
Now enter your function's URL on the Advanced tab in Gumroad's settings page, in the "Ping" field.
Your URL will be something like: https://faasd.domain.com/function/gumroad-pings
This is what you'll receive.
Feel free to customise the code, or reach out on OpenFaaS Slack