PayPal Express Checkout:使用REST API设置logo_image和名称

时间:2017-08-14 22:19:33

标签: api paypal paypal-rest-sdk express-checkout

PayPal的快速​​结账documentation表示您可以使用Experience API自定义结帐。当您转到Experience API documentation时,您会看到设置自定义名称,logo_image等功能。

在我们的实现中,隐藏送货字段(no_shipping:1)有效 - 并且使用Experience API - 但设置名称和logo_image则不然。

以下代码。有谁知道是否有设置名称和/或logo_image的方法?

payment: function(data, actions) {
         return actions.payment.create({
            payment: {
                transactions: [
                    {
                        amount: { total: '9.99', currency: 'USD' }
                    }
                ]
            },

            experience: {
                name: 'Custom Name',
                presentation: {
                    logo_image: 'https://i.imgur.com/customimage.png'
                },
                input_fields: {
                    no_shipping: 1
                }
            }
        });
    },

0 个答案:

没有答案