<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Mohammad Emran Hasan - Latest Comments in PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.disqus.com/</link><description>This is Emran Hasan's blog for PHP, CSS, XHTML, JavaScript, Web 2.0, AJAX, Usability, and Web Standards related views, ideas, and sharing.</description><atom:link href="https://phpfour.disqus.com/php_payment_library_for_paypal_authorizenet_and_2checkout_2co/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 24 Mar 2012 15:09:36 -0000</lastBuildDate><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409914</link><description>&lt;p&gt;Glad to know that. However, there is a new version of this library already here: &lt;a href="https://github.com/phpfour/php-payment" rel="nofollow noopener" target="_blank" title="https://github.com/phpfour/php-payment"&gt;https://github.com/phpfour/...&lt;/a&gt;. You may want to have a look into it, its a lot cleaner and better designed version.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohammad Emran Hasan</dc:creator><pubDate>Sat, 24 Mar 2012 15:09:36 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409912</link><description>&lt;p&gt;Not for Paypal.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohammad Emran Hasan</dc:creator><pubDate>Sat, 24 Mar 2012 15:06:36 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409907</link><description>&lt;p&gt;Thanks Nitin, it really did,&lt;/p&gt;&lt;p&gt;Md Emran Hasan thanks for the great script, easy to addapt.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gpak</dc:creator><pubDate>Wed, 14 Mar 2012 10:38:39 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409905</link><description>&lt;p&gt;For the PayPal script it requires that a user creates an account before they can purchase something. Is it possible to make it so they can purchase as a guest?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Tue, 13 Mar 2012 23:28:43 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409901</link><description>&lt;p&gt;I applied some of the fixes above, made some embellishments, and fleshed out the Google class that was started at &lt;a href="http://code.google.com/p/phppayment/" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/phppayment/"&gt;http://code.google.com/p/ph...&lt;/a&gt; but not really completed.&lt;/p&gt;&lt;p&gt;I only focused on implementing the Paypal and Google modules, so if you're using one of the others, make sure changes to the PaymentGateway class aren't getting in your way.  First commit to the repository is the same as the original zip file on this site.&lt;/p&gt;&lt;p&gt;Code is available at:&lt;/p&gt;&lt;p&gt;&lt;a href="https://bitbucket.org/greenhollowtech/emran-payment/overview" rel="nofollow noopener" target="_blank" title="https://bitbucket.org/greenhollowtech/emran-payment/overview"&gt;https://bitbucket.org/green...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Israel</dc:creator><pubDate>Tue, 13 Mar 2012 18:38:12 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409895</link><description>&lt;p&gt;Thanks....Emran bhai...very good code.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shelim Ekbal Hussain</dc:creator><pubDate>Fri, 06 Jan 2012 12:39:16 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409891</link><description>&lt;p&gt;ipn script generator to fix the paypal problems:&lt;br&gt;&lt;a href="https://www.paypaltech.com/SG2/PHPfunctionalityparse.php" rel="nofollow noopener" target="_blank" title="https://www.paypaltech.com/SG2/PHPfunctionalityparse.php"&gt;https://www.paypaltech.com/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">soulreafer</dc:creator><pubDate>Wed, 28 Dec 2011 21:55:44 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409889</link><description>&lt;p&gt;I have an other IPN Script. It should work but i cant convert it to work with this script.&lt;br&gt;can someone help me to fix the IPN part?&lt;/p&gt;&lt;p&gt;     $value) {  &lt;br&gt;    $value = urlencode(stripslashes($value));  &lt;br&gt;    $req .= "&amp;amp;$key=$value";  &lt;br&gt;    }  &lt;br&gt;    // post back to PayPal system to validate  &lt;br&gt;    $header = "POST /cgi-bin/webscr HTTP/1.0rn";  &lt;br&gt;    $header .= "Content-Type: application/x-www-form-urlencodedrn";  &lt;br&gt;    $header .= "Content-Length: " . strlen($req) . "rnrn";&lt;/p&gt;&lt;p&gt;    $fp = fsockopen ('&lt;a href="ssl://www.sandbox.paypal.com" rel="nofollow noopener" target="_blank" title="ssl://www.sandbox.paypal.com"&gt;ssl://www.sandbox.paypal.com&lt;/a&gt;', 443, $errno, $errstr, 30);&lt;/p&gt;&lt;p&gt;    if (!$fp) {  &lt;br&gt;    // HTTP ERROR  &lt;br&gt;    } else {  &lt;br&gt;    fputs ($fp, $header . $req);  &lt;br&gt;    while (!feof($fp)) {  &lt;br&gt;    $res = fgets ($fp, 1024);  &lt;br&gt;    if (strcmp ($res, "VERIFIED") == 0) {&lt;/p&gt;&lt;p&gt;    // PAYMENT VALIDATED &amp;amp; VERIFIED!&lt;/p&gt;&lt;p&gt;$text = "jon"; // Dateiinhalt&lt;br&gt;$dateiname = "daten.txt"; // Name der Datei&lt;br&gt;// Datei öffnen,&lt;br&gt;// wenn nicht vorhanden dann wird die Datei erstellt.&lt;br&gt;$handler = fOpen($dateiname , "a+");&lt;br&gt;// Dateiinhalt in die Datei schreiben&lt;br&gt;fWrite($handler , $fp);&lt;br&gt;fClose($handler); // Datei schließen&lt;/p&gt;&lt;p&gt;    }&lt;/p&gt;&lt;p&gt;    else if (strcmp ($res, "INVALID") == 0) {&lt;/p&gt;&lt;p&gt;    // PAYMENT INVALID &amp;amp; INVESTIGATE MANUALY!&lt;/p&gt;&lt;p&gt;$text = "non"; // Dateiinhalt&lt;br&gt;$dateiname = "daten.txt"; // Name der Datei&lt;br&gt;// Datei öffnen,&lt;br&gt;// wenn nicht vorhanden dann wird die Datei erstellt.&lt;br&gt;$handler = fOpen($dateiname , "a+");&lt;br&gt;// Dateiinhalt in die Datei schreiben&lt;br&gt;fWrite($handler , $text);&lt;br&gt;fClose($handler); // Datei schließen&lt;/p&gt;&lt;p&gt;    }  &lt;br&gt;    }  &lt;br&gt;    fclose ($fp);  &lt;br&gt;    }  &lt;br&gt;    ?&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">soulreafer</dc:creator><pubDate>Wed, 28 Dec 2011 21:45:16 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409860</link><description>&lt;p&gt;how i can add multiple product in paypal&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jinita jangid</dc:creator><pubDate>Thu, 22 Dec 2011 08:53:16 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409854</link><description>&lt;p&gt;Hello Emran Hasan,&lt;br&gt;Nice work man, can u help me how to use paypal payment in normal mode rather than in sandbox. please help me. thank you&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vishnu</dc:creator><pubDate>Sun, 18 Dec 2011 20:47:04 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409851</link><description>&lt;p&gt;Dear sir Your code us very excellent.&lt;br&gt;I have a little problem during authorize.&lt;/p&gt;&lt;p&gt;A415	Error 13: The merchant login ID or password is invalid or the account is inactive.&lt;/p&gt;&lt;p&gt;I have add correct info in that variable &lt;br&gt;$myAuthorize-&amp;gt;setUserInfo('', '');&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ramlal Solanki</dc:creator><pubDate>Thu, 08 Dec 2011 10:19:58 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409844</link><description>&lt;p&gt;.......&lt;/p&gt;&lt;p&gt;$myPaypal-&amp;gt;addField('cmd', '_cart');&lt;br&gt;$myPaypal-&amp;gt;addField('upload', '1');&lt;/p&gt;&lt;p&gt;......&lt;/p&gt;&lt;p&gt;// 1st product added..&lt;br&gt;$myPaypal-&amp;gt;addField('item_number_1', 'XXXX');&lt;br&gt;$myPaypal-&amp;gt;addField('item_name_1', 'Product 1');&lt;br&gt;$myPaypal-&amp;gt;addField('amount_1', 10.00);&lt;br&gt;$myPaypal-&amp;gt;addField('quantity_1', 2);&lt;/p&gt;&lt;p&gt;// 2nd&lt;br&gt;$myPaypal-&amp;gt;addField('item_number_2', 'YYYY');&lt;br&gt;$myPaypal-&amp;gt;addField('item_name_2', 'Product 2');&lt;br&gt;$myPaypal-&amp;gt;addField('amount_2', 50.00);&lt;br&gt;$myPaypal-&amp;gt;addField('quantity_1', 2);&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">monggos</dc:creator><pubDate>Thu, 24 Nov 2011 21:42:59 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409839</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I need the library with recurring payment for paypal, its urgent :(&lt;/p&gt;&lt;p&gt;Can someone send me it? email: paulo(at)&lt;a href="http://prsolucoes.com" rel="nofollow noopener" target="_blank" title="prsolucoes.com"&gt;prsolucoes.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Please i need too much.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paulo Coutinho</dc:creator><pubDate>Thu, 24 Nov 2011 14:41:03 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409833</link><description>&lt;p&gt;Hello!&lt;/p&gt;&lt;p&gt;Thank you for a great library.&lt;br&gt;I am just wondering how I can port this to Codeigniter? Have you already done it?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James</dc:creator><pubDate>Mon, 21 Nov 2011 19:15:28 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409826</link><description>&lt;p&gt;man you are rock!!!!!!!!! thxs for save all developers time&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hassan</dc:creator><pubDate>Mon, 21 Nov 2011 13:24:52 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409821</link><description>&lt;p&gt;Unfortunately validateIpn() method is no longer working with the current PayPal IPN, so this library is useless for PayPal.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Thu, 17 Nov 2011 01:39:25 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409817</link><description>&lt;p&gt;Hint: The paypal_ipn.php has to be accessible from the internet even if you just want to try out the library with the sandbox, or it won't work. While paypal_success.php and paypal_failure.php are called by the customer's browser, the paypal_ipn.php will be called by Paypal directly once the customer paid. Obviously the service cannot reach the script on your machine if you supply an url like http://localhost/...&lt;/p&gt;&lt;p&gt;Greetings from germany,&lt;br&gt;Warpenstein&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Warpenstein</dc:creator><pubDate>Wed, 26 Oct 2011 15:13:12 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409812</link><description>&lt;p&gt;it very very useful and great...thank u so much&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">suresh</dc:creator><pubDate>Tue, 27 Sep 2011 11:19:04 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409805</link><description>&lt;p&gt;I'm always searching on line for tips to help me. Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brendan</dc:creator><pubDate>Thu, 15 Sep 2011 18:28:26 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409798</link><description>&lt;p&gt;By God. You made my life easy. Thanks a ton.&lt;br&gt;Keep Rocking.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Praveen</dc:creator><pubDate>Tue, 13 Sep 2011 20:59:48 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409787</link><description>&lt;p&gt;Hi thank u for your code..how to do hold and capture of transaction in 2checkout, hope for your reply ..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sasy</dc:creator><pubDate>Tue, 13 Sep 2011 11:40:44 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409780</link><description>&lt;p&gt;Very very nice and useful tutorial. Thank you very much.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">limon</dc:creator><pubDate>Mon, 12 Sep 2011 03:49:01 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409773</link><description>&lt;p&gt;I know this is quite an old script, but just thought I would point out that there is a security issue in the 2checkout library IPN code. You verify it against the vendor_number that was submitted, not the configured. Therefore as far as I can see an attacker could change the submitted vendor number to their own in the original request, and pay themselves (or whoever they like), and your library would be none the wiser, and still mark the order as paid.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Necimal</dc:creator><pubDate>Fri, 26 Aug 2011 15:28:53 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409760</link><description>&lt;p&gt;It would have been helpful if you had provided us with the html form example too.  As I need to research which custom values to use in order to submit the information.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe</dc:creator><pubDate>Thu, 28 Jul 2011 19:01:53 -0000</pubDate></item><item><title>Re: PHP Payment Library for Paypal, Authorize.net and 2Checkout</title><link>http://phpfour.com/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comment-591409753</link><description>&lt;p&gt;Hello Imran vai, &lt;br&gt;Is there any update about your library?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tareq</dc:creator><pubDate>Thu, 21 Jul 2011 15:13:20 -0000</pubDate></item></channel></rss>