Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to encrypt PayPal's button

I'm little bit fighting with the PayPal button. I have the unencrypted version which works great, the problem is that the customer can change the amount etc. I found out that is possible to encrypt the data. I used these two examples. The problem is that I'm getting 'We were unable to decrypt the certificate id.'. Maybe it looks like I don't have right PayPal public certificate? I downloaded it from the backend, the only one I found. There wasn't any reference where to download it in non of the turorials. I'm trying this on sandbox right now. Please can anyone advice?

like image 877
martin.malek Avatar asked Dec 20 '25 17:12

martin.malek


1 Answers

Check this, it may help you: Dynamic Paypal button encryption; also verify you're using the current certificate and be advised that if you're doing tests in the sandbox, the sandbox uses a different certificate of the one you get in the main site (and also you must have an account in the sandbox which is different of your main account).

like image 55
Rafael Avatar answered Dec 22 '25 12:12

Rafael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!