"$payKey", "receiver-6ren">
gpt4 book ai didi

Paypal 自适应付款发票数据

转载 作者:太空宇宙 更新时间:2023-11-03 15:45:03 25 4
gpt4 key购买 nike

我正在尝试添加项目详细信息以显示在 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 编写的,我使用的是嵌入式支付。有没有人知道为什么除了 paykey 请求中传递的信息外,发票上没有显示任何详细信息?谢谢...

最佳答案

itemCount 应该是一个整数:

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

通过该更改(和有效的 receiver.email),SetPaymentOptions 调用成功。

关于 Paypal 自适应付款发票数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6665055/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com