How to verify a webhook with Ruby? (In Rails)
问题 I'm looking to learn how to verify a Paddle webhook with Ruby? Their example has an option on how to do it with PHP, Python and JavaScript, but no Ruby. Any ideas on how to do it? This following old example doesn't work: require 'base64' require 'php_serialize' require 'openssl' public_key = '-----BEGIN PUBLIC KEY----- MIICIjANBgkqh...' # 'data' represents all of the POST fields sent with the request. # Get the p_signature parameter & base64 decode it. signature = Base64.decode64(data['p