hps / heartland-nodejs

Heartland's node.js SDK for connecting to our Portico Payment Gateway.
GNU General Public License v2.0
10 stars 12 forks source link

hps-service.js and path to cert.wsdl #7

Closed charlie-s closed 7 years ago

charlie-s commented 8 years ago

I'm having to manually alter lib/services/hps-service.js line 4 from:

wsdl = './wsdl/cert.wsdl',

to:

wsdl = __dirname + '/../../wsdl/cert.wsdl',

in order to get it to use the correct path when it runs soap.createClient(wsdl.... I know this is brute forcing the path, but this was only an attempt to get it working quickly and see wha the issue was. Any ideas why my Node.js (0.12) isn't resolving the path properly?