paynow/Paynow-NodeJS-SDK

Attempting to fetch transaction status using pollTransaction() throwing a rejected promise error

iammerus opened this issue · 1 comments

When trying to fetch, the status of a transaction using its pollUrl by calling pollTransaction, the SDK is throwing an error "Invalid URI '/'". Seems to be occurring once the request has been passed to the HTTP client

To Reproduce
Steps to reproduce the behavior:

  1. Initiate a new transaction
  2. Get the pollUrl from the InitResponse object
  3. Call pollTransaction on the Paynow instance passing in the pollUrl
  4. See error

Expected behavior
The SDK was supposed to return a PromiseLike<StatusResponse> showing the current state of the transaction

Fixed in #17