我需要PAYPAL IPN系统的一些帮助。我完全迷失了。
我设置了这个表单
<form class="checkout-form" name="checkout-form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST"><ul class="notices-box"></ul><div class="row"><div class="col-md-8"><h2>Order Details</h2><div class="setting"><div class="setting-label"></div><input type="text" name="first_name" placeholder="First Name..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="last_name" placeholder="Last Name..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="user_address" placeholder="Address..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="user_country" placeholder="Country..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="user_telephone" placeholder="Telephone..."/></div><div><input type="hidden" name="action" value="checkout"/>
<button name="submit" class="button-primary button-primary-for-checkout" style="width: auto; ">Place Order</button>
</div></div><!--end .part1.1-->
<INPUT TYPE="hidden" name="cmd" value="_notify-validate">
<INPUT TYPE="hidden" NAME="return" value="http://zoomthe.me/paypalipn/paypal_ipn.php"><INPUT TYPE="hidden" NAME="currency_code" value="USD">
<input type="hidden" name="amount" value="0">
<input type="hidden" name="email" value="zoomitflash-buyer-1@gmail.com">
<input type="hidden" name="business" value="zoomitflash-facilitator-1@gmail.com">
<input type="hidden" name="item_name" value="hat">
<input type="hidden" name="item_number" value="15">
</form>
此处 - http://zoomthe.me/soundportal//index.php?page=checkout
但是当访问paypal网站时,我得到了一个很大的无效:(
我该怎么办?
答案 0 :(得分:1)
paypal表单中包含无效字段!一些无效字段,如first_name,last_name ...等。表单必须清晰,干净,正确。使用此示例
<form method="post" name="checkout-form" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="your@paypal_email.com">
<input type="hidden" name="item_name" value="Product Name>
<input type="hidden" name="amount" value="22" >
<input type="hidden" name="item_number" value="65">
<input type="hidden" name="custom" value="CUSTOM_CODE_@#!#!@#@!WDASD">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://zoomthe.me/paypalipn/paypal_ipn.php">
<input type="hidden" name="cancel_return" value="http://zoomthe.me/paypal_cancel">
<input type="hidden" name="cbt" value="Product Description">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="notify_url" value="http://zoomthe.me/your_listener_ipn_file.php">
</form>