Paypal自适应支付发票数据

时间:2011-07-12 13:37:07

标签: paypal

我正在尝试添加项目详细信息以显示在PayPal发票上,但没有显示任何内容。 我将SetPaymentOptions与以下值一起使用:

"payKey" => "$payKey",
"receiverOptions(0).customId" => "11",
"receiverOptions(0).receiver.email" => "email@paypal.com",
"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,我使用嵌入式付款。 有没有任何想法除了付款密钥请求中传递的信息之外,为什么发票上没有显示任何细节? 感谢...

1 个答案:

答案 0 :(得分:0)

itemCount应该是一个整数:

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

通过该更改(以及有效的receiver.emailSetPaymentOptions来电成功。