paynl / nodejs-sdk

Pay.nl nodejs sdk
6 stars 7 forks source link

Error is checked before parsing the JSON response #12

Closed SimonBackx closed 4 years ago

SimonBackx commented 4 years ago

The isError method will always return false since the JSON is not yet parsed.

body["status"] etc. will always return undefined.

https://github.com/paynl/nodejs-sdk/blob/7f9124926dbef786326b6c1632aede01b0168279/src/api/api.ts#L53

woutse commented 4 years ago

Thanks for your message. We'll investigate this and try to fix this a.s.a.p!

woutse commented 4 years ago

We made a change which solves this problem. Thanks again for your message.