node.js - 类型错误:chargee.hosted_page.checkout_one_time_for_items 不是函数
问题描述
将 Chargebee V2 托管页面与 NodeJS 一起使用时会发生此错误,
chargebee.hosted_page.checkout_one_time_for_items({
customer : {
id : id
},
item_prices : [
{
item_price_id : priceId,
unit_price : price
}]
}).request(function(error,result) {
if(error){
//handle error
console.log(error);
return res.send({error})
}
else{
console.log(result);
res.send({result});
}
});
解决方案
推荐阅读
- javascript - TypeError:无法读取未定义的属性“redirect_uris”
- python - python - 如何在python的csv文件中为每个基因保留x个最高人相关值的基因对?
- mysql - 如何使用 3 个表执行 MySQL 查询?其中一张表在另外两张表中有外键
- html - 如何从 FormGroup 中访问 FormArray 元素?
- c++ - 当矩阵中的所有值都为负时,此代码是否通过
- javascript - JS 在应该这样做时不删除类
- docker - 谷歌云计算实例更新
- reactjs - 在 ReactJS 中提交具有多个提交按钮的表单
- php - Docker:MySQL容器绑定主机mysqld套接字
- html - 如何在 Python 中使用 Beautiful soup 在特定列中查找特定文本