This is my first time to set up a PayPal masspay. I don't know what variables should I put in my HTML form. Here is the form: <form action="https://www.paypal.com/cgi-bin/webscr" method="POST" name="_masspay"> <input type="hidden" name="cmd" value="_masspay" /> <input type="hidden" name="receiver_email_1" value="support@example.com" /> <input type="hidden" name="receiver_email_2" value="paypal@example.com" /> <input type="hidden" name="mc_currency_1" value="USD" /> <input type="hidden" name="mc_currency_2" value="USD" /> <input type="hidden" name="item_name_1" value="item name" /> <input type="hidden" name="item_name_2" value="website fees" /> <input type="hidden" name="amount_1" value="10.00" /> <input type="hidden" name="amount_2" value="2.00" /> <input type="hidden" name="custom" value="1" /> <input type="hidden" name="return" value="https://www.example.com/buy/12" /> <input type="hidden" name="cancel_return" value="https://www.example.com/buy/12" /> <button type="submit">Pay With PayPal</button> </form> I don't …

Member Avatar
Member Avatar
+0 forum 9

Hello, I am trying to understand PayPal IPN proccess. I have built this simple script to test with the IPN simulator in the developer section of PayPal. I have tried different type of transaction status but it keeps returning VERIFIED. Can someone please explain to me how does this work? Thanks, Farris <?php require_once('../includes/main.php'); // Notify command $request = "cmd=_notify-validate"; // Prepare the URL to send via cURL foreach ($_POST as $key => $value){ if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()){ $value = urlencode(stripslashes($value)); }else{ $value = urlencode($value); } $request .= "&$key=$value"; } // Initial cURL $ch = curl_init(); // Set opt curl_setopt($ch,CURLOPT_URL,"https://www.sandbox.paypal.com/cgi-bin/webscr"); //curl_setopt($ch,CURLOPT_URL,"https://www.paypal.com"); …

Member Avatar
Member Avatar
+0 forum 1

Okay, here is the code I'm using. The original author hasn't been seen in three years and I haven't been able to get a response for a month so I'm asking here. The people here seem to be abel to help me more than anyone else. This is the ipn.php: <?php // === Include the scripts to make this IPN works === // include('core/class.config.php'); include('core/class.database.php'); include('core/lib/class.paypal.php'); // =====================================// // Initiate the classes, and establish a DB conection $Config = new Config; $Paypal = new Paypal; $DB = new Database( $Config->getDbInfo('db_host'), $Config->getDbInfo('db_port'), $Config->getDbInfo('db_username'), $Config->getDbInfo('db_password'), $Config->getDbInfo('db_name') ); // Set test mode features …

Member Avatar
Member Avatar
+0 forum 13

Hi All, I have been configuring a monthly subscription Paypal IPN to collect monthly recurring payments from a membership website. I have my annual IPN working great. Just strugling with the monthly recurring payments. I have the following configured in my subscription button <input type="hidden" name="a1" value="' . $price . '"> <input type="hidden" name="p1" value="1"> <input type="hidden" name="t1" value="M"> <input type="hidden" name="a2" value="' . $pricem1 . '"> <input type="hidden" name="p2" value="1"> <input type="hidden" name="t2" value="M"> <input type="hidden" name="a3" value="' . $pricemthly . '"> <input type="hidden" name="p3" value="12"> <input type="hidden" name="t3" value="M"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> <input …

Member Avatar
Member Avatar
+0 forum 1

Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out is how to give the account on my website the virtual credit after the user pays. I want to store the value in a SQL column next to their username; doing so is easy - but how do I execute that SQL command only when a user has genuinely paid? …

Member Avatar
Member Avatar
+0 forum 4

Hello. I'm having the most difficult time trying to get the Paypals IPN subscription [CODE]Id. This is my IPN page. <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am using paypal IPN integration and it is not working.Its IPN log is giving me this error FAIL: IPN Validation Failed. IPN POST Vars from Paypal: mc_gross=10.00, protection_eligibility=Ineligible, item_number1=9, payer_id=5PRJ3GQN8ES3J, tax=0.00, payment_date=00:11:51 Jul 26, 2011 PDT, payment_status=Pending, charset=windows-1252, mc_shipping=0.00, mc_handling=0.00, first_name=Test, notify_version=3.1, custom=, payer_status=verified, num_cart_items=1, mc_handling1=0.00, verify_sign=AiPC9BjkCyDFQXbSkoZcgqH3hpacA50-5o5SUpQAYyn8d.LtMHyzASv4, payer_email=test@test.com, mc_shipping1=0.00, txn_id=5J657542W5484711U, payment_type=instant, last_name=User, item_name1=Sql expert, receiver_email=test@abc.com, quantity1=1, pending_reason=unilateral, txn_type=cart, mc_gross_1=10.00, mc_currency=USD, residence_country=US, test_ipn=1, transaction_subject=Shopping Cart, payment_gross=10.00, ipn_track_id=YcroPuHCEnKVqH0O1DiOCQ, IPN Response from Paypal Server: HTTP/1.1 200 OK Date: Tue, 26 Jul 2011 07:11:59 GMT Server: Apache Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=9NGW-jtfdrCGawBTniKVV5oGYv1qZQqjjEWdVOi6iPBvnRrspjGxo3QavJMzlQseBx7zkTaPyLav-iUmvJGc4aCIAEsFXVCGJu2YbSGyyAQkr1b0UM2_5xpEUROo5IT8lgYkjW%7cXWYOEXTCfusuVKiiCN2Kj4KExg14QWX5XlnJJbfADfAarc9Zqi2RN6CeOlPvJ3fW75TZw0%7cKJj6MTMuq_livbik7lwpuHt0LnuUexXsT7gKBMM_-kbAzT_zb3IJ4ot9aOsUMv6NGrhASm%7c1311664320; domain=.paypal.com; path=/; HttpOnly Set-Cookie: cookie_check=yes; expires=Fri, 23-Jul-2021 07:12:00 GMT; domain=.paypal.com; path=/; HttpOnly Set-Cookie: …

Member Avatar
+0 forum 0

Hey Everyone, I'm currently creating a simple shopping cart with interaction to PayPal. I've set up a database with a table named orders. I'm using the PayPal sandbox and what I'm looking to do is to post the order details into my database on payment completion. I have a script for this but for some reason my Insert statement doesn't seem to want to work. I've been working on this for the last few hours so it could just be me missing something blatantly obvious. Here is my code below, any help is greatly appreciated. Thanks paypal.php (PayPal IPN functionality) …

Member Avatar
+0 forum 0

Hello, I am using a script to process subscriptions on our sites - I can sucessfully get the subscription payment to process, I am having issues processing a cancel IPN request. [CODE] // assign posted variables to local variables $item_name = make_safe($_POST['item_name']); $item_number = make_safe($_POST['item_number']); $payment_status = make_safe($_POST['payment_status']); $payment_amount = make_safe($_POST['mc_gross']); $payment_currency = make_safe($_POST['mc_currency']); $txn_id = make_safe($_POST['txn_id']); $txn_type = make_safe($_POST['txn_type']); $subscr_id = make_safe($_POST['subscr_id']); $receiver_email = $_POST['receiver_email']; $payer_email = make_safe($_POST['payer_email']); $custom = numOnly($_POST['custom']); $date = time(); mail("lblah"," Payment","ID $custom. $payment_status, $receiver_email TXN TYPE = $txn_type","From:NB"); if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) …

Member Avatar
Member Avatar
+0 forum 1

The End.