pariola / paystack

Paystack API wrapper
103 stars 42 forks source link

Request QueryStrings Parameters not set #1

Closed temiyemi closed 6 years ago

temiyemi commented 6 years ago

Calls to certain GET routes with parameters fail because query string parameters are not set, hence Paystack API calls return error. e.g.

paystack.verification.resolveAccount({ account_number: '1234567890', bank_code: '123' })
  .then(body => {
    // do something with body.data
    console.log(body.data) 
  })
  .catch(err => console.error(err) )

This call throws the error 'bank_code' is required directly from Paystack. On introspection of the request, account_number and bank_code were never included with the request.

I would presume endpoints with similar implementation would be affected as well.