PayPal "Add to cart" HTML 表单在沙盒中工作,但不能上线



我正在尝试为顾客设置一个PayPal表格,以订阅早午餐,根据年龄的不同,有 3 个单独的价格范围。

当我通过将表单发布到https://www.sandbox.paypal.com/cgi-bin/webscr来测试我的表单时,它运行良好,但是当我尝试上线时,我在 URL 中得到一个"GENERIC_ERROR",PayPal窗口显示"系统当前不工作。请稍后再试">

你可以帮我吗?

这是我的表格:

<h3>Inscription</h3>
   <form target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <div class="fields row">
         <div class="form-group small-12 medium-6 columns field field-text ">
            <input name="first_name" id="first_name" type="text" value="" required="true" placeholder="Prénom *">
         </div>
         <div class="form-group field small-12 medium-6 columns field-text ">
            <input name="last_name" id="last_name" type="text" value="" required="true" placeholder="Nom *">
         </div>
         <div class="form-group small-12 columns field field-email ">
            <input name="email" id="email" type="email" value="" required="true" placeholder="e-mail *">
         </div>
         <div class="form-group field small-12 columns field-email ">
            <input name="email" id="phone" type="tel" value="" required="true" placeholder="Téléphone *">
         </div>
      </div>
      <div class="fields row">
         <div class="form-group field field-select small-12 end columns">
            <input type="hidden" name="item_name_1" value="Brunch Adulte">
            <input type="hidden" name="item_number_1" value="ADLTBRNCH">
            <input type="hidden" name="amount_1" value="37">
            <select name="quantity_1" id="Question6" required="true">
                    <option value="" disabled="true" selected="selected">Adultes * (CHF 37.-)</option>
                  <option value="0">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                </select>
         </div>
         <div class="form-group field field-select small-12 end columns">
            <input type="hidden" name="item_name_2" value="Brunch Junior">
            <input type="hidden" name="item_number_2" value="JNRBRNCH">
            <input type="hidden" name="amount_2" value="15">
            <select name="quantity_2" id="Question7" required="true">
                    <option value="" disabled="true" selected="selected">Junior * (CHF 15.-)</option>
                  <option value="0">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                </select>
         </div>
         <div class="form-group field field-select small-12 end columns">
            <input type="hidden" name="item_name_3" value="Brunch Kids">
            <input type="hidden" name="item_number_3" value="KDSBRNCH">
            <input type="hidden" name="amount_3" value="5">
            <select name="quantity_3" id="Question8" required="true">
                    <option value="" disabled="true" selected="selected">Kids * (CHF 5.-)</option>
                  <option value="0">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                </select>
         </div>
      </div>
      <input type="hidden" name="no_note" value="0">
      <input type="hidden" name="cmd" value="_cart">
      <input type="hidden" name="upload" value="1">
      <input type="hidden" name="charset" value="utf-8">
      <input type="hidden" name="business" value="robin.vk@yadlo.ch">
      <input type="hidden" name="currency_code" value="CHF">
      <input type="hidden" name="lc" value="CH">
      <input type="hidden" name="return" value="https://yadlo.ch/">
      <input type="hidden" name="notify_url" value="https://yadlo.ch/">
      <div class="form-actions">
         <p class="donation-form_note">* Champs obligatoires</p>
         <button type="submit" name="Submit" class="btn btn-primary small-10 small-offset-1 columns but end">
               <p>S'inscrire</p>
         </button>
      </div>
      <img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
   </form>

您是否从沙盒更改为:

https://www.paypal.com/cgi-bin/webscr

还要验证您的实时信条,并在此处查看更多信息:https://developer.paypal.com/docs/classic/lifecycle/goingLive/#checklist

想通了,缺少两个变量:

<input name="qsID" type="hidden" value="">
<input name="pURI" type="hidden" value="">

现在一切正常!

相关内容

  • 没有找到相关文章

最新更新