Paypal 未显示:
- 总金额
- 项目编号
- 税额
- 发票号码
Paypal在下面的代码中仅显示itemNAME变量:
<FORM action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="whatever@whatever.what">
<input type="hidden" name="hosted_button_id" value="XXXIDXXX">
<input type="hidden" name="item_name" value="<?php echo$itemNAME;?>"><!--127 chars-->
<input type="hidden" name="item_number" value="<?php echo$itemNUMBER;?>"><!--127 chars-->
<input type="hidden" name="tax" value="<?php echo$TAXamount;?>">
<input type="hidden" name="taxrate" value="20">
<input type="hidden" name="amount" value="<?php echo$TOTALamount;?>"><!-- 127 chars-->
<input type="hidden" name="invoice" value="<?php echo$INVOICEnumber;?>">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="notify_url" value="http://www.whatever.what/notify">
<input type="hidden" name="return" value="http://www.whatever.what/return">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cbt" value="Return to the store.">
<input type="hidden" name="cancel_return" value="http://www.whatever.what/cancel_return">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="image_url" value="http://www.whatever.what/logo.png">
<input type="hidden" name="cpp_logo_image" value="http://www.whatever.what/logo150x50.png">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add instructions here:">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
我有自己的单独测试文件,单击“立即购买”按钮后所有变量都可见。
我检查了不同的值,但它们在贝宝上不可见(itemNAME变量除外)。
那里可能有什么问题(代码链接)?