2014-02-10 255 views
0

我使用这个模块authorize.net支付网关: - https://github.com/durango/authorize-net-cim类型错误:未定义是不是一个函数

我得到一个错误,同时调用下面的方法: -

throw err; 
      ^
TypeError: undefined is not a function 

代码:

AuthorizeCIM.updateCustomerProfile(new Authorize.CustomerBasic({ 
     email: '[email protected]', 
     merchantCustomerId: 1234, 
     description: 'New description!', 
     customerProfileId: 23954000 
    }), function(err, response) {}); 

AuthorizeCIM与authorize.net完美连接,因为我可以创建配置文件。

我正在遵循确切的文档,但仍然收到错误。

有人可以弄清楚,发生了什么?

+0

它得到了解决。 'Authorize'声明存在问题。 – Anup

回答

0

如果CustomerBasic是一个实例方法,则代码应该是

AuthorizeCIM.updateCustomerProfile((new Authorize).CustomerBasic({ 
    email: '[email protected]', 
    merchantCustomerId: 1234, 
    description: 'New description!', 
    customerProfileId: 23954000 
}), function(err, response) {}); 
相关问题