I am using the nodejs library prestan to try and create an order, but I get an error. I have been able to create customer, cart and addresses but I'm stuck here.
I get this error
Error: [StatusCodeError: 500 - ]
Possibly unhandled TypeError: Cannot read property 'prestashop' of null
at C:\Users\Tundaey\work\presta-server\node_modules\prestan\index.js:59:44
at tryCatcher (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\util.js:26:23)
at Promise._settlePromiseFromHandler (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\promise.js:510:31)
at Promise._settlePromiseAt (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\promise.js:584:18)
at Promise._settlePromiseAtPostResolution (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\promise.js:248:10)
at Async._drainQueue (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\async.js:128:12)
at Async._drainQueues (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:368:17)
I am using the nodejs library prestan to try and create an order, but I get an error. I have been able to create customer, cart and addresses but I'm stuck here.
Here is my code
I get this error Error: [StatusCodeError: 500 - ] Possibly unhandled TypeError: Cannot read property 'prestashop' of null at C:\Users\Tundaey\work\presta-server\node_modules\prestan\index.js:59:44 at tryCatcher (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\util.js:26:23) at Promise._settlePromiseFromHandler (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\promise.js:510:31) at Promise._settlePromiseAt (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\promise.js:584:18) at Promise._settlePromiseAtPostResolution (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\promise.js:248:10) at Async._drainQueue (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\async.js:128:12) at Async._drainQueues (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\async.js:133:10) at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Tundaey\work\presta-server\node_modules\bluebird\js\main\async.js:15:14) at processImmediate [as _immediateCallback] (timers.js:368:17)