Vue.js 在VueStrorefront+中更新_client_config_error;vsf支付贝宝

Vue.js 在VueStrorefront+中更新_client_config_error;vsf支付贝宝,vue.js,vuejs2,vue-storefront,Vue.js,Vuejs2,Vue Storefront,我是Vue店面的初学者。我正在尝试将Paypal集成到Vue店面。我已经按照read me of the package(vsf payment paypal)中的所有步骤进行了操作。但我在接下来的两天里一直在犯这个错误 update_client_config_error Uncaught TypeError: Cannot read property \'find\' of undefined at VueComponent.grandTotal (http://localhost:300

我是Vue店面的初学者。我正在尝试将Paypal集成到Vue店面。我已经按照read me of the package(
vsf payment paypal
)中的所有步骤进行了操作。但我在接下来的两天里一直在犯这个错误

update_client_config_error 
Uncaught TypeError: Cannot read property \'find\' of undefined at VueComponent.grandTotal (http://localhost:3000/dist/vsf-checkout.js:1446:25)

你知道如何解决这个问题吗?请帮助。

我在NodeJS中处理了几个小时相同的问题,并且我能够修复它。问题是在您的Json上,而不是在PayPal配置中

let order;
                try 
                {
                  order = await client.execute(request);
                  let response = {
                    statusCode: '200',
                    body: JSON.stringify({ orderID: order.result.id }),
                    headers: {
                        'Content-Type': 'application/json',
                    }
                };
                  return JSON.stringify({ orderID: order.result.id });
                } 
                catch (err) 
                {
                  console.error(err);

                  let response = {
                    statusCode: '500',
                    body: JSON.stringify({ error: 'Something Went Wrong While Creating Order..!' }),
                    headers: {
                        'Content-Type': 'application/json',
                    }
                };
                  return response;

                }
这就是我在nodejs服务器端修改返回的方式

正文:JSON.stringify({orderID:order.result.id})

这是我的createorder函数

      createOrder: function() {
    return fetch('http://localhost:3000/PayPal/Pay', {
      method: 'post',
      headers: {
        'content-type': 'application/json'
      }
    }).then(function(res) {
      return res.json();
    }).then(function(data) {
      console.log("data.orderID" +data);

      return data.orderID; // Use the same key name for order ID on the client and server
    });
  }
}).render('#paypal-button-container')});
对不起,我对Vue一无所知,所以我无法帮上忙。但希望这能帮助你。。!祝你好运