By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,847 Members | 3,231 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,847 IT Pros & Developers. It's quick & easy.

paypal

P: 7
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.paypal.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@email.com">
<input type="hidden" name="item_number_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_number_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_number_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_shipping" value="0">
<input type="hidden" id="return" name="return" value="www.google.com">
<input type="hidden" id="canReturn" name="cancel_return" value="www.google.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?
Sep 30 '08 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 392
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.





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.
Sep 30 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.