How to encrypt PayPal button

I'm struggling a bit with the PayPal button. I have an unencrypted version that works fine, the problem is that the client can change the amount, etc. I found out that data can be encrypted. I used these two examples . The problem is that I get "We were unable to decrypt the certificate identifier." Maybe it seems that I do not have the correct public PayPal certificate? I downloaded it from the backend, the only one I found. There was no link where to download it not in tourist replacements. Now I'm trying this on a sandbox. Please, can you consult?

+3
source share
1 answer

Check it out, it can help you: Dynamic button encryption in Paypal ; also make sure that you are using the current certificate, and keep in mind that if you run tests in the sandbox, the sandbox uses a different certificate from the one you get on the main site (and you must also have an account in the sandbox that is different from your main account records).

+2
source

Source: https://habr.com/ru/post/1765233/


All Articles