gameduels Posted January 11, 2008 Share Posted January 11, 2008 hello i have paypal check out script and when it goes to paypal site to show what they ordered, but it wont show the item they ordered. It will show the price and shipping but it wont show the item they ordered. here im going to attach 3 files that work with paypal. But i think it really goes though payment.php because its got to transfer the order to paypal so i dont know i tryed but i cant get it to work . Help me out . Its all attached to the topic and download it and help thanks. Here is payment.php <?php /* This page will submit the order information to paypal website. After the customer completed the payment she will return to this site */ if (!isset($orderId)) { exit; } require_once 'paypal.inc.php'; $paypal['invoice'] = $orderId; $paypal['amount'] = $orderAmount; ?> <center> <p> </p> <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF0000"><strong>Processing Transaction . . . </strong></font></p> </center> <form action="<?php echo $paypal['url']; ?>" method="post" name="frmPaypal" id="frmPaypal"> <div align="center"><strong>Your Shipping is added to paypal. The Paypal Site will not put shipping into the site so the total is blow !<br> Total:</strong> <input type="hidden" name="amount" value="<?php echo $paypal['amount']; ?>"> <input type="hidden" name="invoice" value="<?php echo $paypal['invoice']; ?>"> <input type="hidden" name="item_name" value="<?php echo $paypal['item_name']; ?>"> <input type="hidden" name="business" value="<?php echo $paypal['business']; ?>"> <input type="hidden" name="cmd" value="<?php echo $paypal['cmd']; ?>"> <input type="hidden" name="return" value="<?php echo $paypal['site_url'] . $paypal['success_url']; ?>"> <input type="hidden" name="cancel_return" value="<?php echo $paypal['site_url'] . $paypal['cancel_url']; ?>"> <input type="hidden" name="notify_url" value="<?php echo $paypal['site_url'] . $paypal['notify_url']; ?>"> <input type="hidden" name="rm" value="<?php echo $paypal['return_method']; ?>"> <input type="hidden" name="currency_code" value="<?php echo $paypal['currency_code']; ?>"> <input type="hidden" name="lc" value="<?php echo $paypal['lc']; ?>"> <input type="hidden" name="bn" value="<?php echo $paypal['bn']; ?>"> <input type="hidden" name="no_shipping" value="<?php echo $paypal['display_shipping_address']; ?>"> </div> </form> <script language="JavaScript" type="text/javascript"> window.onload=function() { window.document.frmPaypal.submit(); } </script> Thank you everyone if you cant find the problem on payment the attachments are added . There all the paypal items. Thanks. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
twostars Posted January 11, 2008 Share Posted January 11, 2008 <?php /* This page will submit the order information to paypal website. After the customer completed the payment she will return to this site */ if (!isset($orderId)) exit; require_once 'paypal.inc.php'; $paypal['invoice'] = $orderId; $paypal['amount'] = $orderAmount; ?> <center> <p> </p> <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF0000"><strong>Processing Transaction . . . </strong></font></p> </center> <form action="<?=$paypal['url']; ?>" method="post" name="frmPaypal" id="frmPaypal"> <div align="center"><strong>Your Shipping is added to paypal. The Paypal Site will not put shipping into the site so the total is blow !<br> Total:</strong> <input type="hidden" name="amount" value="<?=$paypal['amount']; ?>"> <input type="hidden" name="invoice" value="<?=$paypal['invoice']; ?>"> <input type="hidden" name="item_name" value="<?=$paypal['item_name']; ?>"> <input type="hidden" name="business" value="<?=$paypal['business']; ?>"> <input type="hidden" name="cmd" value="<?= $paypal['cmd']; ?>"> <input type="hidden" name="return" value="<?=$paypal['site_url'] . $paypal['success_url']; ?>"> <input type="hidden" name="cancel_return" value="<?=$paypal['site_url'] . $paypal['cancel_url']; ?>"> <input type="hidden" name="notify_url" value="<?=$paypal['site_url'] . $paypal['notify_url']; ?>"> <input type="hidden" name="rm" value="<?=$paypal['return_method']; ?>"> <input type="hidden" name="currency_code" value="<?=$paypal['currency_code']; ?>"> <input type="hidden" name="lc" value="<?=$paypal['lc']; ?>"> <input type="hidden" name="bn" value="<?=echo $paypal['bn']; ?>"> <input type="hidden" name="no_shipping" value="<?=$paypal['display_shipping_address']; ?>"> </div> </form> <script language="JavaScript" type="text/javascript"> window.onload=function() { window.document.frmPaypal.submit(); } </script> As for the item, from memory isn't that something in Paypal itself? Quote Link to comment Share on other sites More sharing options...
gameduels Posted January 11, 2008 Author Share Posted January 11, 2008 That didnt work ... I dont know i had this script and it wont process the item name to paypal . It shows the $ and all that but no item name . WTF do you know what you bought lol. So yeah. Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 11, 2008 Share Posted January 11, 2008 Not entirely sure how the paypal IPN stuf works but I noticed you had ItemID and Amount defined above, $paypal['item_name']; however isnt Quote Link to comment Share on other sites More sharing options...
SirChick Posted January 11, 2008 Share Posted January 11, 2008 <?=echo $paypal['bn']; ?> you don't need echo if you using <?= short tags. Just so you know. Quote Link to comment Share on other sites More sharing options...
SirChick Posted January 11, 2008 Share Posted January 11, 2008 <?php echo $paypal['item_name']; ?> Where is this created? Quote Link to comment Share on other sites More sharing options...
gameduels Posted January 12, 2008 Author Share Posted January 12, 2008 i dont know i cant really get it to work. Im trying the things you guys are doing but i cant get it to show up. Quote Link to comment Share on other sites More sharing options...
gameduels Posted January 12, 2008 Author Share Posted January 12, 2008 anyone ? Quote Link to comment Share on other sites More sharing options...
revraz Posted January 12, 2008 Share Posted January 12, 2008 Just my opinion, but if you are working on a project that makes you money (IE PayPal stuff), then it's only right to pay someone for help. Maybe try the Freelance section instead. Quote Link to comment Share on other sites More sharing options...
twostars Posted January 12, 2008 Share Posted January 12, 2008 <?=echo $paypal['bn']; ?> you don't need echo if you using <?= short tags. Just so you know. It was a typo. As you can see, I pointed out that you didn't need to use <?php echo $variable; ?> every time. Missed that one.. kind've. Quote Link to comment Share on other sites More sharing options...
gameduels Posted January 12, 2008 Author Share Posted January 12, 2008 so what do it do tho. you guys are throwing codes at me and its like ? to me .. i know the codes but you are throwing them at me idk were you guys are talking about. Quote Link to comment Share on other sites More sharing options...
gameduels Posted January 12, 2008 Author Share Posted January 12, 2008 anyone ? Please Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.