我在paypal第三方购物车集成中遇到问题。成功付款后,它不会从paypal返回值。我使用以下代码:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="example@mail.com">
<input type="hidden" name="item_name_1" value="Item Name 1">
<input type="hidden" name="amount_1" value="1.00">
<input type="hidden" name="item_name_2" value="Item Name 2">
<input type="hidden" name="amount_2" value="2.00">
<input type="hidden" name="item_name_3" value="Item Name 3">
<input type="hidden" name="amount_3" value="3.00">
<input type="hidden" name="item_name_4" value="Item Name 4">
<input type="hidden" name="amount_4" value="4.00">
<input type='hidden' name='return' value='http://localhost/paypal_multiple.php'>
<input type='hidden' name='cancel_return'value='http://localhost/paypal_multiple.php'>
<input type='hidden' name='custom' value='customer@gmail.com'>
<input type='hidden' name='notify_url' value='http://localhost/paypal_multiple.php'>
<input type="submit" value="PayPal">
</form>
请帮帮我。
答案 0 :(得分:0)
在SO搜索其他问题后,我发现以下两个字段都丢失了。现在工作正常。
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="charset" value="utf-8" />