The Flutterwave Developer Documentation

We have put together comprehensive guidelines and documentation to help you get right into integrating any of our products quickly. You can also get support when you need help!

API Documentation    API Reference

Questions

Ask A Question
2

Bug with bill payment API

Good day, Please I'd like to report some incidence that occurred after we set our integration with Flutterwave Bill Payment API live. So this is the way we integrate the API, we initiate a transaction (with status = pending) on our backend then make a request to the Create a bill payment endpoint after performing some validation of the user's wallet. If the API responds with a 200, we then update the transaction status to success and debit the user's wallet. If the API responds with anything other than 200, we throw an error and change the status of the transaction to failed, and don't debit the user's wallet. Between the 21st and 23rd of July, there were more than 5 cases where the Create a bill payment endpoint failed due to 500+ errors and as usually our implementation assumed the bill payment didn't go through but upon checking the Flutterwave account, we saw that they were all successful and we were debited. Now to solve this issue, we attempted to use a queue that will check the status of a bill payment attempt at a later time (like 5 minutes later) and use that to confirm whether the bill payment was successful or not but on checking the Get status of a bill payment endpoint, it requires using tx_ref of a bill transaction but our backend cannot have access to that reference if the initial Create a bill payment endpoint doesn't return a 200. This issue could cause serious financial losses to the company. Please how do we go about solving the issue? Our merchant ID is 00763187

Posted by Emmanuel Awotunde 4 days ago

2

404 on redirect from VBVSecure code entry

Hello, when redirecting back from the VBVSecure code entry page to my redirect url, I'm getting a 404 (page not found) code. See below the full url that's being attempted to redirect back to from the VBVSecure code entry. I verified that url path up the ? is valid. It seems that all the stuff that's being tacked onto the querystring is messing things up. Maybe a url encoding issue? http://localhost:44007/Agents/bookings/CCPayment/charge_response.aspx?response=%7B%22id%22%3A2374148%2C%22txRef%22%3A%22DLOVTG-20210728-162234%22%2C%22orderRef%22%3A%22URF_1627514562728_7506435%22%2C%22flwRef%22%3A%22FLW-MOCK-d6dffeec8c0628612ed4b508685eeadb%22%2C%22redirectUrl%22%3A%22http%3A%2F%2Flocalhost%3A44007%2FAgents%2Fbookings%2FCCPayment%2Fcharge_response.aspx%22%2C%22device_fingerprint%22%3A%22N%2FA%22%2C%22settlement_token%22%3Anull%2C%22cycle%22%3A%22one-time%22%2C%22amount%22%3A1015%2C%22charged_amount%22%3A1015%2C%22appfee%22%3A14.21%2C%22merchantfee%22%3A0%2C%22merchantbearsfee%22%3A1%2C%22chargeResponseCode%22%3A%2200%22%2C%22raveRef%22%3A%22RV31627514562728D571A91B87%22%2C%22chargeResponseMessage%22%3A%22Please+enter+the+OTP+sent+to+your+mobile+number+080******+and+email+te**%40rave**.com%22%2C%22authModelUsed%22%3A%22VBVSECURECODE%22%2C%22currency%22%3A%22NGN%22%2C%22IP%22%3A%2252.209.154.143%22%2C%22narration%22%3A%22CARD+Transaction+%22%2C%22status%22%3A%22successful%22%2C%22modalauditid%22%3A%2282f02edcc81cb5698e9c3523bc5bba85%22%2C%22vbvrespmessage%22%3A%22Approved.+Successful%22%2C%22authurl%22%3A%22https%3A%2F%2Fravesandboxapi.flutterwave.com%2Fmockvbvpage%3Fref%3DFLW-MOCK-d6dffeec8c0628612ed4b508685eeadb%26code%3D00%26message%3DApproved.+Successful%26receiptno%3DRN1627514563559%22%2C%22vbvrespcode%22%3A%2200%22%2C%22acctvalrespmsg%22%3Anull%2C%22acctvalrespcode%22%3A%22RN1627514563559%22%2C%22paymentType%22%3A%22card%22%2C%22paymentPlan%22%3Anull%2C%22paymentPage%22%3Anull%2C%22paymentId%22%3A%226529319%22%2C%22fraud_status%22%3A%22ok%22%2C%22charge_type%22%3A%22normal%22%2C%22is_live%22%3A0%2C%22retry_attempt%22%3Anull%2C%22getpaidBatchId%22%3Anull%2C%22createdAt%22%3A%222021-07-28T23%3A22%3A43.000Z%22%2C%22updatedAt%22%3A%222021-07-28T23%3A23%3A20.000Z%22%2C%22deletedAt%22%3Anull%2C%22customerId%22%3A1352715%2C%22AccountId%22%3A2827%2C%22customer%22%3A%7B%22id%22%3A1352715%2C%22phone%22%3Anull%2C%22fullName%22%3A%22tst+tester%22%2C%22customertoken%22%3Anull%2C%22email%22%3A%22support%40zapways.com%22%2C%22createdAt%22%3A%222021-07-28T23%3A22%3A43.000Z%22%2C%22updatedAt%22%3A%222021-07-28T23%3A22%3A43.000Z%22%2C%22deletedAt%22%3Anull%2C%22AccountId%22%3A2827%7D%2C%22chargeToken%22%3A%7B%22user_token%22%3A%225b6f6%22%2C%22embed_token%22%3A%22flw-t0-dd1769e0fef2b477532c5189c5ab6f81-m03k%22%7D%2C%22airtime_flag%22%3Anull%7D

Posted by Gary 6 days ago