Jump to content

Hello i cant get item to how up on paypal


gameduels

Recommended Posts

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]

Link to comment
Share on other sites

 

<?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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.