durango / authorize-net-cim

Authorize.net CIM bindings for Node.JS
14 stars 5 forks source link

undefined is not a function #2

Closed tycjones closed 10 years ago

tycjones commented 10 years ago

I'm running trying to create a customer payment profile using your example, and I get an error when trying to call new Authorize.CreditCard. Authorize.CreditCard is undefined. I also copied and pasted the sample code:

var Authorize = require('auth-net-cim') , _AuthorizeCIM = require('auth-net-cim') , AuthorizeCIM = new _AuthorizeCIM({ api: '123', key: '124', sandbox: true // false });

But I used my credentials. Am I missing a step somewhere? Thanks!

durango commented 10 years ago

Authorize.CreditCard. Authorize.CreditCard is undefined

Can you show me this bit of code as well? I'm using this code on production boxes and everything is running smoothly, the examples might have a typo but I'll need more info to double check :)

tycjones commented 10 years ago

Daniel, Thanks for the rapid response! I think your module was overkill for my immediate needs. I ended up opting for paynode with the authorize.netmode. Your module is for the CIM, but I only need to run single transactions and not track customers. Thanks again! Ty

On Tue, Mar 25, 2014 at 5:54 PM, Daniel Durante notifications@github.comwrote:

Authorize.CreditCard. Authorize.CreditCard is undefined

Can you show me this bit of code as well? I'm using this code on production boxes and everything is running smoothly, the examples might have a typo but I'll need more info to double check :)

Reply to this email directly or view it on GitHubhttps://github.com/durango/authorize-net-cim/issues/2#issuecomment-38639515 .

durango commented 10 years ago

@tycjones np, and yeah this is specifically for CIM :)