Reputation: 39869
I'm using a python script to encrypt my buttons.
I uploaded my certificate to Paypal and downloaded their public key.
When I sign a button and click on it with the link :
https://www.paypal.com/cgi-bin/webscr
It works.
But now, if I JUST change the url to the sandbox, with the same others values :
https://www.sandbox.paypal.com/cgi-bin/webscr
It doesn't work, I got this message :
Error Detected
We were unable to decrypt the certificate id.
Is there something am I missing? I can't find why this doesn't work!
Thank you for your help.
Upvotes: 3
Views: 1635
Reputation: 509
The error also occurs when you use the PayPal's production pem file (paypal_cert_pem.txt) sandbox in your testing, or vice versa. Sandbox and Live have different files so make sure you use the right one.
Upvotes: 0
Reputation: 137148
The certificate will be tied to:
https://www.paypal.com/cgi-bin/webscr
If you want to test in the sandbox you'll need a 2nd certificate tied to:
https://www.sandbox.paypal.com/cgi-bin/webscr
They're different URLs - PayPal is correct in reporting an error.
Upvotes: 2