我正在尝试设置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>
答案 0 :(得分:0)
您是否从沙盒更改为:
https://www.paypal.com/cgi-bin/webscr
同时验证您的实时信誉,并在此处查看更多信息: https://developer.paypal.com/docs/classic/lifecycle/goingLive/#checklist
答案 1 :(得分:0)
想出来,缺少两个变量:
<input name="qsID" type="hidden" value="">
<input name="pURI" type="hidden" value="">
现在一切都很好!