我使用带有 checkout.js
的 Paypal Express 结账
与 standard javascript code由 Paypal 提供。
一切正常,付款弹出窗口如下所示:
现在我的问题是:是否可以向此弹出窗口添加有关产品的更多详细信息?
例如,产品的名称和描述? (此代码无效)。
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/