有没有办法不让发件人标签创建选项卡?



我正在用购物车制作一个简单的网站,我正在使用PayPal"添加到购物车"按钮代码:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" 
method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="kin@kinskards.com">
<!-- Specify a PayPal Shopping Cart Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Birthday - Cake and Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_addtocart_120x26.png"
alt="Add to Cart">
<img alt="" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>

我在右上角还有一个购物车徽标,我只希望通过单击徽标可以访问购物车。有没有办法让表单将数据发送到PayPal购物车但不打开购物车选项卡/窗口?

target=paypal更改为target="_self":https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_cart/#open-shopping-cart-in-the-merchant-window

最新更新