Flutterwave / AndroidSDK

Rave's Android Drop In UI
7 stars 8 forks source link

At what point does the api send otp to the user #239

Closed chuksdsilent closed 3 years ago

chuksdsilent commented 3 years ago

I integrated flutterwave to my android app but I want to ask at what stage is the otp sent to the user? Is it when the card is initialized or when the card is charged? Thanks CardPaymentManager cardPayManager = new CardPaymentManager( raveNonUIManager, CardPaymentCallback, SavedCardsListener); Card card = new Card( "5531886652142950") "12", "22", "123" ); // Test MasterCard PIN

cardPayManager.chargeCard(card);
jeremiahAI commented 3 years ago

Hi @chuksdsilent The OTP is sent to the user after the charge is initiated, as a text message.

chuksdsilent commented 3 years ago

Do I need to call the chargeCard method after the user has entered otp.

jeremiahAI commented 3 years ago

No. You need to pass the otp to the cardPaymentManager.submitOtp(otp) function

On Thu, 3 Dec 2020, 8:29 pm chuksdsilent, notifications@github.com wrote:

Do I need to call the chargeCard method after the user has entered otp.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Flutterwave/rave-android/issues/239#issuecomment-738243566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFR4KIT6MH7CJ62SNDXFI6LSS7RJFANCNFSM4UMEFGCA .