CodeIgniter Forums
[SOLVED] Paypal Button Encryption on CI Problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: [SOLVED] Paypal Button Encryption on CI Problem (/showthread.php?tid=26371)

Pages: 1 2


[SOLVED] Paypal Button Encryption on CI Problem - El Forum - 01-14-2010

[eluser]Ben Edmunds[/eluser]
Can you post the solution for future readers of this thread?


Thanks,


[SOLVED] Paypal Button Encryption on CI Problem - El Forum - 01-15-2010

[eluser]dale88[/eluser]
what i did was i created a cert folder outside system folder. In there i placed all the certificates then i configured .htaccess to redirect the cert folder to index.php. So the script should like the one below. Don't put base_url() otherwise it won't work


$paypal->setUserCertificate("cert/public-cert.pem", "cert/private-key.pem");


$paypal->setPaypalCertificate("cert/paypal_public_cert.pem");

$paypal->setPaypalCertificateID("7GU38MNDJEGM8");