【发布时间】:2015-02-13 19:47:39
【问题描述】:
我在 www.sandbox.paypal.com 中测试了一个 paypal 表单来请求付款。
它按我的预期工作,除了税金和运费之外,这些费用被忽略,不显示在贝宝购物车中,也不计算在购物车总金额中。
在这种情况下,我只有一种产品,但买家可以将更多产品添加到他们的购物车中。
我不明白我哪里出错了。
<form method="post" name="paypal_form" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
<input type='hidden' name='cmd' value='_cart'>
<input type='hidden' name='business' value='myEmail'>
<input type='hidden' name='charset' value='utf-8'>
<input type='hidden' name='currency_code' value='EUR'>
<input type='hidden' name='notify_url' value='http://mysite/shop/ipn_url.php'>
<input type='hidden' name='custom' value='xxxaasxdfd'>
<input type='hidden' name='return' value='http://mysite/shop/confirm_url.php'>
<input type='hidden' name='lc' value='IT'>
<input type='hidden' name='email' value='buyer@mysite'>
<input type='hidden' name='first_name' value='Test name'>
<input type='hidden' name='last_name' value='Test surname'>
<input type='hidden' name='zip' value='00000'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='cbt' value='Return to mysite'>
<input type='hidden' name='rm' value='2'>
<input type='hidden' name='cancel_return' value='http://mysite/shop/cancel_url.php'>
<input type='hidden' name='upload' value='1'><input type='hidden' name='amount_1' value='129.00'>
<input type='hidden' name='item_name_1' value='23-PROD11'>
<input type='hidden' name='item_number_1' value='120'>
<input type='hidden' name='tax' value='39.37'>
<input type='hidden' name='shipping' id='shipping' value='67.87'>
</form>
【问题讨论】:
标签: paypal