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
Ask A Question

Questions

7
ANSWERED

update to the flutterwave-angular-v3 SDK giving error

payment Api on the Angular SDK using the InlinePaymentOptions has been working for the past few days but as of today, it starts giving error. I checked the documentation here https://www.npmjs.com/package/flutterwave-angular-v3 and noticed there is an update to it to include the option of closing the modal. Some of the errors I get are below: - Adding the "AsyncPaymentOptions" gave me error - Adding the "this.flutterwave.closePaymentModal(5)" also gave me error. - Also below are some of the errors thrown on chrome when testing Error 1: Uncaught TypeError: Cannot read property 'addEventListener' of null at Object.pinInputDisplay (scripts.min.js:1) at Object.on_pin_suggested_auth (scripts.min.js:1) at sdk._instance.handle_charge_response (fe-sdk.js:334) at Object.<anonymous> (fe-sdk.js:469) at u (jquery-3.3.1.min.js:2) at Object.fireWith [as resolveWith] (jquery-3.3.1.min.js:2) at k (jquery-3.3.1.min.js:2) at XMLHttpRequest.<anonymous> (jquery-3.3.1.min.js:2) Error 2: Uncaught TypeError: Cannot read property 'suggested_auth' of undefined at sdk._instance.handle_charge_response (fe-sdk.js:327) at Object.<anonymous> (fe-sdk.js:469) at u (jquery-3.3.1.min.js:2) at Object.fireWith [as resolveWith] (jquery-3.3.1.min.js:2) at k (jquery-3.3.1.min.js:2) at XMLHttpRequest.<anonymous> (jquery-3.3.1.min.js:2) Currently, the payment modal just spins in an infinite spin. Also, do i still need to include this "<script src="https://checkout.flutterwave.com/v3.js"></script>" on the index.html page?

Posted by Cito 3 months ago