Coder Social home page Coder Social logo

Comments (6)

iamabeljoshua avatar iamabeljoshua commented on June 29, 2024 2

Absolutely..... I will work on it as soon as I can.

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 29, 2024

Hey Abel, You arrived at the right fix. By guidelines, when you start a long-running process, you should give a visual hint to your users and ensure the process cannot be repeated until you get a response. Do you also show a processing dialog that shows them their click has registered?

from paystack-android.

iamabeljoshua avatar iamabeljoshua commented on June 29, 2024

Yea, when the user click on the pay-button on the app a progress dialog will be shown while the app generate an access_code on the background thread. After the Paystack transaction access_code has been generated and I have called the chargeCard() method, the paystack-android sdk sometimes delays for two to three seconds before popping up the transparent Card-Pin and OTP Entry activity. I think the paystack-android team should look into the code and make sure that there are no long running process executed before the PIN Entry activity is shown.

from paystack-android.

iamabeljoshua avatar iamabeljoshua commented on June 29, 2024

I finally took my time to look into the paystack-android SDK source-code and it seems like the SDK is making connection to the server to verify a transaction access_code before popping up the dialog.
Below is the code block where the OTP Activity is started which is after a network call has been made and processed.

if (transactionApiResponse.status.equalsIgnoreCase("2")) {
new PinAsyncTask().execute(); //the PinAsyncTask is the AsynTask that starts the OTP Activity.
return;
}

the Implementation of the paystack-android SDK should display a progress loader when it is making an API call. Your immediate response will be appreciated.

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 29, 2024

Awesome suggestion! You good to send in a PR for review?

from paystack-android.

hameedolamide avatar hameedolamide commented on June 29, 2024

Yeah nice suggestion, still waiting for the implementation tho, It's really frustrating to the users, no notification displayed to the user while the PIN and OTP verification process is bn carried out.

from paystack-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.