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?