Paypal 快速结帐 - 为客户提供更多详细信息

标签 paypal express-checkout

我使用带有 checkout.js 的 Paypal Express 结账 与 standard javascript code由 Paypal 提供。

一切正常,付款弹出窗口如下所示:

enter image description here

现在我的问题是:是否可以向此弹出窗口添加有关产品的更多详细信息?

例如,产品的名称和描述? (此代码无效)。

return paypal.rest.payment.create(this.props.env, this.props.client, {
  transactions: [
    {
      amount: { total: '{{ entry.itemPreis }}', currency: 'CHF' },
      description: 'this is some description',
      // description: works and shows up in the paypal backend
      // but is not visible to the customer

      title: 'this would be the title' // doesn't work
    }
  ],
});

我发现 paypal 文档非常困惑。

最佳答案

这对我有用

transactions: [
    {
        amount: { total: '100', currency: 'CHF' },
            item_list: {
            items: [
                {
                name: 'Whateveryoufancy',
                description: 'Lorem ipsum',
                quantity: '1',
                price: '100',
                currency: 'CHF'
                }
            ]
        }
    }
]

关于 Paypal 快速结帐 - 为客户提供更多详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43436124/

相关文章:

Paypal 定期付款配置文件 - 立即访问

button - PayPal 快速结帐按钮 - 是否有不同的变体/颜色?

javascript - 通过 Paypal Express Checkout REST API 定期付款

在沙箱中测试 paypal 循环支付的整个周期

php - Composer 没有将依赖项安装到 PHP 项目中

python - 实现电子书 Paypal 购物的最简单方法

php - PayPal 数字商品登录时出错

paypal - 为什么我们必须重复 DoExpressCheckoutPayment 中的字段,而它们已经在 SetExpressCheckout 中设置了?

c# - 如何将项目添加到 PayPal API 中的项目列表

php - Paypal 电子邮件验证