Paypal Express Checkout - 为客户提供更多详细信息

时间:2017-04-16 10:16:42

标签: paypal express-checkout

我使用Paypal Express结帐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提供的standard javascript code

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

enter image description here

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

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

{!! Form::select('destination', $counts, $destination->ordering, array('onchange'=>"fetch_select(this.value,$destination->id)")) !!}

我发现paypal文档非常混乱。

1 个答案:

答案 0 :(得分:1)

这对我有用

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