Código PHP:
Ver original
<?php include_once("paypalewp.php"); $paypal = new paypalewp(); $paypal->setTempFileDirectory("/tmp"); $paypal->setCertificate("my-pubcert.pem", "my-prvkey.pem"); $paypal->setCertificateID(DFGY7654567"); $paypal->setPayPalCertificate("paypal_cert_pem.txt"); $parameters = array("cmd" => "_xclick", "item_name" => "$item", "currency_code" => "USD"); $encryptedButton = $paypal->encryptButton($parameters); echo $encryptedButton; ?>