【问题标题】:Paypal Express Checkout - More details for the customerPaypal Express Checkout - 为客户提供更多详细信息
【发布时间】:2017-09-12 03:57:20
【问题描述】:

我通过 checkout.js 使用 Paypal Express 结帐 使用贝宝提供的standard javascript code

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

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

例如,产品的名称和描述? (此代码不起作用)。

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 文档非常混乱。

【问题讨论】:

    标签: paypal express-checkout


    【解决方案1】:

    这对我有用

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

    【讨论】:

      猜你喜欢
      • 2016-07-18
      • 2010-11-15
      • 2016-12-14
      • 2014-04-17
      • 2014-04-17
      • 2010-12-26
      • 2021-02-22
      • 2023-03-16
      • 2015-02-27
      相关资源
      最近更新 更多