status == "success"
then you can proceed to inspect the data object. If not, then data will contain the error message.
If data.Use3DSecure == true
, then you need to load data.AuthURL
in a webview, otherwise, display data.OTPMessage
as a prompt to the user with a text input field to accept user's OTP.