1

我正在使用 Google Checkout 实施 Donate Now 系统。一个真正令人沮丧的部分是如何不要求用户为他们的捐赠输入送货地址(因为它是纯粹的捐赠,所以不需要送货地址)。我找到了 Digital Delivery 的文档和向产品添加类的能力,但我只是使用由 Google 生成的“立即捐赠”表单,不知道在哪里添加这个类,所以不需要送货地址.

以下是我正在使用的表格:

<form action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/MY_NUMBER" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return adjustDescription()" target="_top">
    <input name="item_name_1" type="hidden" value="Donation"/>
    <input name="item_description_1" type="hidden" value="Donation Description"/>
    <input name="item_quantity_1" type="hidden" value="1"/>
    <input name="item_currency_1" type="hidden" value="USD"/>
    <input name="item_is_modifiable_1" type="hidden" value="true"/>
    <input name="item_min_price_1" type="hidden" value="0.01"/>
    <input name="item_max_price_1" type="hidden" value="25000.0"/>
    <input name="_charset_" type="hidden" value="utf-8"/>
    <input id="item_price_1" class="center" name="item_price_1" type="text" />
    <input disabled style="opacity:0.6;" name="donate_submit" alt="Donate" src="https://sandbox.google.com/checkout/buttons/donateNow.gif?merchant_id=MY_NUMBER&amp;w=115&amp;h=50&amp;style=white&amp;variant=text&amp;loc=en_US" type="image" />

所以我不确定是否有另一种不需要送货地址的方法,但如果有人能告诉我在哪里放置“产品数字”类来实现这一点,那会很有帮助。

4

0 回答 0