TypeError: Cannot read property 'length' of undefined


#1

I am trying to sendMobile payment in NodeJS and it is not working as I get a TypeError: Cannot read property ‘length’ of undefined. The issue is occuring within Module I Paynow believe.

Full Error Message:
TypeError: Cannot read property ‘length’ of undefined
_ at Paynow.buildMobile (/srv/node_modules/paynow/dist/paynow.js:171:31)_
_ at Paynow.initMobile (/srv/node_modules/paynow/dist/paynow.js:80:25)_
_ at Paynow.sendMobile (/srv/node_modules/paynow/dist/paynow.js:54:21)_
_ at exports.p.functions.https.onRequest (/srv/index.js:47:12)_
_ at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:57:9)_
_ at /worker/worker.js:783:7_
_ at /worker/worker.js:766:11_
_ at combinedTickCallback (internal/process/next_tick.js:132:7)
_ at process.tickDomainCallback (internal/process/next_tick.js:219:9)


#2

@kudzanaim you need to include your auth email address in the createPayment method



#3

@kudzanaim Please avoid including your integration key and ID when posting to the forum.