我想發送總額由客戶支付<input type="hidden" name="amount" value="{$total}">
其中{$total}
持有總額(聰明),但當我點擊立即購買貝寶按鈕時,它顯示支付金額爲0.00。 ?什麼是錯我的代碼是:如何發送付款總額到PayPal
Total :
{$total}
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="SVXVEBF9CH4YU">
<input type="hidden" name="amount" value="{$total}">
<input type="image" src="https://www.paypalobjects.com/en_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>
我在localhost
測試它,這是創建一個問題嗎?
看看你生成的HTML。 Smarty/PHP代碼不相關。這也將幫助你縮小問題的範圍。 –
我的smarty代碼有什麼問題? – Nitish
我該怎麼知道? –