Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6587039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:52:01+00:00 2026-05-25T16:52:01+00:00

I am getting error some information missing.. on paypal when my site will redirect

  • 0

I am getting error “some information missing..” on paypal when my site will redirect to paypal.
following is html page and code behind from where control goes to payapl

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>PayPal Payment Detail</title>
<script type="text/javascript" language="javascript">
    function submitform() {

        var frm = this.document.getElementById('confirmOrder1');
        frm.submit();
    }
</script>
 </head>
<body onload="submitform();">
<form name="confirmOrder1" runat="server" id="confirmOrder1" method="post">
<input type="hidden" runat="server" id="cmd" name="cmd" />    
<input type="hidden" runat="server" id="business" name="business" />
<input type="hidden" name="no_shipping" runat="server" id="no_shipping" />
<input type="hidden" name="return" id="return" runat="server"  />
<input type="hidden" name="cancel_return" id="cancel_return" runat="server" />
<input type="hidden" name="notify_url" runat="server" id="notify_url" />
<input type="hidden" name="currency_code" runat="server" id="currency_code" />

<input type="hidden" runat="server" id="item_name_1" name="item_name_1" value="Item 1" />
<input type="hidden" runat="server" id="amount_1" name="amount_1" value="20" />


<input type="hidden" runat="server" id="item_name_2" name="item_name_2" value="Item 2" />
<input type="hidden" runat="server" id="amount_2 name="amount_2" value="20" />

<input type="hidden" name="tax" id="tax" value="0" />
<input type="hidden" name="upload" value="1" />

<%--<input type="hidden" runat="server" id="item_name" name="item_name" value="Item 1" />
<input type="hidden" runat="server" id="amount" name="amount" value="20.00" />--%>
<%--<input type="submit" value="Buy!" />--%>
<div style="text-align: center;">
    <h4>
        We are redirecting you to paypal
        <br />
        It will take some time meanwhile do not refresh ,go to back or close page</h4>
</div>
</form>
</body>

and code behind is like

 cmd.Value = "_cart";    // set for multiple items or cart
            //cmd.Value = "_xclick"; // set for single item

            business.Value = System.Configuration.ConfigurationManager.AppSettings["BusinessAccountKey"];
            bool useSandbox = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["UseSandbox"]);

            if (useSandbox)
                confirmOrder1.Action = "https://www.sandbox.paypal.com/cgi-bin/webscr";
            else
                confirmOrder1.Action = "https://www.paypal.com/cgi-bin/webscr";

            cancel_return.Value = clsAppConfig.CancelURL; //System.Configuration.ConfigurationManager.AppSettings["CancelURL"];

            @return.Value = clsAppConfig.ReturnURL; // +"&PaymentId=" + paypalParams.FindByText("PaymentId").Value;
            notify_url.Value = clsAppConfig.NotifyURL; // +"?PaymentId=" + paypalParams.FindByText("PaymentId").Value;
            currency_code.Value = System.Configuration.ConfigurationManager.AppSettings["CurrencyCode"];

it works very well for 1 item but for multiple item i am getting error , please anyone can suggest me what i am missing here..?

Thanks
Arun.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:52:02+00:00Added an answer on May 25, 2026 at 4:52 pm

    If you have more then one product you will need to do multiple posts example also change the cmd value to “_cart”

    My Cart Item 1:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    
        <input type="hidden" name="cmd" value="_cart">
        <input type="hidden" name="add" value="1">
    
        <input type="hidden" name="business" value="youremailaddress@yourdomain.com">
        <input type="hidden" name="item_name" value="My Cart Item 1">
    
        <input type="hidden" name="amount" value="10.00">
        <input type="hidden" name="shopping_url" 
               value="http://www.yourwebsite.com/shoppingpage.html">
    
        <input type="hidden" name="return" value="http://www.yourwebsite.com/success.html">
        <input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/cancel.html">
    
        <input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted">
        <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0"
    
            name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
        <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
    
            height="1">
    </form>
    
    My Cart Item 2:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    
        <input type="hidden" name="cmd" value="_cart">
        <input type="hidden" name="add" value="1">
    
        <input type="hidden" name="business" value="youremailaddress@yourdomain.com">
        <input type="hidden" name="item_name" value="My Cart Item 2">
    
        <input type="hidden" name="amount" value="5.00">
        <input type="hidden" name="shipping" value="1.00">
    
        <input type="hidden" name="shopping_url" 
            value="http://www.yourwebsite.com/shoppingpage.html">
        <input type="hidden" name="return" value="http://www.yourwebsite.com/success.html">
    
        <input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/cancel.html">
        <input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted">
    
        <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0"
            name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    
        <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
            height="1">
    </form>
    

    For more in depth detail on how to set up pay pal from scratch try this link http://www.codeproject.com/KB/aspnet/paypal_c_aspnet.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting some rather conflicting information from PayPal. I've spent 2 hours on the
I keep getting this error while trying to modify some tables. Here's my code:
I am getting the following error and could use some help resolving it. Anyone
Iam getting the following error , could some one help me how to fix
I've inherited some aspx (including the web.config file) and am getting the following error.
I seem to be missing some information from my stack trace, here is what
i am getting this error does some one knows about it??? 2009-07-08 18:42:36.778 FlashCards[1297:20b]
I'm getting a getaddress error and after doing some sleuthing, it looks like it
I'm trying to rename some files, but getting a baffling error*. When I run
I am getting some errors thrown in my code when I open a Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.