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.
Was this page helpful?