2015-11-20 21 views
0

貝寶給我一個錯誤消息,當我通過我的表格中的post變量的付款收件人的電子郵件。貝寶不接受並行付款通過表格

"We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem." 

我使用這個代碼:

<form id="sub" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="visibility: hidden"> 
         <input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="receiverList.receiver(0).email"="[email protected]"> //part that needs to work for parallel paymentsvalue 
<input type="hidden" name="lc" value="CA"> 
<input type="hidden" name="item_name" value="Tangled Roots"> 
<input type="hidden" name="button_subtype" value="services"> 
<input type="hidden" name="no_note" value="0"> 
<input type="hidden" name="cn" value="Add special instructions to the seller"> 
<input type="hidden" name="no_shipping" value="2"> 
<input name="receiverList.receiver(0).amount" value="16.99"> 
<input type="hidden" name="currency_code" value="CAD"> 
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted"> 
<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> 

我如何通過多個收件人,而通過PayPal沒有得到一個錯誤?

+0

從樣本中取得的代碼,在業務代替'receiverList.receiver(0).email'時正常工作只需要有兩個接收者 –

回答

0

爲了使用並行付款,您必須使用Express Checkout API或Adaptive Payments API,特別是Pay

+0

這是否意味着我無法傳遞自定義表單中的信息? –

+0

您可以以任何您認爲合適的方式集成API,因此自定義表單根本不會成爲問題。您無法像PayPal標準表單那樣執行此操作。您需要構建自己的表單來生成API請求。 –

+0

如何格式化?因爲我一直在研究自適應api,它不包括使用表單。我在哪裏可以找到我應該構建的表單的示例或示例? –