Hi I have following code for paypal payment.Here I am redirecting it to paypal sandbox for testing. I have following doubts in that
(1) 如何承认付款意味着 如任何用户支付,如何将钱转给特定账户(Merchant)
2) In the paypal site, after paying amount,user will have option return to site, if he clicks on that he will redirects to my site http://Myrurl/Payments.aspx?cc=success. Based on the query string I will update his payment in my DB.
问题在于用户支付安全费用,如果他在返回现场时不点击,那么他的付款不会在我的行文中更新。
请给我任何解决办法或如何执行《薪pal法》。
<div style="display: block;" align="center">
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="[email protected]" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="" />
<input type="hidden" name="item_number" value="" />
<input type="hidden" name="amount" value="" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="services" />
<input type="hidden" name="notify_url" value=" " />
<input type="hidden" name="return" value="http://localhost:17743/payments.aspx?cc=success" />
<input type="hidden" name="cancel_return" value="http://localhost:17743/payments.aspx?cc=cancel" />
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynowCC_LG.gif:NonHostedGuest" />
<input name="imgCreditcard" style="text-align: center;" type="image" src="images/pay.jpg"
border="0" alt="PayPal - The safer, easierway to pay online!" /><!-- paypal1 ~/images/paypal1.jpg-->
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1" />
<div id="divBack" runat="server" style="margin-left: -625px;" onclick="document.location.href=( ../Home.aspx )">
</div>
</form>
</div>