paypal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • senthilkumarb
    New Member
    • Sep 2008
    • 7

    #1

    paypal

    i have a set of code which can perform the operation

    1- get the item no, item name, item quantity, item price from my application to pay pal sandbox test account

    Question - when i use 1 item the return URL works fine i.e it return to the URL which i have mentioned (Auto-Return)

    if i use multiple item then it doesn't return automatically to the URL which i have specified. for the reference i have attached the snippet.


    [HTML]<form id="payForm" name="payForm" action="https://www.sandbox.pay pal.com/cgi-bin/webscr" method="post" target="_parent ">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="upload" value="3">
    <input type="hidden" id="business" name="business" value="xyz@emai l.com">
    <input type="hidden" name="item_numb er_1" value="1">
    <input type="hidden" name="item_name _1">
    <input type="hidden" name="amount_1" >
    <input type="hidden" name="quantity_ 1" >
    <input type="hidden" name="item_numb er_2"value="2">
    <input type="hidden" name="item_name _2">
    <input type="hidden" name="amount_2" >
    <input type="hidden" name="quantity_ 2" >
    <input type="hidden" name="item_numb er_3" value="3">
    <input type="hidden" name="item_name _3">
    <input type="hidden" name="amount_3" >
    <input type="hidden" name="quantity_ 3">
    <input type="hidden" name="no_shippi ng" value="0">
    <input type="hidden" id="return" name="return" value="www.goog le.com">
    <input type="hidden" id="canReturn" name="cancel_re turn" value="www.goog le.com">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="rm" value="2">
    <input type="hidden" name="currency_ code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-BuyNowBF"><br>< br>
    <font style="font-size:15px;"><b> Paypal</b></font> online payment processing <input type ="submit" value="Paynow" name="submit">
    </form>[/HTML]




    Alert given while i click to get return URL

    Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

    Are you sure you want to continue sending this information?
    Last edited by gits; Sep 30 '08, 07:32 AM. Reason: added code tags
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    Originally posted by senthilkumarb
    if i use multiple item then it doesn't return automatically to the URL which i have specified. for the reference i have attached the snippet.
    If your question relates to submitting multiple orders then the example code needs to show how you are submitting multiple orders. If you are using the same parameter names multiple times in the same submission you will get un-reliable results since the server could be parsing the parameters from different orders together into different orders.




    Originally posted by senthilkumarb

    Alert given while i click to get return URL

    [B]Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

    Are you sure you want to continue sending this information?
    Does your code reside on sandbox.paypal. com server? If not then users should be getting that error. Changing URLs during an encrypted session is not allowed.

    Comment

    Working...