【问题标题】:Paypal buy it now button not doing anythingPaypal 立即购买按钮不做任何事情
【发布时间】:2013-09-04 23:31:58
【问题描述】:

我确定这很明显,但我似乎无法让自动生成的贝宝代码与我的网站一起使用。我没有看到任何调试错误。该按钮在单击时什么也不做。任何帮助将不胜感激

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="background_subpages"> 
<div id="shirtsBG" class="RoundBorder">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
        <input type="hidden" name="cmd" value="_xclick">
        <input type="hidden" name="business" value="xxxx@gmail.com">
        <input type="hidden" name="lc" value="US">
        <input type="hidden" name="item_name" value="Green">
        <input type="hidden" name="button_subtype" value="services">
        <input type="hidden" name="no_note" value="0">
        <input type="hidden" name="currency_code" value="USD">
        <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
        <table>
        <tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
            <option value="Small">Small $11.99 USD</option>
            <option value="Medium">Medium $11.99 USD</option>
            <option value="Large">Large $11.99 USD</option>
        </select> </td></tr>
        </table>
        <input type="hidden" name="currency_code" value="USD">
        <input type="hidden" name="option_select0" value="Small">
        <input type="hidden" name="option_amount0" value="11.99">
        <input type="hidden" name="option_select1" value="Medium">
        <input type="hidden" name="option_amount1" value="11.99">
        <input type="hidden" name="option_select2" value="Large">
        <input type="hidden" name="option_amount2" value="11.99">
        <input type="hidden" name="option_index" value="0">
        <input type="image" src="https://www.paypalobjects.com/en_US/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_US/i/scr/pixel.gif" width="1" height="1">
        </form>
</div>

【问题讨论】:

    标签: html asp.net paypal


    【解决方案1】:

    这是因为我在表单中使用了表单。我页面加载中的这段代码起到了作用

    if (!IsPostBack)
            { }
            else { }
            Form.Action = "https://www.paypal.com/cgi-bin/webscr";
            Form.Method = "post"; 
    

    【讨论】:

      猜你喜欢
      • 2013-01-03
      • 2012-01-02
      • 2014-10-05
      • 2014-09-15
      • 2015-09-22
      • 2014-08-03
      • 2013-11-02
      • 2013-08-30
      • 2010-12-04
      相关资源
      最近更新 更多