2011-07-12 66 views
3

我想添加項目的細節顯示在貝寶發票上,但沒有出現。 我用SetPaymentOptions具有以下值:貝寶自適應付款發票數據

"payKey" => "$payKey", 
"receiverOptions(0).customId" => "11", 
"receiverOptions(0).receiver.email" => "[email protected]", 
"receiverOptions(0).description" => "Invoice Title", 
"receiverOptions(0).invoiceData.item(0).name" => "Item name", 
"receiverOptions(0).invoiceData.item(0).itemCount" => "1.0", 
"receiverOptions(0).invoiceData.item(0).itemPrice" => "20.0", 
"receiverOptions(0).invoiceData.item(0).price" => "20.0", 
"receiverOptions(0).invoiceData.item(0).identifier" => "111", 
"receiverOptions(0).invoiceData.totalTax" => "0.0", 
"requestEnvelope.errorLanguage" => "en_US", 
"requestEnvelope.detailLevel" => "ReturnAll" 

的代碼是在PHP和我使用的嵌入式支付。 有沒有任何想法爲什麼沒有任何細節顯示在發票上,除了在paykey請求中傳遞的信息? 謝謝...

+0

我遇到了同樣的問題,我想要在付款授權頁上顯示發票數據,但我找不到這樣做的設置 – lencinhaus

+0

http://stackoverflow.com/questions/19267605/paypal -adaptive支付-描述場/ 21015922#21015922 – Marek

回答

0

ITEMCOUNT應該是一個整數:

"receiverOptions(0).invoiceData.item(0).itemCount" => "1", 

與該改變(和有效receiver.email)的SetPaymentOptions調用成功。