如何在购物车总额上应用paypal折扣?

时间:2014-08-06 17:12:25

标签: paypal

Array
(
    [return] => http://www.example.com/
    [cancel] => http://www.example.com/
    [currency] => EUR
    [total] => 38.8
    [shipping] => 6
    [tax] => 2.85
    [itemTotal] => 29.95
    [items] => stdClass Object
        (
            [1] => stdClass Object
                (
                    [quantity] => 1
                    [name] => Item one
                    [IDFull] => 1
                    [priceFull] => 32.8
                    [tax] => 2.85
                    [price] => 29.95
                    [priceWith] => 32.80
                    [attributes] => Array
                        (
                        )

                    [ID] => 1
                )

        )

)

这是我的paypal结帐的示例数组。如何在卡总价上增加折扣(例如20欧元)?我尝试了很多方法,但无法找到它。谢谢!

1 个答案:

答案 0 :(得分:1)

你可以尝试下面的文章

http://chevronscode.com/index.php/paypal-rest-api-add-discount-on-the-total-amount.html

将折扣添加为项目