Skip to content

The CustomRequest property on the flutterwave object is commented out #117

Description

@andthexi

I have a usecase in an application I am working on. I need to verify a transaction with its tx_ref and not its id(because I can create and control app unique tx_refs from my application). Flutterwave apis provide an endpoint to verify a transaction by its tx_ref
https://developer.flutterwave.com/reference/endpoints/transactions/#verify-a-transaction

Unfortunately this feature is not supported in this node package. So to replicate its behaviour, I had to use the CustomRequest class to make a custom request to the endpoint to verify by reference

const flw = new Flutterwave('pub_key', 'sec_key')
flw.CustomRequest.custom(v3/transactions/verify_by_reference?tx_ref=${transactionId}, { method: 'GET' })

However, with the update of the package to v1.1.3, the CustomRequest object on the flutterwave object was commented out, so I cannot make a custom request without using external tools like axios or fetch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions