How to Verify Paddle.com Webhooks / Alerts in Ruby on Rails
07-Oct-2021 1618
When we first launched OhMySMTP we chose Paddle as our Payments Provider, primarily because they handle all sales taxes and payment infrastructure globally. One of the things that took longer than it should have was ensuring that alerts (webhooks) received from paddle.com actually come from Paddle.Luckily Paddle signs every request using Public Key Cryptography, and it works in a similar way to DKIM. Paddle creates a short signature, using a Private Key specific to our Paddle account, and includes it with every webhook sent from their system, which we can verify on our end using the Public Key (see https://developer.paddle.com/webhook-reference/verifying-webhooks for more details). Without this a nefarious actor might figure out your webhook endpoint and create a bunch of fake subscriptions/updates in your app.
How to Verify Paddle.com Webhooks / Alerts in Ruby on Rails #ruby #rubydeveloper #rubyonrails #Verify #Paddle.com #Webhooks #Alerts #Rails #webhooks https://rubyonrails.ba/link/how-to-verify-paddle-com-webhooks-alerts-in-ruby-on-rails