Edgefunction Secret key
I’m encountering a problem in Settings > Secrets where different environment variables for PayPal Sandbox and Live end up showing the same value, even though I entered different ones.
Steps to reproduce:
In Settings > Secrets, enter a unique value for PAYPAL_LIVE_CLIENT_ID and PAYPAL_LIVE_CLIENT_SECRET.
Save the changes.
Enter a different value for PAYPAL_SANDBOX_CLIENT_ID and PAYPAL_SANDBOX_CLIENT_SECRET.
Save again.
Observed result:
After saving, both the Live and Sandbox variables display the same values.
This happens even if I make sure the Sandbox values and Live values are completely different.
Impact:
I cannot store separate credentials for Sandbox and Live environments.
This is blocking my ability to test and switch between environments.
Please advise if this is a known bug, and if there’s a workaround so I can store different credentials for each environment without overwriting.
14 Replies
How did you come to this conclusion that the values are same? Are you logging the values inside your function?
I can see the value at secret
You mean these? These are not the actual secrets. These are hashes calculated from the secret value

Yes!!!
But it is same
It can be same right?
hover over the value, you'll see the full hash. Compare the full hashes. Even if there is one character difference in the secret value, the hashes will be different
Ok. I will check thanks
It is same
I just checked
Something wrong with paypal?
If the hashes are same, then check the actual secret values you add here
It is different for sure. One is sandbox value and the other is live.
I'd recommend to not check the equality manually, you can simply paste the values in a browser console and check equality

This is a sha256 hash. It's one of the most robust hashing solutions. And it will only generate the same hash value if the original value is same
Ok
Can I talk to you direct mesaage?
I want to ask you about paypal
Sorry. You can post your queries here, someone else who knows about paypal might answer
Ok
Thanks
Thanks for help