hankfrid Posted April 17, 2003 Share Posted April 17, 2003 I am going to be using strictly PayPal for a site I'm deleloping with osCommerce. It may sound like a stupid question, but could someone tell me what "IPN" is and where I would have to get it and put it? Thanks, HankFrid If I build it...they will come. If I don't try to build it.....I will never know! Link to comment Share on other sites More sharing options...
Guest Posted April 17, 2003 Share Posted April 17, 2003 is there a way to pass the tax too? I need to include tax with all of my orders... :( Link to comment Share on other sites More sharing options...
toolcrazy Posted April 20, 2003 Share Posted April 20, 2003 I am going to be using strictly PayPal for a site I'm deleloping with osCommerce. It may sound like a stupid question, but could someone tell me what "IPN" is and where I would have to get it and put it? Thanks, HankFrid IPN stands for Instant Payment Notification and the IPN mod is in the Contrib section. For more info on IPN go to PayPals site for more info. Steve ------------------------- Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2003 Share Posted April 21, 2003 you can pass any information you want as long as you have a field to send it in just look at the fields that paypal has available, which ones you are using, which ones you arent, get the variable name of the data you want to send from OSC and put it into an unused field (as long as the data type is valid) and pass pass pass Link to comment Share on other sites More sharing options...
7thgencivic.com Posted April 26, 2003 Share Posted April 26, 2003 so, has anyone integrated this with IPN .97? Link to comment Share on other sites More sharing options...
grantjm Posted April 26, 2003 Share Posted April 26, 2003 Hi, "For more info on IPN go to PayPals site for more info." Where is the PayPal site? BG Making the internet community better. Knowledge is power. Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2003 Share Posted April 26, 2003 is that a serious question :o paypal.com Link to comment Share on other sites More sharing options...
grantjm Posted April 26, 2003 Share Posted April 26, 2003 I just thought there was another site on osC that deals with PayPal. and its configuration. BG Making the internet community better. Knowledge is power. Link to comment Share on other sites More sharing options...
Dragonmom Posted May 4, 2003 Share Posted May 4, 2003 I there a way to get product options/attributes into paypal confirmation as well? yeah, that's the problem! psst... wanna buy a wand? Link to comment Share on other sites More sharing options...
7thgencivic.com Posted May 4, 2003 Share Posted May 4, 2003 i did that a few posts up Link to comment Share on other sites More sharing options...
7thgencivic.com Posted May 4, 2003 Share Posted May 4, 2003 why can't I edit my posts? anyway, my bad, it was in the PAypal ipn .97 thread. D Link to comment Share on other sites More sharing options...
PopTheTop Posted October 3, 2004 Share Posted October 3, 2004 How would I go about adding the order invoice number to the tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) . What is the code that I need to modify or add? Remember, I am new here so I need help with this one. L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand Link to comment Share on other sites More sharing options...
PopTheTop Posted October 8, 2004 Share Posted October 8, 2004 Anyone??? How would I go about adding the order invoice number to the tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) . What is the code that I need to modify or add? I do not need the site name or anything here except for the invoice number. Remember, I am new here so I need help with this one. L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand Link to comment Share on other sites More sharing options...
krislyn5559 Posted October 27, 2007 Share Posted October 27, 2007 here is a mod to include into your PayPal module to you can see what the customer ordered on your PayPal payment notification (just in case they don't return to your site to complete the process and generate an invoice) - BACK UP BACK UP BACK UP change the following code: function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'USD'; } $xx = ''; for ($i=0; $i<sizeof($order->products); $i++) { $xx .= $order->products[$i]['qty'] . '-' . ($order->products[$i]['name']) . '**'; } $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); return $process_button_string; } How do I use this with PayPal IPN Payment Module v2.3.2 ? also can I make it show the product attributes as well? Link to comment Share on other sites More sharing options...
cvelardi Posted April 1, 2008 Share Posted April 1, 2008 Anyway, I just learned that the 'item_name' field is limited to 127 characters, so it cut off after that.... Is there any way to extend the amount of characters allowed in that field? Is there a way to put each item purchased on seperate lines with prices instead of it showing all purchased items on one line with a total? Thanks, Craig Link to comment Share on other sites More sharing options...
RC Heli Pilot Posted April 7, 2008 Share Posted April 7, 2008 Okay,... Now this thread is 5 years old. Has this been resolved with the Newer Releases of osC that have been released or is this still an issue? Can people still place an order and not actually Pay for it? Is there a place in time that I can pretty much see and say okay this no longer applies because the problems were resolved in newer releases or are there still problems that are 5 years old and still havent been fixed? I'd like to think that in the past 5 years this problem has been resolved already. RCHP Link to comment Share on other sites More sharing options...
omarts Posted June 7, 2008 Share Posted June 7, 2008 Is there any way to extend the amount of characters allowed in that field? Is there a way to put each item purchased on seperate lines with prices instead of it showing all purchased items on one line with a total? Thanks, Craig HI, I updated the code in the paypal.php to include the details of each item in the paypal receipt. The mode has to change from _xclick to _cart. Here is the code. Hope this help. -Abhay **************************** function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'USD'; } /* Old code $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); */ // new parameters to the $process_button_string $process_button_string = tep_draw_hidden_field('cmd', '_cart') . tep_draw_hidden_field('upload', '1') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')) . tep_draw_hidden_field('shipping_1', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('tax_cart', number_format($order->info['tax'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))); for ($i=0; $i<sizeof($order->products); $i++) { $j = $i+1; $process_button_string .= tep_draw_hidden_field('item_name_' . $j, $order->products[$i]['name']) . tep_draw_hidden_field('item_number_' . $j, $order->products[$i]['model']) . tep_draw_hidden_field('quantity_' . $j, $order->products[$i]['qty']) . tep_draw_hidden_field('amount_' . $j, $order->products[$i]['final_price']); } // end changes return $process_button_string; } Link to comment Share on other sites More sharing options...
clutcher Posted June 10, 2008 Share Posted June 10, 2008 HI, I updated the code in the paypal.php to include the details of each item in the paypal receipt. The mode has to change from _xclick to _cart. Here is the code. Hope this help. -Abhay **************************** function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'USD'; } /* Old code $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); */ // new parameters to the $process_button_string $process_button_string = tep_draw_hidden_field('cmd', '_cart') . tep_draw_hidden_field('upload', '1') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')) . tep_draw_hidden_field('shipping_1', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('tax_cart', number_format($order->info['tax'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))); for ($i=0; $i<sizeof($order->products); $i++) { $j = $i+1; $process_button_string .= tep_draw_hidden_field('item_name_' . $j, $order->products[$i]['name']) . tep_draw_hidden_field('item_number_' . $j, $order->products[$i]['model']) . tep_draw_hidden_field('quantity_' . $j, $order->products[$i]['qty']) . tep_draw_hidden_field('amount_' . $j, $order->products[$i]['final_price']); } // end changes return $process_button_string; } I was getting the following error below: Parse error: parse error, unexpected T_IF, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /svc2/data/d1/web/abuttonaway.com/www/includes/modules/payment/paypal_standard.php on line 320 Please can anyone point out what I might be doing wrong? Thanks in advance Link to comment Share on other sites More sharing options...
mick-uk Posted June 11, 2008 Share Posted June 11, 2008 Thanks omarts, Works a ttrreet. Mik. Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2008 Share Posted June 12, 2008 Thanks :rolleyes: Link to comment Share on other sites More sharing options...
omarts Posted July 10, 2008 Share Posted July 10, 2008 I am glad it worked for someone. My biggest worry now is gone that even if the order is not registered, I will at least see what the customers ordered in my paypal receipt. Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2008 Share Posted July 12, 2008 i get this message when changing Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /public_html/includes/modules/payment/paypal_standard.php on line 317 i dont know where to start / end the new code. what to replace? new to all this,sorry. Link to comment Share on other sites More sharing options...
omarts Posted July 15, 2008 Share Posted July 15, 2008 I am new to all this too. But the file I was modifying was paypal.phph and not paypal_standard.php I am wondering if tehre are two different version fo files supporting Paypal Payments Standard. Also, I figured out another issue with this: If you use discount coupons and pass on individual items, Paypal does not provide you any option to pass on a final discount code or coupon, so your total at paypal is going to show up more like without the discount. Please be aware of that. I am working on some work arounds - but its all going to be patching - for example, take x% out from each item if the coupons are used. Or similar strategy if the absolute amount for an item is used... -Abhay Link to comment Share on other sites More sharing options...
Guest Posted July 20, 2008 Share Posted July 20, 2008 Has anyone done this modification to paypal_standard.php? I only know enough programming to see that it is adding the missing fields & I see the section where it needs to be changed, but I can't quite figure out how to add it in, since the structure is different in paypal_standard.php. Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2008 Share Posted July 29, 2008 Has anyone done this modification to paypal_standard.php? I only know enough programming to see that it is adding the missing fields & I see the section where it needs to be changed, but I can't quite figure out how to add it in, since the structure is different in paypal_standard.php. im using paypal standard as well and would like to know this. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.