Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: Paypal display

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    24
    Member #
    39302

    Paypal display

    Hi,
    my E com website have serveral items, I want the Paypal indicate only the whole total products name " food", not need indicated all the items, but now, paypal indicates the last item name, the amount is ok.
    so, I wish someone can help to make the whole products name " food".

    <form action="https://www.paypal.com/fr/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="abc@yahoo.fr">
    <input type="hidden" name="item_name" value="food">
    <input type="hidden" name="currency_code" value="EUR">
    <input type="hidden" name="amount" value="<?php echo "$totalprice";?>">
    <input type="image" src="http://www.paypal.com/fr_FR/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    You'll want something like PayPal Express Checkout or Website Payments Pro to do what you want. The button will only take one item at a time.

    Alternatively, you could pass an order number as the item_name e.g. Order #12345.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Member
    Join Date
    Mar 2015
    Posts
    52
    Member #
    47779
    Liked
    3 times
    Put inside foreach loop to display all the products

    <input type="hidden" name="item_name_<?=$i?>" value="<?php echo $row['product_name']; ?>">
    <input type="hidden" name="quantity_<?=$i?>" value="<?php echo $qty; ?>">
    <input type="hidden" name="amount_<?=$i?>" value="<?php echo $price; ?>">


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com