Hey folks!
I’m currently trying to setup my node server to handle webhook payments requests from my payment provider Paddle. For that they give you a PUBLIC_KEY string that appears to be multiple lines long. Everything works fine on Heroku, however, I can’t seem to get it to work on Render.
I figured that the issue might be related to the default env input box not handling multiple lines that well, so I tried to do it with a secret file but I’m a bit stuck and nothing works.
Here is what I did:
-
Remove PUBLIC_PADDLE_KEY env from list
-
Create new secret file, call it .public_paddle_key and the string that looks like this:
-----BEGIN PUBLIC KEY-----
MasdfasdfsdfsdfmhFhvBv6SQhKUfzwG4
1mpq0Wz8gAnLSLnvisdasd1IRHsBid3rrpXYJaUwNat518q3pHLj3
Z3Qwf5SHuWmftFoT/ibp6jvKKcYjuffss15QQJopaAasjU1wZy4mUxlvd7VLNfZP
jxvcvvc8BDj0rjde4+vTnVOamjZ4/eYw3uuuSCdSfUL/0ue4n8l+k8gMRTXuDFzh
UZetPiHlFdF
-----END PUBLIC KEY-----
- Have this starting command:
export PUBLIC_PADDLE_KEY=$(cat .paddle_public_key) yarn start
Would love to get your help! Thanks.