-
Notifications
You must be signed in to change notification settings - Fork 37
Description
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