我有以下代码,但与 Paypal 按钮生成器上生成的代码不同,这不会将图像显示为按钮;只有文字。
我没有使用托管按钮解决方案,但我的方法受支持,我只是不知道如何使按钮显示图像(最好是“立即购买”),而不仅仅是纯文本。
有没有我错过的标签?
<form target="_blank" class="paypal-button" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="item_name_1" value="<?=$serverFullDesc?>">
<input type="hidden" name="amount_1" value="<?=$costMonth_step1?>">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" name="item_name_2"value="Initial Server Build (one-time)">
<input type="hidden" name="amount_2" value="<?=$buildPrice?>">
<input type="hidden" name="quantity_2" value="1">
<input type="hidden" name="item_name_3"value="<?=$maintPlan?> - invoiced monthly">
<input type="hidden" name="amount_3" value="<?=$maintPlanPrice?>">
<input type="hidden" name="quantity_3" value="1">
<input type="hidden" name="amount" value="<?=$gTotalPayment?>">
<input value="buynow" name="button" type="hidden">
<input value="_cart" name="cmd" type="hidden">
<input name="upload" value="1" type="hidden">
<input value="<?=$currency?>" name="currency_code" type="hidden">
<input value="XXXXXXXXXXXX" name="business" type="hidden">
<input value="www" name="env" type="hidden">
<button class="paypal-button large" type="submit">Buy Now</button>
</form>