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
inder
inder2w ago
How did you come to this conclusion that the values are same? Are you logging the values inside your function?
hyperjason
hyperjasonOP2w ago
I can see the value at secret
inder
inder2w ago
You mean these? These are not the actual secrets. These are hashes calculated from the secret value
No description
hyperjason
hyperjasonOP2w ago
Yes!!! But it is same It can be same right?
inder
inder2w ago
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
hyperjason
hyperjasonOP2w ago
Ok. I will check thanks It is same I just checked Something wrong with paypal?
inder
inder2w ago
If the hashes are same, then check the actual secret values you add here
hyperjason
hyperjasonOP2w ago
It is different for sure. One is sandbox value and the other is live.
inder
inder2w ago
I'd recommend to not check the equality manually, you can simply paste the values in a browser console and check equality
inder
inder2w ago
No description
inder
inder2w ago
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
hyperjason
hyperjasonOP2w ago
Ok Can I talk to you direct mesaage? I want to ask you about paypal
inder
inder2w ago
Sorry. You can post your queries here, someone else who knows about paypal might answer
hyperjason
hyperjasonOP2w ago
Ok Thanks Thanks for help

Did you find this page helpful?