RIAEvangelist / node-dominos-pizza-api

This is a node.js wrapper for the dominos pizza apis
MIT License
534 stars 129 forks source link

TypeError: order.PaymentObject is not a function #71

Closed evblurbs closed 7 years ago

evblurbs commented 7 years ago

When I run the code

var cardInfo = new order.PaymentObject();

I get the error

TypeError: order.PaymentObject is not a function

Is this due to the order object not being complete? Does the payment object still work? Thanks in advance!

RIAEvangelist commented 7 years ago

Would need more info. For example, what is order? How did you initalize it?

Why are you trying to create a new instance of the value returned from something which is not a function? (You are executing the Payment Object as if it were a function...)